以下是通达信先锋全套指标源码
通达信涨停先锋全套指标源码:
涨停先锋Ⅲ(操盘线)
MA5:MA(CLOSE,5),LINETHICK1,COLORFFFFFF;MA10:MA(CLOSE,10),LINETHICK1,COLOR00FFFF;
MA30:MA(CLOSE,30),LINETHICK1,COLORFF00FF;MA60:MA(CLOSE,60),LINETHICK1,COLOR0000FF;
MA120:MA(CLOSE,120),LINETHICK1,COLORFFFF00;
DRAWTEXT(CROSS(EMA(CLOSE,2),EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),(LOW
*
0.99),'Ψ'),LINETHICK3,COLORF00FF0;
DRAWTEXT(CROSS(EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),EMA(CLOSE,2)),(HIGH
*1.01),'◎'),LINETHICK3,COLORFFFFFF;
STICKLINE((EMA(CLOSE,2) =
EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),LOW,HIGH,0.1,0),COLOR0000FF;
STICKLINE((EMA(CLOSE,2)
=
EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),CLOSE,OPEN,3,0),COLOR0000AA;
STICKLINE((EMA(CLOSE,2)
=
EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),CLOSE,OPEN,2,0),COLOR0000CC;
STICKLINE((EMA(CLOSE,2)
EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),CLOSE,OPEN,2,0),COLORCCCC00;
STICKLINE((EMA(CLOSE,2)
EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),CLOSE,OPEN,3,0),COLORAAAA00;
STICKLINE((EMA(CLOSE,2)
EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),LOW,HIGH,0.1,0),COLORFFFF00;
STICKLINE((CROSS(EMA(CLOSE,2),EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42))
OR
CROSS(EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),EMA(CLOSE,2))),LOW,HIGH,0.1,0),COLOR00FFFF;
STICKLINE((CROSS(EMA(CLOSE,2),EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42))
OR
CROSS(EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),EMA(CLOSE,2))),OPEN,CLOSE,3,0),COLOR00AAAA;
STICKLINE((CROSS(EMA(CLOSE,2),EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42))
OR
CROSS(EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),EMA(CLOSE,2))),OPEN,CLOSE,2,0),COLOR00CCCC;
涨停先锋Ⅲ(大势领先)
DSLX:((CLOSE/INDEXC)*10000),COLORFFFFFF,;
DSLXMA1:MA(DSLX,5),COLOR0000FF;
DSLXMA2:MA(DSLX,10),COLOR00FF00;
DSLXMA3:=MA(DSLX,0);DSLXMA4:=MA(DSLX,0);
涨停先锋Ⅲ(指标)
A4:=MA(CLOSE,20);A5:=(CLOSE MA(CLOSE,5));A6:=(MA(CLOSE,5) MA(CLOSE,10));
A7:=(CLOSE MA(CLOSE,10));A8:=(MA(CLOSE,5) MA(CLOSE,20));A9:=(CLOSE MA
(CLOSE,20));A10:=REF(A4,1);A11:=(A4
A10);AVX:(((((IF(A5,10,(0-10))+IF
(A6,10,(0-10)))+IF(A7,10,(0-
10)))+IF(A8,10,(0-10)))+IF(A9,10,
(0-10)))+IF(A11,10,(0-
10))),COLOR0000FF;AVX零轴:0,COLOR00FFFF;
涨停先锋Ⅲ(能量信号)
PW:=((VOL*(CLOSE-OPEN))/(CLOSE+OPEN));PW1:=EMA(((VOL*(CLOSE-OPEN))/(CLOSE+OPEN)),38);
ME:EMA(PW1,8),COLORSTICK;ME1:MA(ME,3),COLORYELLOW;ME2:MA(ME,10),COLORMAGENTA;
量:=VOL,VOLSTICK;
五日量:MA(量,5),COLORWHITE;
{STICKLINE(V =REF(V,1)*2ANDC =REF(C,1),量,0,1,0),COLORMAGENTA;
DRAWTEXT(V =REF(V,1)*2ANDC =REF(C,1),量*0.9,'∠');
DRAWTEXT(CURRBARSCOUNT=160,HHV(V,60)*0.9,'20线上行+日价K线+日K线量起爆更好+估换手小于10%时更稳定');}
TT:=BARSCOUNT(C);{取得有效收盘价}
均价黄:=SUM(C*V,TT)/SUM(V,TT);{的取值}
量两步:=MA(V,5) REF(MA(V,5),1)ANDREF(MA(V,5),1) REF(MA(V,5),2);
价两步:=C =REF(C,1)ANDREF(C,1) REF(C,2);
价上岗量破5:=C 均价黄ANDV MA(V,5);
量起爆:=V =REF(V,1)*2;
价创新高:=C =HHV(C,0);
量创新高:=V =HHV(V,0);
对昨日涨幅:=C/DYNAINFO(3) =1.02;{涨幅控制2个点以内}
每日一点:=量两步AND价两步AND价上岗量破5AND量起爆AND价创新高AND量创新高AND对昨日涨幅;
DRAWTEXT(每日一点,HHV(量,0)*0.9,'起爆'),COLORBLUE;
DRAWICON(每日一点,HHV(量,0),1),COLORRED;
STICKLINE(每日一点,量,0,1,0),COLORMAGENTA;
DRAWTEXT(每日一点,量*0.9,'∠'),COLORRED;
DRAWTEXT(每日一点,HHV(V,0)*0.9,'20线上行+日价K线突破+日K线量起爆更好+估换手小于10%时更稳定'),COLORGREEN;
{计算收益、已爆分钟}
VV:=BARSSINCE(每日一点)+1;
首次起爆价:REF(C,VV-1),NODRAW;
今天收益:(DYNAINFO(7)-首次起爆价)/首次起爆价*100,NODRAW;
{DRAWNUMBER(VV =1,V*0.8,今天收益);待续。。。。低调}
流通盘:CAPITAL*100/100000000,NODRAW;
起爆时间:REF(TIME/10000,VV),NODRAW;
已爆分钟:VV-1,NODRAW;
{画出底线和红球}
首次起爆量:=REF(VOL,VV-1);
DRAWICON(已爆分钟 =2,首次起爆量/2,13);{出现红球,至少已经确认2分钟了};
ZDF:=(C-REF(C,1))/REF(C,1)*100;
AA:=ZDF
涨停板:=SUM(AA,16);
涨停距今日:=BArslAst(AA);
双涨停:涨停板
通达信涨停先锋全套指标截图