大智慧同花顺通用的批量选股公式代码

合集下载

大智慧软件自带选股公式源码

大智慧软件自带选股公式源码

大智慧软件自带选股公式源码大智慧软件自带选股公式源码001指标条件选股★乖离率买入条件选股BIAS{N 12 1 100 LL -6 -40 0}(CLOSE-MA(CLOSE,N))/MA(CLOSE,N)*100 < LL; 乖离率卖出条件选股{N 12 1 100 M 12 1 100}100*(C-MA(C,N))/MA(C,N)>M;★布林带买入条件选股BOLL{P 26 5 100 T 2 0.1 10}CROSS(CLOSE,"BOLL.LOWER"(P,T));布林带卖出条件选股{N 26 5 300 P 2 0.1 10}CROSS("BOLL.UPPER"(N,P),C);★随机指标买入条件选股{N 9 1 100 N1 3 2 40 N2 3 2 40}CROSS("KDJ.J"(N,M1,M2),0);随机指标卖出条件选股{N 9 1 100 N1 3 1 100 N2 3 1 100}CROSS(0,"KDJ.J"(N,N2,N3));★KD买入点条件选股{N 9 1 100 N1 3 2 40 N2 3 2 40 N3 20 1 100 }RSV:= (CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,M1,1);D:=SMA(K,M2,1);CROSS(K,D) AND D<N1;KD卖出条件选股{N 9 1 100 N1 3 1 100 N2 3 1 100 N3 80 1 100 }RSV:= (CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,N1,1);D:=SMA(K,N2,1);CROSS(D,K) AND D>N3;★均线买入条件选股{SHORT 5 1 300 LONG 10 2 300}CROSS(MA(CLOSE,SHORT),MA(CLOSE,LONG));均线卖出条件选股{N 10 1 100 M 30 1 100}CROSS(MA(C,M),MA(C,N));★MACD买入点条件选股{LONG 26 20 100 SHORT 12 5 50 M 9 2 40}DIFF := EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);DEA := EMA(DIFF,M);MACD卖出条件选股{LONG 12 1 100 SHORT 26 5 100 M 9 1 100}DIFF := EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);DEA := EMA(DIFF,M);CROSS(DIFF,DEA);★MTM买入条件选股{N 6 1 100 N1 6 1 100}CROSS("MTM.MTMMA"(N,N1),0);MTM卖出条件选股{N 6 1 100 N1 6 1 100}CROSS(0,"MTM.MTMMA"(N,N1));★RSI买入条件选股{N 6 2 100 LL 20 0 40}CROSS("RSI.RSI1"(N,2,2),LL);RSI卖出条件选股{N 6 1 100 N1 80 0 100}CROSS("RSI.RSI1"(N,2,2),N1);★抛物转向买入条件选股{N 4 1 50 STEP 2 1 5 MAXP 20 5 80} SARTURN(N,STEP,MAXP)=1;抛物转向卖出条件选股SAR{N 10 1 100 S 2 1 100 M 20 1 100} SAR(N,S,M)=-1;★威廉指标买入条件选股W&R{N 14 2 100 HH 80 0 100} CROSS("W&R"(N),HH);威廉指标卖出条件选股{N 14 1 100 M 20 0 100}CROSS("W&R"(N),M);002基本面选股★市盈率{n 30 10 30}dynainfo(39)<=N;★业绩选股{n 0.4 0 100}FINANCE2(3)>n;★小盘股{n 3000 700 50000}FINANCE2(37)<=N;大盘股{n 20000 15000 300000}FINANCE2(37)>=N;★净资产收益率选股{n 20 0 300}FINANCE2(5)>(N/100);★主营业务利润率选股{n 30 1 100}FINANCE2(28)/FINANCE2(27)>=(N/100);★市净率选股{n 5 1 50}C/FINANCE2(4)<N;003即时盘中选股★涨幅选股{N 0.03 0.01 0.1}DYNAINFO(14)>=N;★阶段涨幅选股{ d1 990504 900101 1331231 d2 990802 900101 1331231} A:=HHV(IF(DATE=D1,C,0),0);B:=HHV(IF(DATE=D2,C,0),0);B/A>=(1+P/100);★即时量比选股{n 1 1 100}DYNAINFO(17)>=N;★大手笔成交选股(买){n 200 1 10000}BUYVOL>=N;大手笔成交选股(卖){n 200 1 10000}SELLVOL>N;★换手率选股{n 5 0.01 100}DYNAINFO(37)>=N/100;★涨速选股{n 1 0.01 100}DYNAINFO(24)>=N/100;★振幅选股{n 5 0.1 100}DYNAINFO(13)>=N/100;004走势特征选股★均线多头排列{n 5 1 100 n1 10 1 1000 n2 20 1 1000 n3 30 1 1000}A1:=ma(close,n);A2:=ma(close,n1);A3:=ma(close,n2);A4:=ma(close,n3);Count(a1>a2 and a2>a3 and a3>a4,3)=3 and isup;★均线空头排列{n 5 1 100 n1 10 1 1000 n2 20 1 1000 n3 30 1 1000}A1:=ma(close,n);A2:=ma(close,n1);A3:=ma(close,n2);A4:=ma(close,n3);Count(a1<a2 and a2<a3 and a3<a4,3)=3 and not(isup);4 形态特征选股公式的编制(1)、均线多头排列a1:=ma(c,n1);a2:=ma(c,n2);a3:=ma(c,n3);a4:=ma(c,n4);count(a1>a2 and a2>a3 and a3>a4,3)=3 and isup;注:n1、n2、n3、n4j日均线呈多头排列,isup也可以用close>open表示。

大智慧指标公式函数大全(完整可打印版)

大智慧指标公式函数大全(完整可打印版)

大智慧指标公式函数大全(完整可打印版)大智慧全部函数ABS 绝对值ACOS 反余弦值ADVANCE 上涨家数ALIGN 水平对齐方式ALL 一直满足条件ALLASKVOL 委托卖出总量ALLBIDVOL 委托买入总量AMOUNT 成交额AND 逻辑与运算ANY 至少一次满足条件ASIN 反正弦值ASKPRICE 委卖价ASKVOL 委卖量ATAN 反正切值AVEDEV 平均绝对偏差AVGASKPRICE 委托卖出均价AVGBIDPRICE 委托买入均价AVGENTERPRICE 平均买入成本BACKSET 向前赋值BARPOS K线位置BARSCOUNT 有效值周期数BARSLAST 上一次条件成立位置BARSSINCE 第一个条件成立位置BARSTATUS 数据位置状态BESTPERCENT 最大利润率BESTTRADE 最大盈利BETA 贝塔系数BETA2 相关放大系数BETADOWN 下跌贝塔系数BETAUP 上涨贝塔系数BETWEEN 介于BIDPRICE 委买价BIDVOL 委买量BIGORDER 委托单大单成交量比例BKNAME 板块名称BUY 买入BUYSHORT 空头买入C 收盘价CAPITAL 流通盘CASH 现金存量CATEGORY 证券类型CEILING 向上舍入CIRCLEDOT 小圆圈线CLOSE 收盘价COLOR 输出颜色COLOR3D阴阳颜色3D柱线输出线型控制符STICK,用逗号隔开放置在输出语句后,将该输出绘制成阴阳3D柱线,若数值正则用阳线颜色,否则用阴线颜色。

例如:VOL,COLOR3D;表示绘制成交量阴阳3D柱线COLORSTICK 阴阳颜色柱线COS 余弦值COST 成本分布COSTB 成本分布COUNT 统计总数COVAR 协方差CROSS 交叉函数CROSSDOT 斜叉线CURRENTDATE 当前日期CURRENTTIME 当前时间CYC 成本均线CYW Cyw主力控盘D1970TODATE 1970日转换为日期DASHLINE长虚线输出线型控制符STICK,用逗号隔开放置在输出语句后,将该输出绘制成长虚线。

好用的大智慧同花顺通达信指标公式

好用的大智慧同花顺通达信指标公式

好用的指标公式:1、短线快枪Var1:=(2*CLOSE+HIGH+LOW+OPEN)/5;安全线:EMA(Var1,55),CIRCLEDOT;SK:SLOPE(EMA(Var1,2),7)*15+VaR1;SD:EMA(SK,2);SJ:2.8*SK-1.8*SD;6,POINTDOT;买一:IF(CROSS(SK,SD)AND安全线,9.8,6);买二:IF(CROSS(S安全线),9.8,6);买三:IF(CROSS(SK,SD)ANDSK全线,9.8,6);2、庄家进出Var1:=IF(YEAR>=2034ANDMONTH>=1,0,1);VarC:=MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),0- VOL,0)),0)/25000,2)*Var1;分界线:EMA(VarC,26)*Var1,LINETHICK2,COLORf0f000;庄家线1:EMA(VarC,1)*Var1,colorred;庄家线2:EMA(VarC,6)*Var1,coloryellow;庄家线3:EMA(VarC,12)*Var1,COLOR00ff00;3、买后即涨趋势线:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);趋势参考:ema(趋势线,3),C0L0Rgreen;见底信号: 2;买点准备:IF趋势线<=10,50,0);买入时间:IF(CROS趋势线,见底信号),100,0),C0L0R0099ff,LINETHICK4; Var1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);Var2:=SMA(ABS(LOW-Var1),13,1)/SMA(MAX(LOW-Var1,0),10,1);Var3:=EMA(Var2,10);Var4:=LLV(LOW,33);Var5:=EMA(IF(LOW<=Var4,Var3,0),3);主力进场:STICKLINE(Var5>REF(Var5,1),0,Var5,7,0 ),COLORred;洗盘:STICKLINE(Var5<REF(Var5,1),0,Var5,7,0),COLORgreen;4、送财神REFLINE:0;VAR1:=MA(CLOSE,18);VAR2:=(CLOSE-VAR1)/VAR1*100;VAR3:=MA(VAR2,1);财宝天王:VAR3;VAR4:=BARSLAST(CROSS(-10,VAR3)=1);VAR5:=BARSLAST(CROSS(VAR3,10)=1);VAR6:=VAR3<-10 AND VAR4>=5;VAR7:=VAR3>10 AND VAR5>=5;C1:=IF(VAR3<-10 AND VAR4<=5,VAR3,0);C3:=IF(VAR3>10 AND VAR5<=5,VAR3,0);黄财神: C1, coloryellow,LINETHICK0;红财神: C3,colorred,LINETHICK0;FILLRGN(C1,0,C1<-10,RGB(80,80,00),1,RGB(0,0,0));FILLRGN(C3,0,C3>10,RGB(80,00,00),1,RGB(0,0,0));5、极品VOL当日:VOL;量5:MA(VOL,5),colorred;量10:MA(VOL,10);VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主动买盘:IF(CL0SE>0PEN,VAR1*(HIGH丄0W),IF(CL0SE<0PEN,VAR1*((HIGH- OPEN)+(CLOSE-LOW)),VOL/2)),Color0000FF,STICK;主动卖盘:IF(CL0SE>0PEN,VAR1*((HIGH-CL0SE)+(0PEN-LOW)),IF(CLOSE<OPEN,VAR1*(HIGH-LOW),VOL/2)),Color00E521,STICK;买卖盘比:主动买盘/ 主动卖盘;WJ:=(HIGH+LOW+CLOSE)/3;VD1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));VD2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-WJ);VD3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);VD4:=IF(HIGH=LOW,1,WJ-MIN(CLOSE,OPEN));VD5:=VOL/IF(HIGH=LOW,4,HIGH-LOW);VD6:=(VD1*VD5);STICKLINE主动卖盘> 0),0,主动卖盘,6.8,0),color009500;STICKLINE主动卖盘 > 0),0主动卖盘,6.5,0),color009C00;STICKLINE主动卖盘> 0),0主动卖盘,6.3,0),color00A300;STICKLINE主动卖盘> 0),0主动卖盘,6,0),color00AB00;STICKLINE主动卖盘> 0),0主动卖盘,5.7,0),color00AF00;STICKLINE主动卖盘> 0),0主动卖盘,5.5,0),color00B900;STICKLINE主动卖盘> 0),0主动卖盘,5.3,0),color00C000;STICKLINE主动卖盘 > 0),0,主动卖盘,5,0),color00C100;STICKLINE主动卖盘 > 0),0,主动卖盘,4.5,0),color00CA00;STICKLINE主动卖盘 > 0),0,主动卖盘,3.5,0),color00D300;STICKLINE主动卖盘 > 0),0,主动卖盘,3,0),color00DB00;STICKLINE主动卖盘 > 0),0,主动卖盘,2.5,0),color00EA00;STICKLINE主动卖盘 > 0),0,主动卖盘,1.5,0),color00FF00;DRAWTEXTABS(1,【买卖盘解量(手)1 ');DRAWTEXTABS(1,30|,'当日买卖量二'+NUMTOSTR(VOL)),ColorFFOOFF;DRAWTEXTABS(1,60|,'当日主动买量二'+NUMTOSTR主动买盘)),ColorOOffOO;DRAWTEXTABS(1,90|,'当日主动卖量二'+NUMTOSTF主动卖盘)),Coloryellow;DRAWTEXTABS(1,120|,'当日买卖盘比二'+NUMTOSTF买卖盘比)),ColorFF00FF;DRAWTEXTABS(25O,30,'买入资金累计万元:'+NUMTOSTF买入资金)),Colorred,LINETHICK1;DRAWTEXTABS(25O,60,'卖出资金累计万元:'+NUMTOSTF卖出资金)),ColorOOffOO,LINETHICK1;DRAWTEXTABS(25O,90,'资金进出万元:'+NUMTOSTF资金进出)),Coloryellow丄INETHICK1;DRAWTEXTABS(250,120|,'买卖资金比:'+NUMTOSTF买卖资金比)),Coloryellow,LINETHICK1;DRAWTEXTABS(1,150|,'当日挂单买盘:'+NUMTOSTF挂单买盘)),Colorred,LINETHICK1;DRAWTEXTABS(250,50(当日挂单卖盘: '+NUMTOSTR 挂单卖盘)),Color00ff00,LINETHICK1;6、发家分时(抓涨停)日1:EMA(C,1),COLORFF((FF;日:=EMA((H+L+C)/3,1);日5:=MA(EMA((H+L+C)/3,1),5);日1(:=MA(EMA((H+L+C)/3,1),1();对比日:EMA(REF日,240),1),COLORWHITE ;对比日5:=MA(EMA(REF日,240),1),5);对比日10:=MA(EMA(REF日,240),1),10);强:二日5>对比日5 AND日10>对比日10 AND日5-对比日5>0 AND日10-对比日10>0 角:=(ATAN((日10/REF(日10,5)-1)*100)*180/3.14115926)>30;角2:=(ATAN((0 10/REF(0 10,5)-1)*100)*180/3.14115926)>20;弱:二日5<对比日5AND日10<对比日10AND日5-对比日5<0AND日10-对比日10V0AND对比日5>REIF(寸比日5,3);STICKLINE( CROSS(5,对比日5) AND C>REF(C,150) AN角, 日5*1.05,REF(LLV^比日,200),200),1,0),C0L0RRED;STICKLIN角2,日5*0.98,REF(LLV对比日,200),200),1,0),C0L0RYELLOW;DRAWICON(CROS日(1,对比日)AND C>REF(C,24(日, 1*1.05,1);DRAWKLINE(INDEXH,INDEXO,INDEXL,INDEXC);。

大智慧常用的选股公式

大智慧常用的选股公式

大智慧常用的选股公式大智慧选股公式财经、证券2009-08-31 21:52:08 阅读264 评论0 字号:大中小大智慧选股公式怎样编写大智慧选股公式编写条件选股公式时常用的通式。

一、放量、缩量(成交量函数为VOL)1、放量:(1).今天成交量较昨天增加了1倍,表示如下:VOL/REF(VOL,1)〉2(2).今天成交量较10个交易日平均成交量放大了1倍,表示如下:a:=ma(vol,10);Vol/a〉2或者直接用如下公式表示:vol/ma(vol,10)〉2;(3).今日的5日均量较10个交易日平均成交量放大了1倍,表示如下:a:=ma(vol,10);b:=ma(vol,5);b/a〉2;(4).今日的成交量超过了整个流通盘的5%,表示如下:vol/capital〉0.05;其中capital代表流通盘。

2、缩量(1).今日成交量较昨日减少了一半,表示如下:vol/ref(vol,1)〈0.5;(2).今日成交量较10个交易日平均成交量减少一倍,表示如下:a:=ma(vol,10);vol/a〈2;或者直接用如下公式表示:vol/ma(vol,10)〈2;(3).今日的5日均量较10个交易日平均成交量减少1倍,表示如下:a:=ma(vol,10);b:=ref(a,5);a/b〈2;(4).今日的成交量低于了整个流通盘的5%,表示如下:vol/capital〈0.05;二、上涨、下跌上涨:今天的涨幅达到5%以上,表示如下:close/ref(close,1)〉1.05;5日均价连续上涨,表示如下:a:=ma(close,5);b:=ref(a,1);b;下跌:今天的跌幅达到5%以上,表示如下:close/ref(close,1)〈0.95;5日均价连续下跌,表示如下:a:=ma(close,5);b:=ref(a,1);a〈b;(3)、K线的描述close〉open;阳线close〈open;阴线open〉ref(close,1);高开open〈ref(close,1);低开open〉ref(high,1);跳空高开(high为最高价)open〈ref(low,1);跳空低开(low为最低价)三、走势特征选股公式的编制(1)、n日内创新高hhv(high,n)=hhv(high,0) and barscount(c)〉=n;注:n为指标参数,可在参数设定范围内设定参数范围。

大智慧资金选股指标公式源码编程思路破译

大智慧资金选股指标公式源码编程思路破译

大智慧资金选股指标公式源码编程思路破译编程思路破译:VAR1赋值:收盘价的2日指数移动平均-收盘价的89日指数移动平均VAR2赋值:VAR1的30日指数移动平均VAR3赋值:2*(VAR1-VAR2)*10VAR4赋值:VAR3的3乘幂*0.1+VAR3的2乘幂VAR5赋值:如果VAR3>0.015,返回VAR4,否则返回0/45拉升资金赋值:VAR5VAR6赋值:收盘价的2日指数移动平均-收盘价的150日指数移动平均VAR7赋值:VAR6的100日指数移动平均VAR8赋值:2*(VAR6-VAR7)VAR9赋值:VAR8的3乘幂*0.1+VAR8的1乘幂主力资金赋值:如果VAR8>0.1,返回VAR9,否则返回0*5GZ赋值:拉升资金+主力资金输出选股:GZ>0 AND 1日前的GZ=0程序源码:VAR1:=EMA(CLOSE,2)-EMA(CLOSE,89);VAR2:=EMA(VAR1,30);VAR3:=2*(VAR1-VAR2)*10;VAR4:=POW(VAR3,3)*0.1+POW(VAR3,2);VAR5:=IF(VAR3>0.015,VAR4,0)/45;拉升资金:=VAR5;VAR6:=EMA(CLOSE,2)-EMA(CLOSE,150);VAR7:=EMA(VAR6,100);VAR8:=2*(VAR6-VAR7);VAR9:=POW(VAR8,3)*0.1+POW(VAR8,1);主力资金:=IF(VAR8>0.1,VAR9,0)*5;GZ:=拉升资金+主力资金;选股:GZ>0 AND REF(GZ,1)=0;。

大智慧公式源码

大智慧公式源码

一、精准买卖V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,34);V3:=EMA(V2,5); V4:=2*(V2-V3)*5.5;主力撤:IF(V4<=0,V4,0),colorblue;主力进:IF(V4>=0,V4,0),colorff00ff;V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;V6:=EMA(3*V5-2*SMA(V5,18,1),5);V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;V8:=(INDEXC*2+INDEXH+INDEXL)/4;V9:=EMA(V8,13)-EMA(V8,34);VA:=EMA(V9,3);VB:=(V9-VA)/2;大盘资金进场:IF(VB>=0,VB,0),Colorred;大盘资金撤走:IF(VB<=0,VB,0),colorgreen;V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-L LV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势线:EMA(V11,3);V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;DRAWTEXTABS(5,5,'股旁网'),linethick1,COLOR00EEff;准备现金:STICKLINE(趋势线<=13,0,20,5,0),colorcc9900;aa:=(趋势线<=13)and filter((趋势线<=13),15);drawtext(aa,30,'准备现金'),colorcc9900;买入股票:STICKLINE(趋势线<=13AND V12>13,0,50,5,0),color0099ff;bb:=(趋势线<=13AND V12>13)and filter((趋势线<=13AND V12>13),10); drawtext(bb,60,'买入股票'),color0099ff;卖临界:STICKLINE(趋势线>90and趋势线>ref(趋势线,1),100,95,15,1),COLORFFFF00;见顶清仓:filter(趋势线>90and趋势线<ref(趋势线,1)and主力进<ref(主力进,1),8);DRAWTEXT(见顶清仓,90,'逃顶'),coloryellow;cc:=(趋势线>=90AND V12)and filter((趋势线>=90AND V12),10);stickline(大盘资金进场and趋势线<13,0,30,10,0),colorred;stickline(大盘资金撤走and趋势线>90,0,30,10,0),colorgreen;stickline(主力进and趋势线<13,0,40,10,0),colorff00ff;stickline(主力撤and趋势线>90,0,40,10,0),colorblue;。

大智慧量化公式

大智慧量化公式

大智慧量化公式
以下是大智慧股票指标公式:
1. 做空95:HHV((HIGH+LOW+OPEN+2CLOSE)/5+H-L,5),颜色为蓝色。

2. 做空68:HHV((HIGH+LOW+OPEN+2CLOSE)/52-L,5),颜色为红色。

3. 平衡点:LLV((HIGH+LOW+OPEN+2CLOSE)/5,3),颜色为灰色,DOTLINE。

4. 做多68:LLV((HIGH+LOW+OPEN+2CLOSE)/52-H,8),颜色为绿色。

5. 做多95:LLV((HIGH+LOW+OPEN+2CLOSE)/5-H+L,8),颜色为浅绿色。

6. F:=100(C-REF(C,1))/REF(C,1),表示当前收盘价与前一日收盘价的差值
占前一日收盘价的百分比。

7. 今小昨:IF(C<REF(O,1) AND f<0,1,0),表示当前收盘价小于前一日开
盘价且当前差值小于0时为1,否则为0。

8. 今小前:IF(C<REF(O,2) AND f<0,1,0),表示当前收盘价小于前两日开
盘价且当前差值小于0时为1,否则为0。

9. 真实波动范围(TR)的计算公式为TR=Max(H-L,H-PDC,PDC-L),其中
H表示当日的最高价,L表示当日的最低价,PDC表示前一日的收盘价。

以上是大智慧股票指标公式的部分示例,如需更多信息,建议查阅大智慧股票软件官网或咨询专业金融分析师。

大智慧量选股指标公式源码编程思路破译及成功率回测数据

大智慧量选股指标公式源码编程思路破译及成功率回测数据

大智慧量选股指标公式源码编程思路破译及成功率回测数据编程思路破译N赋值:18M赋值:32量赋值:(收盘价 - M日内最低价的最低值) / (M日内最高价的最高值 - M日内最低价的最低值) * 1.2 * 收盘价量1赋值:量的3日指数移动平均HH赋值:N日内量1的最高值=量1的3日过滤LL赋值:N日内量1的最低值=量1的3日过滤输出选股:收盘价上穿上次量1<=1日前的LL距今天数日前的收盘价条件选股:大智慧量[日线]成功率测试(20日收益率10%)测试股票数:5026共发出信号:104339 成功信号:44637 失败信号:59162 未完成信号:540信号发出率:74.23% 平均成功率:43.00% 成功率达到50%的股票数有:44.79%利润1总平均:13.50% 最大平均利润1: 135.64% 最小平均利润1: 0.00%利润2总平均:2.35% 最大平均利润2: 106.00% 最小平均利润2: -46.25%条件选股:大智慧量[日线]成功率测试(250日收益率10%)测试股票数:5026共发出信号:104355 成功信号:86086 失败信号:15244 未完成信号:3025信号发出率:74.23% 平均成功率:84.96% 成功率达到50%的股票数有:96.84%利润1总平均:56.71% 最大平均利润1: 862.40% 最小平均利润1: 0.07%利润2总平均:12.96% 最大平均利润2: 759.17% 最小平均利润2: -79.05%程序源码N:=18;M:=32;量:=(CLOSE - LLV(LOW,M)) / (HHV(HIGH,M) - LLV(LOW,M)) * 1.2 * CLOSE;量1:=EMA(量,3);HH:=FILTER(HHV(量1,N)=量1 ,3);LL:=FILTER(LLV(量1,N)=量1,3);选股:CROSS(C,REF(C,BARSLAST(量1<=REF(LL,1))));。

!!!大智慧2选股指标

!!!大智慧2选股指标

1、底背离选股公式DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:=EMA(DIFF,9),COLORFFFF00;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);MACD底背离:IF(底背离,57,0),LINETHICK2,COLORFF00FF;DRAWTEXT(底背离,54,'←底背离'),COLORWHITE;2、抄底公式COUNT(C/SMA(C,34,1)<0.73,2) AND H>L*1.05 AND C/COST(10)<0.8;3、双胞胎抄底公式CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;YJD: (EMA(CS,3)-50)*2;极弱:-80;强势:60;风险:80;弱势:-60;V AR4:=(1.1)*CLOSE;V AR5:=(0.9)*CLOSE;V AR6:=100*(WINNER(V AR4)-WINNER(V AR5));S1:2*EMA(100-V AR6,1),COLORYELLOW;S2:EMA(S1,9);S3:=MA(S2,9);条件:=CROSS(YJD,极弱) AND S1>S2;条件0:=CROSS(强势,YJD) AND S1<S2;DRAWICON(条件,极弱,5);DRAWICON(条件0,强势,6);4、备钱抄底RSV9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;抄底:CROSS(RSV9,10);5、抄底副图VAR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;VAR4:=EMA(VAR3,5);VAR5:=3*VAR3-2*VAR4;AA:=CROSS(VAR5,VAR3) AND VAR3<2.1 AND C>O;VAR6:=(2*CLOSE+HIGH+LOW)/4;VAR7:=LLV(LOW,13);VAR8:=HHV(HIGH,13);VAR9:=EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13);VARA:=EMA(0.667*REF(VAR9,1)+0.333*VAR9,2);多:VAR9,colorred,POINTDOT;空:EMA(0.382*REF(VAR9,2)+0.618*VAR9,12),colorgreen; STICKLINE(VAR9>VARA,VAR9,VARA,6,0),colorred; STICKLINE(VAR9<=VARA,VAR9,VARA,6,0),COLORFFCC66; STICKLINE(AA,0,30,40,1),coloryellow;STICKLINE(AA,16,29,38,0),colorred;STICKLINE(AA,1,14,38,0),colorred;STICKLINE(AA,15,15,40,1),coloryellow;STICKLINE(AA,30,50,10,0),coloryellow;STICKLINE(AA,53,55,10,1),colorred;STICKLINE(AA,57,59,10,1),colorred;STICKLINE(AA,61,63,10,1),colorred;STICKLINE(AA,65,67,10,1),colorred;STICKLINE(AA,69,75,12,0),COLORFFCCCC;DRAWTEXT(AA,85,'底'),coloryellow;6、抄底选股LOWV:=LLV(LOW,9);HIGHV:=HHV(HIGH,9);RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);K:=EMA(RSV,3);D:=MA(K,3);bb:=REF((CLOSE<OPEN),1)AND CLOSE>OPEN;cc:=(c/ref(c,18)-1)*100<-35;cq:=SPLITBARS(0 )<15;xg:IF((k>REF(k,1)AND REF(k,1)<REF(REF(k,1),1))AND k<20 AND bb AND ref(Cc,1)=1 and cq=0 ,20,0),colorred;蓝色领带(969720321) 20:24:541、黄金坑选股公式xg:(C/HHV(H,120)-1)*100<-8 AND HHV(H,120)>LLV(L,120)*1.2 AND CROSS(MA(V,5),MA(V,10));2、多条均线粘合选股k:=10; {可在参数中设置K 为1-100%}m0:=ma(c,5);m1:=ma(c,10);m2:=ma(c,20);m3:=ma(c,30);m6:=ma(c,60);ff:=(max(m0,m1,m2,m3,m6)/min(m0,m1,m2,m3,m6)-1)*100;xg:ff<k/10;3、均线振幅选股A1:=EMA(C,14)>EMA(C,25) AND EMA(C,25)>EMA(C,50) AND EMA(C,50)>EMA(C,120); A2:=ABS(C-EMA(C,14))/EMA(C,14)<0.03;A3:=A1 AND REF(sum(a2,5)=5,1) AND CROSS(C,EMA(C,7)*1.025);A4:=EMA(C,25)>EMA(C,50) AND EMA(C,50)>EMA(C,120) AND REF((HHV(C,30)-LLV(C,30))/LLV(C,30)<0.12,1)AND CROSS(C,EMA(C,7)*1.025);(A3 OR A4) AND DYNAINFO(17)>0;4、KDJ反转选股N:=9;M1:=3;M2:=3;RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,M1,1);D:=SMA(K,M2,1);J:=3*K-2*D;xg:CROSS(j,REF(j,1)) AND j<50;5、股价缩量到36均线选股count(c<ref(c,1),10)>7 and l<ma(c,36) and h>ma(c,36) andv<ma(v,20);6、逆市抗跌选股sum(c>ref(c,1),0)/sum(INDEXC>ref(INDEXC,1),0)>0.8 and DYNAINFO(14)>0 and time>100000;。

大智慧公式源代码【共172个】

大智慧公式源代码【共172个】

1、30个交易日内,股价跌幅达到一半的股票: xg:(hhv(c,30)-c)/hhv(c,30)>0.5;2、今天的量是5天平均的2倍以上xg:v>ma(v,5)*2;缩量vol/ma(vol,10)<0.3;3、两天内,累计下跌等于或超过20%选股.xg:(ref(c,2)-c)/c>0.2;4、股价是25天以来新低.xg:c<ref(llv(c,25),1);5、选股:EXPMA5日与10日金叉,并且第二天的收盘价在expma的5日线以上.cross(ref(ema(c,5),1),ref(ema(c,10),1))andc>ema(c,5);6、买入公式:1.将BIAS指标的参数设置为24日,将KD指标的参数设置为9;3;3。

2.BIAS指标要小于-6,这只是确认该股超跌的初选条件。

3.KD指标产生黄金交叉,K线上穿D线。

4.KD交叉同时,KD指标中的D值要小于16。

BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100,colorff00ff;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1),COLORWHITE;D:=SMA(K,3,1),COLORYELLOW;xg:BIAS3<-6andcross(k,d)andd<16;7、要求是量大、换手率达到3左右,涨幅>7个点。

xg:v/capital*100>3and(c/ref(c,1)>1.07;8、个股分时图上都有一条黄线,叫做均价线a/capital*100;9、"阴转阳"的公式(也就是昨天收阴线,今天收阳线)xg:ref(c,1)<ref(o,1)andc>o;10、股价回抽20日均线选股公式xg:ref(c,1)>ma(c,20)andcross(ma(c,20),c);11、一根大阳线,至少有5个点以上,再连着出现二根振幅不大于5的十字星或是小K 线xg:(ref(c,3)-ref(c,4))/ref(c,3)>0.05andcount((h-l)/l<0.05,2)=2;12、行情信息里的“涨幅”的原码(c-ref(c,1))/c*100;13、kdj的J从上向下穿越O轴发出信号RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1),COLORWHITE;D:=SMA(K,3,1),COLORYELLOW;J:=3*K-2*D,COLORFF00FF;xg:cross(0,j);14、股价4天中有两天在10日线上count(c>ma(c,10),4)=2;15、选出10天内出现了涨停的个股count(c/ref(c,1)>1.1,10)>0;又:今涨停:=C/REF(C,1)>1.09;选股:count(今涨停,n);16、一阳上穿10,20,30日线,量能是前一天3倍。

大智慧指标公式源码精品打包

大智慧指标公式源码精品打包

猎庄+买入信号Var2:=REF(LOW,1);Var3:=SMA(ABS(LOW-Var2),3,1)/SMA(MAX(LOW-Var2,0),3,1)*100;Var4:=EMA(IF(CLOSE*1.2,Var3*10,Var3/10),3);Var5:=LLV(LOW,38);Var6:=HHV(Var4,38);Var7:=IF(LLV(LOW,90),1,0);Var8:=EMA(IF(LOW<=Var5,(Var4+Var6*2)/2,0),3)/618*Var7;有庄的影子: STICKLINE(V ar8,0,Var8,6,1) , COLORffaaff;趋势线: (CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100 , COLORaabbdd;aa:=((ref(趋势线,1)<ref(趋势线,2) and 趋势线<-30) and 趋势线>=ref(趋势线,1)) or (ref(cross(-30,趋势线),1) and cross(趋势线,-30)) or 趋势线=-30;drawtext(aa,500,'砸锅卖田买'),coloryellow;砸锅卖田买:if(aa,500,-30),coloryellow;bb:=((ref(趋势线,1)<ref(趋势线,2) and 趋势线<-20 and 趋势线>-25) and 趋势线>=ref(趋势线,1)) or (ref(cross(-20,趋势线),1) and cross(趋势线,-20));drawtext(bb,300,'见底信号'),colorred;见底信号:if(bb,300,-20),colorred;cc:=((ref(趋势线,1)<ref(趋势线,2) and 趋势线<-25 and 趋势线>-30) and 趋势线>=ref(趋势线,1)) or (ref(cross(-25,趋势线),1) and cross(趋势线,-25));drawtext(cc,400,'莫错失机会'),color00ff00;莫错失机会:if(cc,400,-25),color00ff00;底部快显:if(cross(-20,趋势线),100,-20),linethick2,colorf0f000;drawtext(cross(-20,趋势线),120,'★'),colorf0f000;机会来临:if(cross(-25,趋势线),150,-25),linethick2,colorf00ff0;drawtext(cross(-25,趋势线),170,'★'),colorf00ff0;砸锅卖田等:if(cross(-30,趋势线),200,-30),linethick2,colorwhite;drawtext(cross(-30,趋势线),220,'★'),colorwhite;{见底信号:}-20,colorred,pointdot;{莫要错失机会:}-25,colorlime,pointdot;{砸锅卖田等着你:}-30,coloryellow,pointdot;皇赐桥杯——庄家的馈赠{皇赐桥杯}V AR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;V AR3:=SMA(SMA(V AR2,3,1),3,1)/28.57;V AR4:=EMA(VAR3,5);V AR5:=3*VAR3-2*V AR4;AA:=CROSS(VAR5,V AR3) AND V AR3<2.1 and c>o;var6:=(2*CLOSE+HIGH+LOW)/4;var7:=LLV(LOW,13);var8:=HHV(HIGH,13);var9:=EMA((var6-var7)/(var8-var7)*100,13);varA:=EMA(0.667*REF(var9,1)+0.333*var9,2);多:var9,COLORRED,POINTDOT;空: EMA(0.382*REF(var9,2)+0.618*var9,12),COLOR00FF00; STICKLINE(var9>varA,var9,varA,6,0), COLORWHITE; STICKLINE(var9<=varA,var9,varA,6,0), COLORFFCC66; {皇赐桥杯画图源码}STICKLINE(AA,0,30,40,1),coloryellow;STICKLINE(AA,16,29,38,0),colorgreen;STICKLINE(AA,1,14,38,0),colorgreen;STICKLINE(AA,15,15,40,1),coloryellow;STICKLINE(AA,30,50,10,0),coloryellow;STICKLINE(AA,53,55,10,1),colorred;STICKLINE(AA,57,59,10,1),colorred;STICKLINE(AA,61,63,10,1),colorred;STICKLINE(AA,65,67,10,1),colorred;STICKLINE(AA,69,75,12,0),colorffcccc;DRAWTEXT(AA,85,'皇赐桥杯'),coloryellow;DRAWTEXT(AA,26,'人头马'),coloryellow;DRAWTEXT(AA,12,'OK'),coloryellow;大智慧特色指标——强弱分明强势线:2,linethick2,ColorFF00FF;准强线:1.3,linethick1,Colorblue;up:=( c > o or c > ref(c,1)) and v > ref(v,1);aa:=count(up,3)=3;bb:=llv(l,5)=llv(l,120);cc:=c > ma(c,3);llt:=aa and bb and cc;{头部}v1:=llv(low,10);v2:=hhv(h,25);警戒线:3.1,linethick3,Color00FFFF;高抛线:3.5,linethick2,Color0000FF;指导线:ema((c-v1)/(v2-v1)*4,4),color00FF00;m5:=ma(指导线,5);低吸线:0.3,linethick1,colorwhite;Var2:=IF(EMA(CLOSE,5)/EMA(EMA(CLOSE,9),16)<=0.85 AND CLOSE/REF(CLOSE,1)>0.905 AND CLOSE/REF(CLOSE,1)<1.05 AND VOL/CAPITAL*100<5,50,0);Var3:=(-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))+100;Var4:=(-100)*(HHV(HIGH,50)-CLOSE)/(HHV(HIGH,50)-LLV(LOW,50))+100;Var5:=(-100)*(HHV(HIGH,70)-CLOSE)/(HHV(HIGH,70)-LLV(LOW,70))+100;Var6:=((CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100+10)*5;Var7:=((CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100+10)*5;Var8:=((CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+10)*5;Var9:=(V ar3+Var4+Var5+Var6+Var7+Var8)/6;VarA:=EMA(Var9,3);VarB:=ABS(Var6-Var8);VarC:=(Var9+VarB)/2;VarD:=(-1)*(EMA(100*(1-WINNER(CLOSE)),1)-50)+50;VarE:=VarD+VarC;VarF:=IF(Var2>0 AND V arE<0,200,0);Var10:=IF(VarC<0 AND CLOSE=LLV(CLOSE,5) AND CLOSE/REF(CLOSE,1)>0.905 AND CLOSE/REF(CLOSE,1)<1.05 AND VOL/CAPITAL*100<5,-50,0);Var11:=IF(VarE<0 AND Var10=-50,100,0);Var12:=MA(CLOSE,3);Var13:=REF(CLOSE,2)*0.865;Var14:=REF(CLOSE,13)*0.772;Var15:=MIN(Var13,Var14);Var16:=100*VOL/CAPITAL;Var17:=MA(CLOSE,13);Var18:=IF((CLOSE-Var15)/CLOSE<0.03 AND SUM(Var16,5)/5<1.8,1,0);Var19:=IF(Var18>0 AND (V ar10<0 OR Var2>0),100,0);Var1A:=Var19;Var1B:=IF(VarF>0 AND V ar11>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR V ar18>0 AND REF(CLOSE,1)/REF(CLOSE,2)>0.902 OR (V arF>0 AND Var11>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR Var18>0) AND (Var10<0 OR Var2>0) AND Var19<10,50,0);Var1C:=(VarF>0 AND Var11>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR Var18>0) AND (Var10<0 OR Var2>0);Var1D:=VarF>0 AND Var11>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR Var18>0 AND REF(CLOSE,1)/REF(CLOSE,2)>0.902;大底区域: ( Var1C OR Var1D )*3,linethick2,colorred;新编布林通道——买卖点信号提示BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,colorwhite;UPR:BBI+P*STD(BBI,N),coloryellow;DWN:BBI-P*STD(BBI,N),colorff00ff;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100; DRAWICON(CROSS(84,RSI) ,h*1.03,5);DRAWICON(CROSS(RSI,11) ,l*0.99,4);Var27:=REF(CLOSE,1);Var28:=SMA(MAX(CLOSE-Var27,0),5.5,1)/SMA(ABS(CLOSE-Var27),6,1)*100; DRAWICON(IF(CROSS(76,Var28),1,0),h*1.03,5);DRAWTEXT(FILTER(EMA(CLOSE,60)-EMA(CLOSE,12)>0AND EMA(CLOSE,12)/LOW>1.15,5),LOW,''),linethick7 , COLORff00ff;V ARA:=((AMOUNT)/(VOL))/(100);V ARB:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);V ARC:=((SUM(AMOUNT,7))/(V ARA))/(100);V ARD:=DMA(V ARB,(VOL)/(V ARC));V ARE:=((CLOSE-V ARD)/(V ARD))*(100);V ARF:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100);V ARJ:=MA(V ARE,20)+STD(V ARE,20);BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);aa:=SMA(V ARF,3,1);ss:=(REF(BIAS18,1)>=5) AND CROSS(V ARJ,V ARE) AND (aa>79); DRAWTEXT((REF(BIAS18,1)>=5) AND CROSS(V ARJ,V ARE) AND(aa>ss),h*1.02,''),LINETHICK7,colorgreen;Var1:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>REF(ZIG(3,10),2);Var2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2);STICKLINE(Var1,C,O,8,0),COLORYELLOW,LINETHICK2;STICKLINE(Var1,C,O,3,0),COLORYELLOW,LINETHICK2;STICKLINE(Var1,H,L,1,0),COLORYELLOW,LINETHICK2;STICKLINE(Var2,C,O,8,0),COLORFF00FF,LINETHICK2;STICKLINE(Var2,C,O,3,0),COLORFF00FF,LINETHICK2;STICKLINE(Var2,H,L,1,0),COLORFF00FF,LINETHICK2;DRAWTEXT(ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>REF(ZIG(3,10),2),LOW,'卖▲出' ),COLORYELLOW;DRAWTEXT(ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2),LOW,'买★入'),COLORred;精品收费指标原码:盘中参谋精品收费指标原码:盘中参谋(准确率极高)智囊系列之"盘中参谋"(用于大智慧。

大智慧公式多年收集的大智慧指标公式(源码)

大智慧公式多年收集的大智慧指标公式(源码)

漓江渔歌VarA:=MA(CLOSE,20);RSV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27));K:=SMA(RSV,5,1);D:=SMA(K,3,1);D2:=SMA(K,2,1);t1:=(3*K-2*D)*100;天空:STICKLINE(t1,0,120,0.5,0),COLORFFFFFF;山:=(3*K-2*D)*100;桂山:STICKLINE(山,0,山,5,0),COLOR00FFDD;STICKLINE(山,0,山*0.95,5,0),COLOR00FFBB;STICKLINE(山,0,山*0.88,5,0),COLOR00FF99;STICKLINE(山,0,山*0.8,5,0),COLOR00DD99;STICKLINE(山,0,山*0.71,5,0),COLOR00BB99;STICKLINE(山,0,山*0.6,5,0),COLOR00AA99;STICKLINE(山,0,山*0.5,5,0),COLOR009999;STICKLINE(山,0,山*0.4,5,0),COLOR008899;t2:=((100-山)-100)*2/3;漓江水:STICKLINE(t2,懒旅呐魄壬仕掏COLORCCFF00;倒影:t2,COLOR00FFCC,STICK;STICKLINE(倒影,0,倒影*4/5,0.1,0),COLOR00CC99;STICKLINE(倒影,0,倒影*3/5,0.1,0),COLOR009999;STICKLINE(倒影,0,倒影*2/5,0.1,0),COLOR006699;顶线:=100-((HIGH-VarA)/VarA);RSV2:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;Var1:=SMA(RSV2,3,1);Var2:=SMA(Var1,3,1);买入:=Var1<16 and Var2<21 ;卖出预警:=t1>=88 or 顶线<=90;卖出:=CROSS(顶线,t1) or CROSS(90,t1);t3:=买入;打渔船:DRAWTEXT(FILTER(t3,2),山-45,'︼'),COLOR0000FF,LINETHICK2; t4:=卖出预警or 卖出;南归雁:DRAWTEXT(FILTER(t4,2),山+10,'>'),COLORFFFF00;示例 2一个副图公式:《雨季彩虹》ys1:=(high+low+close*2)/4;rk3:=ema(ys1,10);rk4:=std(ys1,10);rk5:=(ys1-rk3)*100/rk4;rk6:=ema(rk5,5);rk7:=ema(rk6,10);涨:ema(rk6,10)+100/2-5,linethick1,colorred;跌:ema(涨,4),linethick1,colorwhite;天晴:if(cross(涨,跌) and 跌<-10,30,0),linethick1,colorccccff;雨季:if(cross(跌,80),70,100),color0099ff,linethick1;彩虹1:ema(跌,4),colorf00ff0;彩虹2:ema(彩虹1,4),colorgreen;彩虹3:=ema(彩虹2,4),coloryellow;彩虹4:=ema(彩虹3,4),colorcc9900;-10,pointdot,color888888,linethick2;80,pointdot,color888888,linethick2;stickline(涨> ref(涨,1),涨,ema(涨,3),0,0) ,color00bbff;stickline(涨> ref(涨,1),涨,ema(涨,3),8,0) ,color0011ff;stickline(涨> ref(涨,1),涨,ema(涨,3),7,0) ,color0022ff;stickline(涨> ref(涨,1),涨,ema(涨,3),6,0) ,color0044ff;stickline(涨> ref(涨,1),涨,ema(涨,3),5,0) ,color0066ff;stickline(涨> ref(涨,1),涨,ema(涨,3),4,0) ,color0088ff;stickline(涨> ref(涨,1),涨,ema(涨,3),3,0) ,color0099ff;stickline(涨> ref(涨,1),涨,ema(涨,3),2,0) ,color00aaff;stickline(涨> ref(涨,1),涨,ema(涨,3),1,0) ,color00bbff;drawicon(天晴,30,1),color0000ff;drawicon(cross(跌,80),70,2),colorgreen;drawtext(cross(涨,跌) and 跌<20 and 跌>-10,40,'停雨多云'),colorccff99; drawtext(天晴>0,-20,'天晴'),color0000ff;var11:=sumbars(vol,finance(7)*100);var22:=dma(ema(close,12),sum(vol,5)/3/capital);var3:=(close-var22)/var22*100;var4:=hhv(var3,var11);var5:=llv(var3,var11);var6:=(var3-var5)/(var4-var5)*100;k:=sma(var6,3,1);d:=sma(k,3,1);j:=3*k-2*d;ma1:=ma(j,3),colorgreen;stickline(filter(j>ma1 and j<=3,5)=1 and 跌<0,涨,涨+20,6,0),coloryellow; drawtext(filter(j>ma1 and j<=3,5)=1 and 跌<0,60,'注意'),colorffffff;。

大智慧指标公式函数大全

大智慧指标公式函数大全

大智慧指标公式函数大全大智慧全部函数ABS 绝对值ACOS 反余弦值ADVANCE 上涨家数ALIGN 水平对齐方式ALL 一直满足条件ALLASKVOL 委托卖出总量ALLBIDVOL 委托买入总量AMOUNT 成交额AND 逻辑与运算ANY 至少一次满足条件ASIN 反正弦值ASKPRICE 委卖价ASKVOL 委卖量ATAN 反正切值AVEDEV 平均绝对偏差AVGASKPRICE 委托卖出均价AVGBIDPRICE 委托买入均价AVGENTERPRICE 平均买入成本BACKSET 向前赋值BARPOS K线位置BARSCOUNT 有效值周期数BARSLAST 上一次条件成立位置BARSSINCE 第一个条件成立位置BARSTATUS 数据位置状态BESTPERCENT 最大利润率BESTTRADE 最大盈利BETA 贝塔系数BETA2 相关放大系数BETADOWN 下跌贝塔系数BETAUP 上涨贝塔系数BETWEEN 介于BIDPRICE 委买价BIDVOL 委买量BIGORDER 委托单大单成交量比例BKNAME 板块名称BUY 买入BUYSHORT 空头买入BUYVOL 主动性买单C 收盘价CAPITAL 流通盘CASH 现金存量CATEGORY 证券类型CEILING 向上舍入CIRCLEDOT 小圆圈线CLOSE 收盘价COLOR 输出颜色COLOR3D阴阳颜色3D柱线输出线型控制符STICK,用逗号隔开放置在输出语句后,将该输出绘制成阴阳3D柱线,若数值正则用阳线颜色,否则用阴线颜色。

例如:VOL,COLOR3D;表示绘制成交量阴阳3D柱线COLORSTICK 阴阳颜色柱线COS 余弦值COST 成本分布COSTB 成本分布COUNT 统计总数COVAR 协方差CROSS 交叉函数CROSSDOT 斜叉线CURRENTDATE 当前日期CURRENTTIME 当前时间CYC 成本均线CYW Cyw主力控盘D1970TODATE 1970日转换为日期DASHLINE长虚线输出线型控制符STICK,用逗号隔开放置在输出语句后,将该输出绘制成长虚线。

大智慧选股指标原码(图)

大智慧选股指标原码(图)

大智慧选股指标原码(图)大智慧选股指标原码(图)【字体:大中小】发布日期:2009-5-31 发布者:股票知识来源:龙头股票网浏览次数:1686大智慧选股指标原码顶压:HHv(ma(h,11),50),Color00FFFF;短压:HHv(ma(h,11),15),Color0090E0;XL1:=llv(ma(h,11),1);趋势:IF(XL1>=短压,短压,XL1),ColorFFFFFF;x1:=(3*C+H+L+O)/6;x2:=EMA(x1,10);x3:=REF(x2,1);x4:=(REF(HIGH,1)+REF(LOW,1))/2;x5:=MA(CLOSE,21)+2*STD(CLOSE,21);x6:=REF(CLOSE,1);{出货}x7:=SMA(MAX(CLOSE-x6,0),7,1)/SMA(ABS(CLOSE-x6),7,1)*100;x8:=CROSS(79,x7);x9:=FILTER(x8,4);{40}WZ1:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);{减}WZ2:=POW(MA(LOW,5),2)+MA(LOW,5);WZ3:=POW(MA(HIGH,5),2)+MA(HIGH,5);WZ4:=(WZ1-LLV(WZ2,9))/(HHV(WZ3,9)-LLV(WZ2,9))*150+65;Dk:=SMA(WZ4,3,1)*1.5;DD:=SMA(Dk,3,1);DJ:=3*Dk-2*DD;WZ5:= EMA(CLOSE,12) - EMA(CLOSE,26);WZ6:= EMA(WZ5,9);WZ7:= 2*(WZ5-WZ6);{50}WZ8:= ref(WZ7,1);WZ9:= CROSS(WZ8,WZ7) and WZ8>0;DRAWTEXT(WZ9 and dj>250,H,'←减'),ColorBCFF8B;var11:=EMA(CLOSE,8);{起步}var2:=EMA(var11,20);var3:=CROSS(var11,var2);var4:=var11<MA(CLOSE,120);var5:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;{逃命}var6:=SMA(var5,5,1);var7:=SMA(var6,8,1);{60}var8:=CROSS(var6,var7) AND var7<20;var9:=CLOSE>LLV(CLOSE,60)+0.3*LLV(CLOSE,60) AND var8;varA:=IF(CLOSE>1000,var8,var9);起步:= var3 AND var4;逃遁:= varA;stickLINE(x2>x3,x2*0.98,x2,6,1),Color0000FF,LINETHICK2;stickLINE(x2<x3,x2*0.98,x2,6,1),ColorF10011,LINETHICK2;Ww1:= sum( ma(c,10),9)/10.110,coloryellow;Xx1:=MA(LOW,2)*0.96;Xx2:=MA(LOW,26)*0.85;Xx3:= REF(Xx1,1)<Xx2 AND REF(Xx1,1)<Xx1 AND REF(Xx1,1)<REF(Xx1,2);var1:=INDEXC;var12:=MA(var1,6);var13:=MA(var1,24);var14:=MA(var1,32);var15:=MA(var1,62);var16:=MA(var1,105);var17:=var15<REF(var15,1) AND var6<REF(var16,1) AND var15<var6*0.98;var18:=var14>var12*1.11 AND var13>var12*1.095;var19:=var12>var1*0.95;var111:=EMA(WINNER(CLOSE)*70,3);var112:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);var113:=CLOSE/MA(CLOSE,40)*100<76;var114:=CLOSE/MA(CLOSE,60)*100<74;var115:=HIGH>LOW*1.051;var116:=var115 AND COUNT(var15,5)>1;var117:=var17 AND var8 AND var19 AND CLOSE/COST(8)<=0.8 AND (CLOSE>OPEN OR CLOSE<OPEN) AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND CLOSE>0.1 OR var16 AND (var113 OR var114) AND var112<20 AND var111<20 AND (WINNER(CLOSE*125/100)-WINNER(CLOSE))*100<7.5 or TROUGHBARS(3,15,1)<4AND CROSS(EMA(CLOSE,21)-EMA(CLOSE,8),EMA(EMA(CLOSE,21)-EMA(CLOSE,8),5));XL11:=EMA(CLOSE,10)/100;{70}XL2:= MA((XL11-REF(XL11,10))/REF(XL11,10),3)*100;XL3:= MA(XL2,3);XL4:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1);DRAWTEXT(IF(CROSS(3*XL4-2*SMA(XL4,3,1),8),87,0) and x2>x3,l-0.1,'←●反弹'),COLORGREEN;DRAWTEXT(IF(CROSS((var11-LLV(var1,4))/(HHV(var11,4)-LLV(var11,4))*4*25,87.5) ANDvar1<40,87,0) and x2>x3,l-0.2,'←●短买'),ColorFFBBD8;DRAWTEXT(CROSS(var1,10) and x2>x3,l-0.3,'←●买'),Color89B2FF;DRAWTEXT(IF(CROSS(2*(EMA((CLOSE*2+HIGH+LOW)/4,12) -EMA((CLOSE*2+HIGH+LOW)/4,26)-EMA(EMA((CLOSE*2+HIGH+LOW)/4,12)-EMA((CLOSE*2+HIGH+LOW)/4,26),2))*5.8,0.47),LOW,0) and x2>x3,l-0.4,'←●加仓'),ColorFF5ED8;{80}Ll1:=(EMA(CLOSE,3) - EMA(CLOSE,13));Ll2:=EMA(Ll1,9);Ll3:=BARSLAST(cross(Ll1,Ll2));Ll4:=ref(Ll3,Ll3+1);Ll5:=Ll2<ref(Ll2,Ll4);变盘:=cross(Ll1,Ll2) and Ll5;DRAWTEXT(起步>0,L,'★起步?'),Color00FF00;STICKLINE(起步>0,C*1.05,C,7,0),COLORred;DRAWTEXT(逃遁>0,H*1.04,'●←逃'),Color7FFFD6;。

大智慧常用的选股公式

大智慧常用的选股公式

大智慧常用的选股公式————————————————————————————————作者:————————————————————————————————日期:大智慧选股公式财经、证券2009-08-31 21:52:08 阅读264评论0 字号:大中小大智慧选股公式怎样编写大智慧选股公式编写条件选股公式时常用的通式。

一、放量、缩量(成交量函数为VOL)1、放量:(1).今天成交量较昨天增加了1倍,表示如下:VOL/REF(VOL,1)〉2(2).今天成交量较10个交易日平均成交量放大了1倍,表示如下:a:=ma(vol,10);Vol/a〉2或者直接用如下公式表示:vol/ma(vol,10)〉2;(3).今日的5日均量较10个交易日平均成交量放大了1倍,表示如下:a:=ma(vol,10);b:=ma(vol,5);b/a〉2;(4).今日的成交量超过了整个流通盘的5%,表示如下:vol/capital〉0.05;其中capital代表流通盘。

2、缩量(1).今日成交量较昨日减少了一半,表示如下:vol/ref(vol,1)〈0.5;(2).今日成交量较10个交易日平均成交量减少一倍,表示如下:a:=ma(vol,10);vol/a〈2;或者直接用如下公式表示:vol/ma(vol,10)〈2;(3).今日的5日均量较10个交易日平均成交量减少1倍,表示如下:a:=ma(vol,10);b:=ref(a,5);a/b〈2;(4).今日的成交量低于了整个流通盘的5%,表示如下:vol/capital〈0.05;二、上涨、下跌上涨:今天的涨幅达到5%以上,表示如下:close/ref(close,1)〉1.05;5日均价连续上涨,表示如下:a:=ma(close,5);b:=ref(a,1);b;下跌:今天的跌幅达到5%以上,表示如下:close/ref(close,1)〈0.95;5日均价连续下跌,表示如下:a:=ma(close,5);b:=ref(a,1);a〈b;(3)、K线的描述close〉open;阳线close〈open;阴线open〉ref(close,1);高开open〈ref(close,1);低开open〉ref(high,1);跳空高开(high为最高价)open〈ref(low,1);跳空低开(low为最低价)三、走势特征选股公式的编制(1)、n日内创新高hhv(high,n)=hhv(high,0) and barscount(c)〉=n;注:n为指标参数,可在参数设定范围内设定参数范围。

大智慧经典版 指标及选股公式

大智慧经典版 指标及选股公式

选股公式金叉MACDDIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1; 低位金叉OR 二次金叉;红进绿出V AR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;V AR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;V AR4:=EMA(V AR3,5);V AR5:=3*V AR3-2*VAR4;AA:CROSS(V AR5,V AR3) AND V AR3<2.1 AND C>O;仓位增减空:=EMA(C,5);均衡:=EMA(空,5);中轨:=HHV(MA(H,13),13);加仓:FILTER(均衡>REF(均衡,1)AND 中轨<REF(中轨,1)AND C>REF(C,1),11);夺宝奇兵买进价:=((c-ref(ma(c,6),1))/6+ma(c,6))*1.004;买进条件:=cross(c,买进价) and 买进价>ref(买进价,1);v1:=ema(close,5);v2:=ema(ema(close,29)*1.01,10);买进条件and cross(v1,v2);中华方圆▲★{红▲、红★同时出现选股}X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);Y:=EMA(CLOSE,10);红▲:=CROSS(Y,X);c1:=(CLOSE+LOW+HIGH)/3;c2:=EMA(c1,6);c3:=EMA(c2,5);红★:=CROSS(c2,c3);红▲and 红★;中华方圆□V AR1:=LLV(LOW,21);V AR2:=HHV(HIGH,21);AK1:=EMA((((CLOSE - V AR1) / (V AR2 - V AR1)) * 100),5); AK:=EMA((((CLOSE - VAR1) / (V AR2 - V AR1)) * 50),13); AB:=CROSS(AK1,AK);V AR3:=LLV(LOW,55);V AR4:=HHV(HIGH,34);V AR5:=EMA((((CLOSE - V AR3) / (V AR4 - V AR3)) * 100),3); V AR6:=((AK + V AR5) / 2);V AR8:=EMA(V AR6,5);BB:=EMA(((0.667 * REF(V AR8,1)) + (0.333 * V AR8)),2); BB1:=(CROSS(AK1,BB) AND (BB < 30));CD:=(BB1 * 0.6);白色□:AB =1;中华方圆▲{红▲选股}X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);Y:=EMA(CLOSE,10);红▲:CROSS(Y,X);中华方圆★{红★选股}c1:=(CLOSE+LOW+HIGH)/3;c2:=EMA(c1,6);c3:=EMA(c2,5);c4:=CROSS(c2,c3);红★:c4;黑马王N:=20;V AR2:=(CLOSE+HIGH+LOW)/(3);V AR3:=(EMA(V AR2,10));V AR4:=(REF(VAR3,1));V AR5:=((REF(HIGH,1)+REF(LOW,1))/(2));V AR6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)));xg:CROSS(V AR3,V AR4);红柱初现X4:=(L+H+C*4)/6;x6:=EMA(x4,19);x9:=(x6-REF(x6,1))/REF(x6,1)*100;红柱初现:=x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1);第1个红柱:红柱初现and ref(红柱初现,1)<1;紫黄同现A1:=EMA(C,7)-EMA(C,21); A2:=MA(A1,4); 买入:cross(A1,A2) AND A1-A2>0.03 and A2<-0.1;布林宝塔线QJJ:=(VOL/(((HIGH-LOW)*2)-ABS((CLOSE-OPEN))));XVL:=(IF((CLOSE>OPEN),(QJJ*(HIGH-LOW)),IF((CLOSE<OPEN),(QJJ*((HIGH-OPEN)+(CLOSE-LOW))), (VOL/2)))+IF((CLOSE>OPEN),(0-(QJJ*((HIGH-CLOSE)+(OPEN-LOW)))),IF((CLOSE<OPEN),(0-(QJJ*(HIGH-LOW))),(0-(VOL/2)))));ZLL:=(VOL/CAPITAL);HSL:=((XVL/20)/1.15);攻击流量:=(((HSL*0.55)+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));LLJX:=EMA(攻击流量,3);B1:=REF(C,1);B2:=REF(C,2);SS:=IF(C>REF(C,1) AND REF(C,1)>=REF(C,2),1,IF(C<REF(C,1) AND REF(C,1)<=REF(C,2),-1,IF(C>REF(C,2) AND REF(C,2)>REF(C,1),2,IF(C<REF(C,2) AND REF(C,2)<REF(C,1),-2,0))));SM:=IF(REF(SS,1)<>0,REF(SS,1),IF(REF(SS,2)<>0,REF(SS,2),IF(REF(SS,3)<>0,REF(SS,3),IF(REF(SS,5)<>0,REF(SS,5),IF(REF(SS,6)<>0,REF(SS,6),IF(REF(SS,7)<>0,REF(SS,7),0))))));DK:=IF(REF(SS,1)<>0,B2,IF(SM>0,MIN(B1,B2),MAX(B1,B2)));C>REF(C,1)*1.035 AND C>AMOUNT/100/V AND COUNT(CROSS(LLJX,0),2)=1 AND CROSS(C,DK)AND C>SAR(10,2,20) AND C>MA(C,14) AND C>MA(C,20)AND BETWEEN(V/CAPITAL,0.01,0.08) AND CAPITAL<=2000000;上穿就买上升趋势:=EMA(CLOSE,5);支撑压力:=EMA(CLOSE,21);XG:CROSS(上升趋势,支撑压力);三线交汇B:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);分水岭:=IF(MA(CLOSE,17)<B,B,MA(CLOSE,17)),,;操作线:=分水岭-(EMA(C,3)-分水岭);CROSS(分水岭,操作线);立桩量AAA:=(3*C+H+L+O)/6;V AR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>V AR1;立桩量:=FILTER(TJ1,5);TJ2:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));突破:=TJ2=1;TJ3:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(LOW,3),1,0)));三天法则:=TJ3=1;成立:=三天法则AND 突破;条件成立:FILTER(成立,3);低进高出RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;X:=LLV(J,2)=LLV(J,8);CROSS(J,REF(J+0.01,1)) AND X AND J<19;财出水面V AR2:=(-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;V AR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;V AR4:=EMA(V AR3,5);操盘:=3*VAR3-2*VAR4;xg:CROSS(操盘,V AR3) AND V AR3<2.1 and c>o;绝对牛股Var1:=(CLOSE*2+HIGH+LOW)/4;SK:= EMA(Var1,13)-EMA(Var1,73);SD:= EMA(SK,2);V1:(cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03)or (cross(sk,sd) and sk<=-0.14 ) or (cross(sk,sd) and sk<=0.05and (v/ma(v,5)>2 or c/ref(c,1)>0.035));关注DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=EMA(DIFF,9);MACD超跌:=(COUNT((DIFF < DEA),10) = 10);MACD:=(MACD超跌* "MACD.MACD"(26,12,9))*(-1);MACD金叉:=CROSS(DIFF,DEA);关注: (MACD金叉AND (REF(MACD,1) < 0)) ;关注买MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);MA30:=MA(CLOSE,30);MA60:=MA(CLOSE,60);MA65:=MA(CLOSE,65);MA250:=MA(CLOSE,250);均线流:=(((((MA5 > MA65) AND (MA10 > MA65)) AND (MA30 > MA65)) AND (MA5 < MA30)) * 0.3); PL1:=(((CLOSE - MA60) / MA60) < 0.1);PL2:=(((CLOSE - MA250) / MA250) < 0.3);偏离率:=(((PL1 = 1) AND (PL2 = 1)) * 0.2);DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=EMA(DIFF,9);MACD超跌:=(COUNT((DIFF < DEA),10) = 10);MACD:=(MACD超跌* "MACD.MACD"(26,12,9))*(-1);目标:=IF(均线流=0.3 AND MACD AND 偏离率=0.2 ,0.8,0);MBSJ:=BARSLAST((目标= 0.8));放量上涨:=(((VOL / REF(VOL,1)) >= 1.1) AND ((CLOSE / REF(CLOSE,1)) >= 1.01));SZSJ:=BARSLAST((放量上涨= 1));MACD金叉:=CROSS(DIFF,DEA);JCSJ:=BARSLAST((MACD金叉= 1));启动:((((MBSJ <= 20) AND (SZSJ <= 1)) AND (JCSJ <= 1)) * 1);老鸭头MA5 := MA(close,5);MA10 := MA(close,10);MA60 := MA(close,60);pday1 := barslast(cross(ma5,ma60));pday2 := barslast(cross(ma10,ma60));pday3 := barslast(high=hhv(high,pday2));pday4 := barslast(cross(ma10,ma5){ or (ref(ma10,1)<ref(ma5,1) and ma5=ma10)});pday5 := barslast(cross(ma5,ma10){ or (ref(ma5,1)=ref(ma10,1) and ma5>ma10)});a1:= pday1>pday2 and pday2>pday3 and pday3>pday4 and pday4>pday5 and pday5<5;a2:= count(cross(ma10,ma5),pday2)=1;a3:=ma5>ma60 and ma10>ma60;(A1 AND A2 and a3) and FILTER(A1 AND A2 and a3 ,5);主升行情顶:=85;V AR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;CC:=SMA(V AR5,20,1);CC1:=SMA(CC,5,1);出击:CROSS(CC,CC1) AND (CC1 < 顶) ;超越庄股K2:=EMA(C,5);K3:=EMA(C,10);K5:=EMA(C,30);K6:=2*(K2-K5);K7:=2*(K2-K3);K8:=2*(K7+K6);CROSS(K8,0);强势拉升Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;Q3:=SMA(Q2, 9, 1);跨越:=EMA(Q3, 3);V AR12:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;机构做空能量线:=SMA(V AR12,3,1);CROSS(跨越,机构做空能量线);吸庄血{底部笑脸的信号买入}V AR1:=4*SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,5,1),3.2,1); V AR2:=8;CROSS(V AR1,V AR2);智能操盘K2:=EMA(C,5);K3:=EMA(C,10);K5:=EMA(C,30);K6:=2*(K2-K5);K7:=2*(K2-K3);K8:=2*(K7+K6);买入:CROSS(K8,0);财富拐点ma3:=ema(c,3);ma5:=ema(c,5);var1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);Var2:=REF(Var1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var3:=REF(Var2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var4:=REF(Var3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var5:=REF(Var4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var6:=REF(Var5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var7:=REF(Var6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var8:=REF(Var7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var9:=REF(Var8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VarA:=REF(Var9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VarB:=REF(VarA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VarC:=REF(VarB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VarD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);VarE:=REF(VarD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VarF:=REF(VarE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var10:=REF(VarF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var11:=REF(Var10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var12:=REF(Var11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var13:=REF(Var12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var14:=REF(Var13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var15:=REF(Var14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var16:=REF(Var15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var17:=REF(Var16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var18:=REF(Var17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var19:REF(VarD OR VarE OR VarF OR Var10 OR Var11 OR Var12 OR Var13 OR V ar14 OR Var15 OR Var16 OR Var17 OR Var18,1) AND V ar1 AND CROSS(MA3,MA5);金牌逃顶V AR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;V AR2:=SMA(V AR1,9,1)+100;V AR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;V AR4:=SMA(V AR3,3,1);V AR5:=SMA(V AR4,3,1)+100;V AR6:=V AR5-V AR2;趋势:=IF(V AR6>45,V AR6-45,0);第一个粉色:ref(REF(趋势,1) >趋势,1) and REF(趋势,1)< 趋势;领头羊{绿线上穿白线}白色:=SMA(HIGH,21,2)*1.05;绿色:=SMA(CLOSE,2,1);领头羊:CROSS(绿色,白色);财神到RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;J1:=REVERSE(J);AA:=REF(MA(C,1),10)>REF(MA(C,60),10);买点:CROSS(J,J1) AND AA;MACD提示DIFF:=(EMA(CLOSE,3) - EMA(CLOSE,13));DEA:=EMA(DIFF,9);绿变红:CROSS(DIFF,DEA)变色MACDDIF:=EMA(CLOSE,8)-EMA(CLOSE,13);DEA:=EMA(DIF,9),;买卖频谱买线:=EMA(C,3);卖线:=EMA(SLOPE(C,21)*20+C,55);N:CROSS(买线,卖线);底部爆发V AR01:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5); V AR02:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5);V AR03:=CROSS(V AR02,V AR01);V AR04:=REF(V AR02,2)<REF(V AR02,1) AND V AR02<REF(V AR02,1);V AR05:=COUNT(V AR03,7)>0 AND V AR04;V AR06:V AR05 AND COUNT(V AR05,5)=1;顶天立地V AR26:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);V AR27:=REVERSE(V AR26);V AR28:=SMA(VAR26,3,1);快线:=SMA(V AR28,3,1);慢线:=SMA(快线,3,1);金叉买:CROSS(快线,慢线) AND (快线<40);短线套利MA6:=MA(C,6);MA18:=MA(C,18);买进价:=((C-REF(MA6,1))/6+MA6)*1.004;买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);加码价:=((C-REF(MA18,1))/18+MA18)*1.004;加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);(ref(买进条件,1) and 加码条件) OR (ref(加码条件,1) and 买进条件) ;雷电交加V ARF:=TROUGHBARS(3,15,1)<4;FILTER(V ARF=1,3);买必涨diff:=EMA(CLOSE,12)-EMA(CLOSE,26);dea:=EMA(diff,9);买入:CROSS(diff,dea);金叉:CROSS(DIF,DEA) AND DIF<0.3;要涨停陡峭度:=IF((BARSCOUNT(CLOSE) > 7),(100)*((MA(CLOSE,7))/(LLV(MA(CLOSE,7),7)) - 1),1); N:=IF((陡峭度> 0.35),6,65);V AR1:=((-((100)*(HHV(HIGH,N) - CLOSE))/(HHV(HIGH,N) - LLV(LOW,N))))*((DATE < 20170110)); 要涨停:(30)*(CROSS(V AR1,(-2)));指标公式涨停{参数M1 2 1000 5M2 2 1000 10M3 2 1000 20M4 2 1000 30M5 2 1000 60M6 2 1000 120M7 2 1000 250}MA1:MA(CLOSE,M1);MA2:MA(CLOSE,M2);MA3:MA(CLOSE,M3);MA4:MA(CLOSE,M4);MA5:MA(CLOSE,M5);MA6:MA(CLOSE,M6);MA7:MA(CLOSE,M7);C3:=REF(C,1); 涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),2,0);STICKLINE(涨停,OPEN,CLOSE,5,0),COLORRED;跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),2,0);STICKLINE(跌停,OPEN,CLOSE,5,0),COLORGREEN;黑马王N:=20;N1:=7;N2:=69;M3:=EMA(CLOSE,3);M8:EMA(CLOSE,8),CoLor008000;M13:EMA(M8,13),CoLor0000FF;M62:EMA(M8,55),CoLorF0F000;V AR1:=EMA(M13,62);M81:EMA(M62,81),CoLor00FFFF;M144:EMA(V AR1,144),Linethick2,CoLor0000FF;M250:EMA(V AR1,250),POINTDOT,Linethick2,CoLorF00FF0;V AR2:=(CLOSE+HIGH+LOW)/(3);V AR3:=(EMA(V AR2,10));V AR4:=(REF(VAR3,1));STICKLINE((V AR3>V AR4),V AR3,V AR4,4,0),CoLor00FFFF;STICKLINE((V AR3<V AR4),V AR3,V AR4,4,0),CoLorFF0000;V AR5:=((REF(HIGH,1)+REF(LOW,1))/(2));V AR6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)));DRAWTEXT(CROSS(VAR3,V AR4),(V AR3)*(0.98),'★'),CoLor00FFFF;DRAWTEXT(CROSS(VAR5,V AR6),(HIGH)*(1.04),'↓卖'),CoLor008000;V AR7:=REF(CLOSE,1);V AR8:=((SMA(MAX(CLOSE-V AR7,0),N1,1))/(SMA(ABS(CLOSE-V AR7),N1,1)))*(100);V AR9:=CROSS(N2,V AR8);V ARA:=(FILTER(V AR9,4));DRAWTEXT(V ARA,(HIGH)*(1.04),'↓卖'),CoLorFFFFFF;V ARB:=((2)*(CLOSE)+HIGH+LOW)/(4);V ARC:=LLV(LOW,34);V ARD:=HHV(HIGH,34);V ARE:=(EMA(((V ARB-VAR1)/(V AR5-V AR1))*(100),7));V ARF:=(EMA((0.667)*(REF(V ARE,1))+(0.333)*(VARE),5));DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),8))/(8)>0.6) AND (VOL>=(1.5)*(MA(VOL,5))) AND COUNT((V ARE>=V ARF),3) AND (REF(LOW,1)=LLV(LOW,120)),1,0),LOW,'●买进'),CoLorFF00FF; DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),13))/(13)>0.6) AND COUNT((V ARE>V ARF),6) AND (REF(LOW,5)=LLV(LOW,120)) AND REF((CLOSE>=OPEN),4) AND REF((CLOSE>OPEN),3) AND REF((CLOSE>OPEN),2) AND REF((OPEN>CLOSE),1) AND (OPEN>REF(CLOSE,1)),1,0),LOW,'●买进'),CoLor00FFFF;V AR10:=(MA(CLOSE,80)-(MA(CLOSE,10))/(3));DRAWTEXT(IF((CLOSE<V AR10) AND ((VOL)/(240)>(MA(VOL,5))/(240)) AND (CLOSE>(REF(CLOSE,1))*(1.08)) AND (CLOSE<(MA(CLOSE,13))*(1.3)),1,0),LOW,'●抄底'),CoLor0000FF;金叉MACDDIFF:EMA(CLOSE,12)-EMA(CLOSE,26);DEA:EMA(DIFF,9);MACD:=2*(DIFF-DEA);STICKLINE(MACD>=0,MACD,0,4,1),COLORF00FF0;STICKLINE(MACD<0,MACD,0,4,1),COLORWHITE;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,4,0 ),COLOR00AAFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,3.3,0 ),COLOR00BBFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2.2,0 ),COLOR00CCFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1.65,0 ),COLOR00DDFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1.1,0 ),COLOR00EEFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0.55,0 ),COLOR00FFFF;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,4 ,0 ),COLOR0000AA;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,3.3 ,0 ),COLOR0011BB;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2.2,0 ),COLOR0022CC;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1.65 ,0 ),COLOR0033DD;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1.1 ,0 ),COLOR0044EE;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,0.55 ,0 ),COLOR0055FF;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,4,0 ),COLORAA00BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,3.3 ,0 ),COLORBB11BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2.2,0 ),COLORCC22BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1.65,0 ),COLORDD33BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1.1,0 ),COLOREE44BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,0.55 ,0 ),COLORFF55BB;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,4,0 ),COLORFFAA00;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,3.3 ,0 ),COLORFFBB11;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2.2,0 ),COLORFFCC22;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1.65 ,0 ),COLORFFDD33;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1.1 ,0 ),COLORFFEE44;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,0.55 ,0 ),COLORFFFF55;IF(DIFF<0,DIFF,0),COLORRED,LINETHICK1;IF(DIFF<0,0,DIFF),COLORYELLOW,LINETHICK1;IF(DIFF<DEA,DIFF,DEA),COLOR00FF00,LINETHICK1;IF(DIFF>DEA,DEA,DEA),COLORWHITE,LINETHICK1;↑低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;STICKLINE(↑低位金叉,0,-0.5,2,0),COLORYELLOW;DRAWTEXT(↑低位金叉,-0.4,' ↑低位金叉'),COLORYELLOW;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));↑二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;STICKLINE(↑二次金叉,0,-0.2,5,0),COLORFF00FF;DRAWICON(↑二次金叉,DEA*1.2,11) ;DRAWTEXT(↑二次金叉,-0.2,' ↑二次金叉'),COLORFF00FF;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));↑底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA); STICKLINE(↑底背离,0,0.2,3,0),COLOR00FF00;DRAWLINE(A1=0,DEA,↑底背离,DEA,0),COLORRED,LINETHICK2;DRAWTEXT(↑底背离,0.2,' ↑底背离'),COLOR00FF00;A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));↑顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF); DRAWLINE(A2=0,DEA,↑顶背离,DEA,0),COLORGREEN,LINETHICK2红进绿出V AR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;V AR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;V AR4:=EMA(V AR3,5);V AR5:=3*V AR3-2*VAR4;AA:=CROSS(VAR5,V AR3) AND V AR3<2.1 AND C>O;V AR6:=(2*CLOSE+HIGH+LOW)/4;V AR7:=LLV(LOW,13);V AR8:=HHV(HIGH,13);V AR9:=EMA((V AR6-V AR7)/(V AR8-V AR7)*100,13);V ARA:=EMA(0.667*REF(V AR9,1)+0.333*V AR9,2);多:V AR9,COLORRED,POINTDOT;空:EMA(0.382*REF(VAR9,2)+0.618*V AR9,12),COLORGREEN;STICKLINE(V AR9>V ARA,V AR9,V ARA,6,0),COLORRED;STICKLINE(V AR9<=V ARA,V AR9,V ARA,6,0),COLORGREEN;DRAWTEXT(AA,10,'底'),COLORYELLOW;战无不胜危机线:85,colorred;中间线:50,colorwhite;安全线:15,colorgreen;v1:=(2*close+high+low)/4;v2:=llv(low,34);va:=hhv(high,34);防线b:=ema((v1-v2)/(va-v2)*100,13);防线bb:=ema((0.667*ref(防线b,1)+0.333*防线b),2);战术线:防线b,coloryellow,pointdot;战略线:ema(0.382*ref(防线b,2)+0.618*防线b,12),coloryellow;stickline(防线b>防线bb,防线b,防线bb,6,0),colorred;stickline(防线b<=防线bb,防线b,防线bb,6,0),;紫黄同现{紫黄同现股票将大涨}JJ :=(C*3+H+L+O)/6;SK := EMA(JJ,13) - EMA(JJ,21);SD := EMA(SK,3);SP := EMA(SK,10);A1:=EMA(C,7)-EMA(C,21);B1:=EMA((0.668*REF(A1,1)+0.333*A1),1);B1,COLORSTICK;X1:=V/SUM(V,13);X2:=DMA(C,X1);X3:=(C-X2)/X2*40;L2:=MA(AMOUNT/(100*V),13);CYS13:= (C-L2)/L2*100;做多:IF(A1>=B1,A1,B1),LINETHICK2,COLORFF00FF;做空:IF(B1-A1,B1,A1),COLORGREEN,LINETHICK2;强庄:STICKLINE(CYS13>5,0,-做空,2,0 ),COLORYELLOW;主力强度:STICKLINE(X3>0 AND 做多>0,做多+0.1,做多,1,0),COLORFF80FF;C>MA(C,30),COLORFF80FF,LINETHICK2;DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,9);RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J1:=DIFF;J2:=DEA;J3:=K;J4:=D;VL:=REF(LOW,1); VH:=REF(H,1);V AR1:=SMA(ABS(H-VH),13,1)/SMA(MAX(H-VH,0),13,1)*100;V AR2:=SMA(ABS(L-VL),13,1)/SMA(MAX(L-VL,0),13,1)*100;V AR3:=REF(CLOSE,1);V AR4:=MA(V AR2,13);V AR5:=LLV(L,34);V AR6:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;V AR7:=CROSS(93,V AR6);V AR8:=EMA(IF(L<=VAR5,V AR4,0),3);V AR9:=H>LLV(L,0)*7;V AR10:=(SMA(SMA((((CLOSE - LLV(LOW,54)) / (HHV(HIGH,54) - LLV(LOW,54))) * 100),7,1),5,1));V AR11:=((SMA(((CLOSE - LLV(LOW,54)) / (HHV(HIGH,54) - LLV(LOW,54)) * 100),7,1)) * 16.18) - (V AR10 * 10.9);上攻:FILTER(CROSS(J1,J2) AND VOL>REF(SUM(VOL,5),1),3),COLOR0066FF,LINETHICK2;WR10:=-100*(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10)),COLORWHITE,LINETHICK1;WR45:=-100*(HHV(HIGH,45)-CLOSE)/(HHV(HIGH,45)-LLV(LOW,45)),COLORFFB900,LINETHICK1;WR99:=-100*(HHV(HIGH,99)-CLOSE)/(HHV(HIGH,99)-LLV (LOW,99)),COLORRED,LINETHICK1;顶:= 0, LINETHICK2 ,COLOR446600;底1:=-95, LINETHICK2 ,COLOR446600;红柱初现工作线:MA(CLOSE,14),COLORRED,LINETHICK2;操盘线:MA(CLOSE,26),Color00A800,LINETHICK2;X1:=MA(C,1);X2:=SMA(SMA(SMA(x1,2,1),2,1),2,1);X3:=MA(x2,3);X4:=(L+H+C*4)/6;X5:=EMA(x4,12);x6:=EMA(x4,19);x7:=(x5-REF(x5,1))/REF(x5,1)*100;x9:=(x6-REF(x6,1))/REF(x6,1)*100;G:=BARSLAST(CROSS(x7,0));X8:=REF(x4,G);A2:=3*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30)) *100,5);A4:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;A5:=EMA(CLOSE,12)-EMA(CLOSE,26);A6:=EMA(A5,9);A7:=(A5-A6);STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),HIGH,LOW,0.5,0),color0000CD;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,8,0),color070084;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,7,0),color0000A3;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,6,0),color0000B7;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,5,0),color0000CD;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,4,0),color0000E9;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,2,0),color0754E9;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,0.6,0),Color68B8FF;Z1:MA(CLOSE,5),COLORYELLOW,;Z2:MA(CLOSE,55){,ColorFF8080},Color00FF00,LINETHICK2;玄黄吉星XF: EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2);V AR2:=MA(CLOSE,80)-MA(CLOSE,13)/3;神奇趋势线:=MA((CLOSE-V AR2)/V AR2,1);狙击:DRAWTEXT(CROSS(神奇趋势线,0) AND LOW/REF(HIGH,1)<1.012,LOW,'狙击'),COLORYELLOW;盈利临界: DRAWTEXT(COUNT(神奇趋势线>REF(神奇趋势线,1),3)=3 AND COUNT(神奇趋势线<0,10)=10 AND REF(神奇趋势线,3)=LLV(神奇趋势线,10),LOW,'盈利临界'),COLORYELLOW;参与: DRAWTEXT(REF(神奇趋势线,2)=LLV(神奇趋势线,20) AND REF(神奇趋势线,2)<0.071 AND REF(神奇趋势线,2)<REF(神奇趋势线,1) AND NOT(REF(LOW,1)>REF(HIGH,2) AND LOW>REF(HIGH,1)) AND CLOSE>REF(CLOSE,1),LOW,'参与'),COLORYELLOW;DRAWICON(CROSS(EMA(CLOSE,8),EMA(EMA(CLOSE,8),20)) AND EMA(CLOSE,8)<MA(CLOSE,120),LOW,1),COLORRED;DRAWTEXT((WINNER(CLOSE)-WINNER(OPEN))*100>=17 AND VOL/CAPITAL*100<=2,LOW,'无量长阳,谨慎'),COLORWHITE;V AR1:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;V AR21:=SMA(VAR1,20,1);V AR3:=SMA(V AR21,15,1);V AR4:=100-3*VAR21+2*V AR3;V AR5:=(3*VAR21+2*V AR3)/4;V AR6:=ABS(ABS(V AR5)-ABS(V AR4));V AR7:=ABS(ABS(V AR5)-ABS(V AR6));阴跌区域:=V AR4-V AR7;见顶区域:=阴跌区域<0;均衡:=V AR5-V AR7;DRAWTEXT(CROSS(阴跌区域,均衡),LOW,'阴跌延续'),COLORGREEN;DRAWTEXT(CROSS(阴跌区域,-0.1),LOW,'见顶回落'),COLORWHITE;STICKLINE(C>=O,C,H,0.1,0),COLORRED;TTZF:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100 {AND TTZF>=ZF};STICKLINE(TTZF>=2.50 ,O ,C ,8,0),COLOR00FFFF;中轨:HHV(MA(H,11),15),COLORRED;趋势:LLV(MA(H,11),1),COLORGREEN;三合成RSI6:SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100,colorwhite;DIFF:=EMA(C,5)-EMA(C,20);DEA:=EMA(DIFF,10);MACD:800*(DIFF-DEA)/EMA(C,30),colorSTICK,linethick3;RSV:=(C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100;K20:SMA(RSV,5,1),COLORyellow;D20:SMA(K20,5,1),COLORFF00ff;20;50;80;DRAWICON(count(c>ref(c,1),5)=5,h*1.01,3);DRAWICON(count(c<ref(c,1),5)=5,l*0.995,1);机构能量做多能量线: SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,5,1)-8,COLORRED,LINETHICK3;做空能量线: SMA((HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100,2,1),COLORGREEN,LINETHICK3; 20,pointdot,colorf00ff0;50,pointdot,colorgreen;80,pointdot,colorwhite;短线之星Var1:=100-90*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20));Var2:=100-90*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20));Var3:=100-MA(100*(HHV(HIGH,6)-CLOSE)/(HHV(HIGH,6)-LLV(LOW,6)),28);买入信号: IF(Var2<MA(Var3,6),MA(Var3,6),Var2),colorred ;卖出信号: IF(Var1>MA(Var3,6),MA(Var3,6),Var1),colorgreen ;强弱线: MA(Var3,6),coloryellow ,linethick2 ;极品逃顶V AR2:=LLV(LOW,10);V AR3:=HHV(HIGH,25);阶段卖出: 3.2,COLORC6C600;3.5,COLOR0088FF;清仓卖出: 3.5,COLORFF75FF;动力线:= EMA((CLOSE-V AR2)/(V AR3-V AR2)*4,4);STICKLINE(动力线>REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLORRED; STICKLINE(动力线<=REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLOR00FF00; 底部:0.2,COLOR70DB93;关注:0.5,COLORYELLOW;DRAWICON( FILTER(CROSS(动力线,关注),20),动力线+0.02 ,1);DRAWICON( FILTER(CROSS(清仓卖出,动力线),20),动力线+0.02,2); DRAWICON( FILTER(CROSS(动力线,底部),20),动力线+0.02 ,1);DRAWICON( FILTER(CROSS(阶段卖出,动力线),20),动力线+0.02,2);强弱分界线:1.75,POINTDOT,LINETHICK2,COLOR70DB93;数值:动力线,COLORA8A8A8;超级逃顶Var2:=llv(low,10);var3:=hhv(high,25);3.5,color0088ff;清仓卖出: 3.5;动力线:= ema((close-var2)/(var3-var2)*4,4);stickline(动力线>ref(动力线,1) ,动力线,ref(动力线,1),8 ,1),colorred;stickline(动力线<=ref(动力线,1) ,动力线,ref(动力线,1),8 ,1),colorgreen;底部介入:0.2,colorgreen;重点关注:0.5, coloryellow;drawicon( filter(cross(动力线,重点关注),20),动力线+0.02 ,1);drawicon( filter(cross(清仓卖出,动力线),20),动力线+0.02,2);drawicon( filter(cross(动力线,底部介入),20),动力线+0.02 ,1);drawicon( filter(cross(JDMC,动力线),20),动力线+0.02,2);强弱分界线:1.75,pointdot,linethick2,colordddddd;抄底逃顶趋势: 5*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW ,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,2 7)-LLV(LOW,27))*100,5,1),3,1),2,1),LINETHICK0,COLOR7F52AF;趋势1: EMA(MA(趋势,5),3),LINETHICK0,COLORA6B8C1;STICKLINE(趋势>=趋势1,趋势,趋势1,5,0),COLOR7F52AF;STICKLINE(趋势<趋势1,趋势,趋势1,5,0),COLORA6B8C1;STICKLINE(趋势>108 AND 趋势>=趋势1,趋势,108,5,0),COLORFF0000;STICKLINE(趋势1>108 AND 趋势<趋势1,趋势1,108,5,0),COLORFFFFFF;STICKLINE(趋势<0 AND 趋势<趋势1,趋势,0,5,0),COLORF00FF0;STICKLINE(趋势1<0 AND 趋势>趋势1,趋势1,0,5,0),COLORF0F000;V1:= MA(CLOSE,5)=HHV(MA(CLOSE,5),20);V2:= MA(CLOSE,5)>MA(CLOSE,20);V3:= COUNT(MA(CLOSE,1)>REF(CLOSE,1),3)=3;风险: IF(V1 AND V2 AND V3,30,0),LINETHICK0,STICK,COLOR00FF00;V11:= MA(CLOSE,5)=HHV(MA(CLOSE,5),120);V21:= MA(CLOSE,5)>MA(CLOSE,120);V31:= COUNT(MA(CLOSE,1)>REF(CLOSE,1),3)=3;风险1: IF(V11 AND V21 AND V31,60,0),LINETHICK0,STICK,COLORF0F000;底部: 5,LINETHICK0,COLOR00FFFF;抄底: IF(CROSS(趋势,底部),60,0),LINETHICK2,STICK,COLOR00FFFF;DRAWTEXT(抄底,50,'抄底'),COLOR0000FF;天线: 108,LINETHICK0,COLORFF9D00;逃顶: IF(CROSS(天线,趋势),1,0),LINETHICK0,STICK,COLORFF9D00;STICKLINE(CROSS(天线,趋势),90,108,3,0),COLORFF9D00;DRAWTEXT(CROSS(天线,趋势),85,'逃顶'),COLORFF9D00;金牌黑马A1:3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))黑马线:EMA(A1,5),LINETHICK2,COLOR6600FF;A2:=(黑马线-REF(黑马线,1))/REF(黑马线,1)*100;A3:=EMA(C,5);A4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;趋势线:(MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2)),LINETHICK2,COLORYELLOW;A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100;DRAWTEXT(FILTER(REF(黑马线,1)>90 AND A2<0,7),黑马线,'跑'),COLOR00FF00;DRAWTEXT(CROSS(A1,黑马线)AND 黑马线<A5,黑马线,'黑马');DRAWTEXT(CROSS(黑马线,A5)AND 趋势线<80,黑马线,'追涨');DRAWTEXT(CROSS(趋势线,0)AND 黑马线<40,5,'大黑马');底部:(A2<-10 AND A2>REF(A2,1))*25,COLORRED;DRAWICON(底部AND A3>REF(A3,1),25,4);机会来临:REF(IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,30,0),1),COLORF00FF0; 大势已去:IF(CROSS(黑马线,A1)AND 黑马线>70 AND 趋势线>80,90,100),COLORFF0000;中短长线90,COLOR9966FF,LINETHICK2;80,COLOR996699;20,COLORGREEN;10,COLORCC6633,LINETHICK2;长期线:MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19)+100,color9900FF;短期线:-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14))+100,color888888;中期线:EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4)+100,coloryellow,linethick2;见顶:(ref(中期线,1)>85 and ref(短期线,1)>85 and ref(长期线,1)>65) and cross(长期线,短期线) ;顶部区域:(中期线<ref(中期线,1) and ref(中期线,1)>80) and (ref(短期线,1)>95 or ref(短期线,2)>95 ) and 长期线>60 and 短期线<83.5and 短期线<中期线and 短期线<长期线+4;顶部:=filter(顶部区域,4);底部区域:(长期线<12 and 中期线<8 and (短期线<7.2 or ref(短期线,1)<5) and (中期线>ref(中期线,1) or 短期线>ref(短期线,1)))or (长期线<8 and 中期线<7 and 短期线<15 and 短期线>ref(短期线,1)) or (长期线<10 and 中期线<7 and 短期线<1) ;stickline( 顶部,99,103,20,1 ),colorred,linethick2;stickline( 底部区域,-4,0,22,0 ),colorgreen;低位金叉:长期线<15 and ref(长期线,1)<15 and 中期线<18 and 短期线>ref(短期线,1) and cross(短期线,长期线) and 短期线>中期线and (ref(短期线,1)<5 or ref(短期线,2)<5 ) and (中期线>=长期线or ref( 短期线,1)<1 );stickline( 低位金叉,0,5,11,0 ),colorred;仓位增减(主图)。

同花顺主图选股公式大全

同花顺主图选股公式大全

同花顺指标公式一. 操盘神手五彩K线主图源码MA5:MA(CLOSE,5),ColorCCCCCC;?MA10:MA(CLOSE,10),Color00BBBB;?MA21:MA(CLOSE,21),Color00AA00;?MA30:MA(CLOSE,30),Color990099;?MA60:MA(CLOSE,60),Color000088;?MA120:MA(CLOSE,120),Color777700;?买线:=ZIG(3,10);?卖线:=MA(买线,3);?BU:=CROSS(买线,卖线);?SEL:=CROSS(卖线,买线);?DRAWTEXT(bu,L*0.99,'买'),linethick1,color00aaff;? DRAWTEXT(sel,H*1.01,'卖'),linethick1,color00ff00;?DRAWTEXT("X09A.T">0,L*0.99,'B'),linethick1,colorFFffff;?DRAWTEXT("X09A.T1">0,L*0.99,'B'),linethick1,color0000ff;?STICKLINE(买线>=卖线,LOW,HIGH,0.1,0),color0000CC;?STICKLINE(买线>=卖线,CLOSE,OPEN,7,0),color0000CC;?STICKLINE(买线<卖线,CLOSE,OPEN,7,0),colorCCCC00;?STICKLINE(买线<卖线,LOW,HIGH,0.1,0),colorCCCC00;?STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,7,0),color00AAFF;? STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,7,0),color00DD00;指标用法:可直接按照买卖点做参考操作,红柱区域表示为股价上涨阶段(其中的绿柱由红色点缀代表是正常调整),绿柱区域表示为股价下跌阶段(其中的红柱由绿色点缀代表是诱多行为),指标镶入步骤:工具→公式管理→常用→五彩K线→新建→名称和描述→粘贴指标源码→确定..............................................二. 主力多空副图指标源码MAV:=(C*2+H+L)/4;SK:= EMA(MAV,13) - EMA(MAV,34);SD := EMA(SK,5);中轴:0;空方主力 : (-2*(SK-SD))*3.8,colorgreen;多方主力 : (2*(SK-SD))*3.8,colorred;指标用法:多方主力线从低位向上掉头且成交量有所放大,则为买入信号。

大智慧公式函数大全

大智慧公式函数大全

大智慧公式函数大全1. 概述大智慧是一个融合了数据查询、分析、交易等功能的股票软件,提供了丰富的公式函数供用户使用。

本文将介绍一些常用的大智慧公式函数,方便用户在股票分析和交易中使用。

2. 数据查询函数2.1 open函数用于查询股票某个交易日的开盘价,可以通过指定股票代码和日期来获取具体值。

示例代码如下:open(股票代码, 日期)其中,股票代码为股票的唯一标识,日期为要查询的交易日。

2.2 close函数用于查询股票某个交易日的收盘价,使用方法与open函数相似。

2.3 high函数用于查询股票某个交易日的最高价,使用方法与open函数相似。

2.4 low函数用于查询股票某个交易日的最低价,使用方法与open函数相似。

3. 数据分析函数3.1 趋势分析函数3.1.1 ma函数用于计算股票一段时间内的移动平均线指标值,可以通过指定股票代码、日期和计算周期来获取具体值。

示例代码如下:ma(股票代码, 日期, 周期)其中,周期为移动平均线的计算周期。

3.1.2 macd函数用于计算股票的移动平均线收敛/发散指标值,使用方法与ma函数类似,需要指定股票代码、日期和计算周期。

3.2 成交量分析函数3.2.1 volume函数用于查询股票某个交易日的成交量,使用方法与查询价格函数类似。

3.3 资金流向函数3.3.1 money_flow函数用于计算股票某个交易日的资金流向指标值,可以通过指定股票代码和日期来获取具体值。

示例代码如下:money_flow(股票代码, 日期)4. 交易函数4.1 buy函数用于指定股票代码、买入价格、买入数量和买入日期,以进行买入操作。

示例代码如下:buy(股票代码, 买入价格, 买入数量, 买入日期)4.2 sell函数用于指定股票代码、卖出价格、卖出数量和卖出日期,以进行卖出操作。

示例代码如下:sell(股票代码, 卖出价格, 卖出数量, 卖出日期)5. 其他函数5.1 count函数用于计算满足某个条件的交易日数量,例如计算某段时间内涨停的交易日数量。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

大智慧同花顺通用的批量选股公式代码1,30个交易日内,股价跌幅达到一半的股票:xg:(hhv(c,30)-c)/hhv(c,30)>0.5;2,今天的量是5天平均的 2倍以上xg:v>ma(v,5)*2;缩量vol/ma(vol,10)<0.3;3,两天内,累计下跌等于或超过20%选股.xg:(ref(c,2)-c)/c>0.2;4,股价是25天以来新低.xg:c<ref(llv(c,25),1);5,选股:EXPMA5日与10日金叉并且第二天的收盘价在EXPMA的5日线以上.cross(ref(ema(c,5),1),ref(ema(c,10),1)) and c>ema(c,5);6,请编买入公式:1. 将BIAS指标的参数设置为24日,将KD指标的参数设置为9;3;3。

2. BIAS指标要小于-6,这只是确认该股超跌的初选条件。

3. KD指标产生黄金交叉,K线上穿D线。

4. KD交叉同时,KD指标中的D值要小于16。

BIAS3 :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100,colorff00ff;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1),COLORWHITE;D:=SMA(K,3,1),COLORYELLOW;xg:BIAS3<-6 and cross(k,d) and d<16;7,要求是量大、换手率达到3左右,涨幅>7个点。

xg:v/capital*100>3 and (c/ref(c,1)>1.07;8,个股分时图上都有一条黄线,叫做均价线a/capital*100;9,"阴转阳"的公式(也就是昨天收阴线,今天收阳线)xg:ref(c,1)<ref(o,1) and c>o;10,股价回抽20日均线选股公式c>ma(c,20) and cross(c,ma(c,20));11,一根大阳线,至少有5个点以上,再连着出现二根振幅不大于5的十字星或是小K线xg:(ref(c,3)-ref(c,4))/ref(c,3)>0.05 and count((h-l)/l<0.05,2)=2;12,行情信息里的“涨幅”的原码(c-ref(c,1))/c*100;13,kdj的J从上向下穿越O轴发出信号RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1),COLORWHITE;D:=SMA(K,3,1),COLORYELLOW;J:=3*K-2*D,COLORFF00FF;xg:cross(0,j);14,股价4天中有两天在10日线上count(c>ma(c,10),4)=2;15,选出10天内出现了涨停的个股count(c/ref(c,1)>1.1,10)>0;又:今涨停:=C/REF(C,1)>1.09;选股:count(今涨停,n);16,一阳上穿10,20,30日线,量能是前一天3倍。

xg:cross(c,ma(c,10)) and cross(c,ma(c,20)) and cross(c,ma(c,30)) and v>ref(v,1)*3;17,共三根K线,第一根K线为阴线;第二根K线为阴线线,最高价低于第一根K线,最低价高于第一根K线;第三根K线阴阳不限,最高价低于第二根K 线,最低价高于第二根K线。

满足后发出信号~w1:=ref(c,2)<ref(o,2);w2:=ref(h,2)>ref(h,1) and ref(l,2)<ref(l,1);w3:=ref(h,1)>h and ref(l,1)<l;xg:w1 and w2 and w3;18,选出今日成交量大于昨日成交量一成的股票。

xg:v>ref(v,1)*1.1;19,连续5天,当日的5日均线减前一天的5日均线差值小于1.count((ma(c,5)-ref(ma(c,5),1))<1,5)=5;20,股价上穿5周均线:xg:cross(c,ma(c,5));注意:选股时用周线21,上穿30日均线的公式xg:cross(c,ma(c,30));22,两笔阴线中间夹着一根阳线或数根K线,其中两笔阴线最低点相等xg:ref(l,2)=l;23,量比大于1 同时换手大于2的公式xg:v/ref(v,1)>1 and AMOUNT/CAPITAL*100>2;24,换手:VOL*100/CAPITAL;周期换手:SUM(换手,10);25,流通盘小于4000万的选股公式xg:CAPITAL/100<4000;26,涨停开盘跌停收盘选股xg:h/ref(c,1)>1.1 and ref(c,1)/l>1.1;27,当天开盘价与收盘价相等的选股公式xg:c=o;28,5日均线向上流通盘小于5000万换手率大于3的选股公式lt:CAPITAL/100<5000;换手:=VOL*100/CAPITAL<3;w1:ma(c,5)>ref(ma(c,5),1);xg:lt and 换手 and w1;29,收下影线xg:c>l;30,o=l就没有下引线了,那就:xg:c>l and o>l;31,当日收盘下穿5日均价xg:cross(ma(c,5),c);32,最低价小于前一日的最低价但收盘后为阳线。

xg:l<ref(l,1) and c>o;33,30日内到本日收盘价下跌20%的公式xg:hhv(c,30)/c>1.2;34,选周线跳空缺口的个股。

xg:HIGH<REF(LOW,1) ORLOW>REF(HIGH,1);周期选周线35,30日均线走平或走高的个股xg:ma(c,30)>ref(ma(c,30),1);36,连续4天的收盘价格波动幅度在3%之内连续走平或向上count(abs(c-ref(c,1)/ref(c,1))<0.03 and c>ref(c,1),3)=3;37,下影线长于上影线(c-l)>(h-c);38,收盘价+收盘价的10%(c+c*0.1);39,今天高开的公式c>o;40,今天的量大于等于昨天量的2倍,股价上涨xg:v>ref(v,1)*2 and c>ref(c,1);41,今天的量小于昨天量的2倍以上,股价上涨xg:v<ref(v,1)*2 and c>ref(c,1);42,大部分股票跌到43日均线时就会反弹,如果在43日均线附近买入,短线成功率占90%以上,即时选出还差几分钱就跌到43日均线的股票。

xg:abs(c-ma(c,43))/ma(c,43)<0.01;43,{选出每天换手5%-15%之间的股票}Var1:=100*VOL/CAPITAL;w1:=var1>5;w2:=var1<15;xg:w1 and w2;44,换手率10天80%以上的选股公式sum(VOL/CAPITAL*100,10)>80;45,60个交易日内,涨幅大于9.9%(涨停)的天数count(c/ref(c,1)>1.099,60);46,昨天跌幅大于3%,今天开盘高开2%以上的选股公式。

xg:ref(c,1)/ref(c,2)<0.97 and o/ref(c,1)>1.02;47,选出周换手率小于10%的股票sum(VOL/CAPITAL*100,5)<10;48,成交量创20日新低,并且股价也创20日新低xg:v=llv(v,20) and c=llv(c,20);49,5日不涨,绿线收盘选票指标count(c<o,5)=5;50,"今日MACD等于昨天的MACD ,且macd>0" 的指标DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);xg:macd=ref(macd,1) and macd>051,连续2天收盘价跌破30日均线,就显示"卖出"信号a1:count(c<ma(c,30),2)=2;drawtext(a1,c,'卖出'),colorgreen;52,股票在这条均线上在8天以上,上下幅度不大,a1:abs((c-ma(c,120))/ma(c,120))<0.1;xg:count(a1,8)=8;53,连续三天高开高走的选股公式count(o>ref(c,1) and c>o,3)=3;54,n天内曾经有m个涨停count(c/ref(c,1)>1.09,n)>m;55,股价比昨天的高,量比昨天小,放量。

xg:c>ref(c,1) and v<ref(v,1) and ref(v,1)>ref(v,2)*2;56,连续3天每天的最低价都比前一天高count(l>ref(c,1),3)=3;57,周量缩小50%或40%或n%a1:vol/capital*100;xg:a1/ref(a1,1)<n/100;58,股价超过五日均价的15%以上,并给出卖出信号卖出:c/ma(c,5)>1.15;59,连收两个十字星的选股公式count(abs((c-o)/o<0.01),2)=2;60,n横盘天数,n1横盘的上下幅度REF(((HHV(H,N)-LLV(L,N))/LLV(L,N)),1)<=(n1/100)and ref(v,1)<ref(ma(v,5),1) and cross(v,ma(v,5)) and cross(v,ma(v,10));61,收盘价连续8天都站在5日均线的股票。

count(c>ma(c,5),8)=8;62,振幅大于5%,收盘价大于3.5小于15元,三日均线大于昨日的三日均线,去掉ST股。

a1:=h/l>1.05;a2:=c>3.5 and c<15;a3:=ma(c,3)>ref(ma(c,3),1);xg:a1 and a2 and a3;63,收盘价下有60天前的远期获利盘n%。

{60天前的远期获利盘:=ppart(60)*100;}aa:WINNER(ref(c,60 ))*100;64,连续三日收阳后日收盘高于前日且每日收于当日最高价附近每日涨幅不大于4%选股:count(c>o and c>ref(c,1) and abs((h-c)/c)<0.01 andc/ref(c,1)<1.04,3)=3;65,昨日收阴,今日收阳,的K线组合。

相关文档
最新文档