以下是通达信抓神器抓住涨停板赚钱指标公式源码和截图
通达信抓涨停神器抓住涨停板赚钱指标公式源码:
T:=150;
TT:=3;
均价线:=AMOUNT/V/100;
C2:=REF(C,1);
涨停:=IF(REF(C,1)*1.1-C 0.2,1,0);
STICKLINE(涨停,OPEN,CLOSE,4,0),COLORRED;
STICKLINE(涨停,OPEN,CLOSE,3,0),COLORYELLOW;
STICKLINE(涨停,H,L,0,0),COLORYELLOW;
B1:='┄┄┄┄┄';
DRAWTEXT(均价线AND涨停,均价线,B1),COLORGREEN;
B3:='┄┄┄┄┄';
DRAWTEXT((O+C)/2AND涨停,(O+C)/2,B3),COLORMAGENTA;
B2:='┄┄┄┄┄';
DRAWTEXT(涨停,L,B2),COLORGRAY;
MA13:=MA(C,13),COLORGRAY;
MA21:=MA(C,21),COLORWHITE;
支撑线:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
LC:=REF(CLOSE,1);
操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;
线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;
震仓线:=45;
震仓线2:=50;
逃命线:=80;
线:=20;
绝底线:=5;
PP2:=操作线 震仓线2ANDREF(操作线,1) 震仓线2;
PP:=操作线 震仓线ANDREF(操作线,1)
PP3:=操作线 抄底线ANDREF(操作线,1)
HH:=COUNT(涨停,13)
STICKLINE(PP2ANDHH,OPEN,CLOSE,0.8,0),COLORBLUE;
STICKLINE(PPANDHH,OPEN,CLOSE,0.8,0),COLORBLUE;
STICKLINE(PP3ANDHH,OPEN,CLOSE,0.8,0),COLORBLUE;
A:=SMA(L,4,3);
STICKLINE(AANDREF(PP,1)ANDHH,A*0.9999,A*0.9979,5,0);
DRAWICON(AANDREF(PP,1)ANDHH,L*0.98,7);
STICKLINE(AANDREF(PP3,1)ANDHH,A*0.9999,A*0.9979,5,0);
DRAWICON(AANDREF(PP3,1)ANDHH,L*0.98,7);
高1:=REF(HHV(H,T),TT);
低1:=REF(LLV(L,T),TT);
H1:=高1-(高1-低1)*0.191;
H2:=高1-(高1-低1)*0.382;
H3:=高1-(高1-低1)*0.5;
H4:=高1-(高1-低1)*0.618;
H5:=高1-(高1-低1)*0.809;
顶:REFDATE(高1,DATE),COLORFFFF00;
一:REFDATE(H1,DATE),POINTDOT,COLORYELLOW;
二:REFDATE(H2,DATE),POINTDOT,COLORMAGENTA;
三:REFDATE(H3,DATE),COLOR00FFFF;
四:REFDATE(H4,DATE),POINTDOT,COLORMAGENTA;
五:REFDATE(H5,DATE),POINTDOT,COLORYELLOW;
低:REFDATE(低1,DATE),COLOR00FF00;
TT3:=(CURRBARSCOUNT=5);
TT4:=(CURRBARSCOUNT=5+3);
DRAWNUMBER(TT3AND顶,顶,顶),COLOR999900;
DRAWTEXT(TT4AND顶,顶,'高:'),COLOR208FFF;
DRAWNUMBER(TT3AND一,一,一),COLOR999999;
DRAWTEXT(TT4AND一,一,'191:'),COLOR208FFF;
DRAWNUMBER(TT3AND二,二,二),COLOR999999;
DRAWTEXT(TT4AND二,二,'382:'),COLOR208FFF;
DRAWNUMBER(TT3AND三,三,三),COLOR999999;
DRAWTEXT(TT4AND三,三,'1/2:'),COLOR208FFF;
DRAWNUMBER(TT3AND四,四,四),COLOR999999;
DRAWTEXT(TT4AND四,四,'618:'),COLOR208FFF;
DRAWNUMBER(TT3AND五,五,五),COLOR999999;
DRAWTEXT(TT4AND五,五,'809:'),COLOR208FFF;
DRAWNUMBER(TT3AND低,低*1.01,低),COLOR999900;
DRAWTEXT(TT4AND低,低*1.009,'低:'),COLOR208FFF;
MA05:MA(C,5)LINETHICK3,COLOR00CCFF;
MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30);
五日乖离率:=(C-MA05)/MA05*100;
BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416;
速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1);
加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;
IF(BB05 30ANDMA05 REF(MA05,1),MA05,DRAWNULL),LINETHICK3,COLORRED;
BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;
IF(BB05 0ANDMA05 REF(MA05,1),MA05,DRAWNULL),LINETHICK3,COLORGREEN;
三拾日乖离率:=(C-MA30)/MA30*100,NODRAW;
VAR1:=(MA20-MA30) REF((MA20-MA30),1)ANDMA20 REF(MA20,1)ANDMA30 REF(MA30,1);
VAR2:=(MA30-MA20) REF((MA30-MA20),1)ANDMA20 REF(MA20,1)ANDMA30 REF(MA30,1);
BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416;
强势狙击:=FILTER(BB30 30ANDBB10 45ANDCROSS(BB05,60),10);
加仓:=FILTER(COUNT(CROSS(BB05,30),5) =1ANDMA05 REF(MA05,1)AND三拾日乖离率 REF(三拾日乖离率,1)ANDMA10 REF(MA10,1)
AND加速度5 REF(加速度5,1)AND速度5 REF(速度5,1),10);
清仓:=FILTER(COUNT(CROSS(30,BB05),5) =1AND(C MA30ORO MA30)ANDMA05 REF(MA05,1)AND三拾日乖离率 REF(三拾日乖离率,1)ANDMA10 REF(MA10,1),10);
DRAWTEXT(加仓,LOW*0.98,'←加仓'),COLORRED;
JC:=CROSS(0,五日乖离率)AND三拾日乖离率 REF(三拾日乖离率,1)ANDMA10 REF(MA10,1);
减仓:=FILTER(JC,10);
MR:=COUNT(CROSS(五日乖离率,0),3) =1AND三拾日乖离率 REF(三拾日乖离率,1)ANDMA05 REF(MA05,1)AND(C/REF(C,1)-1)*100 5ANDREF(C,1) MA30;
买入:=FILTER(MR,10);
DRAWTEXT(减仓,HIGH*1.02,'←风险'),COLORCYAN;
DRAWTEXT(买入,LOW*0.98,'←买入'),COLORYELLOW;
DRAWTEXT(清仓,HIGH*1.02,'←清仓'),COLORGREEN;
DRAWTEXT(强势狙击,LOW*0.98,'←强势狙击'),COLORYELLOW;
VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW));
VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);
MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50;
压力:MA(REF(HHV(C,30),1),2),COLOR9DFFFF;
支撑:MA(REF(LLV(C,30),1),2),COLORABFF46;
ma3:MA(C,3),COLOR00FF00;
MA5:MA(C,5),COLORFFFFFF;
ZX:=(MA3+MA5)/2;
MA20:MA(C,20),COLORFF00FF;
MA30:MA(C,30),COLORYELLOW;
QSXS:=MA5 =MA30ANDMA30 REF(MA30,1);
GD:=ZX =REF(ZX,1)ANDREF(ZX,1) REF(ZX,2);
YB:=C REF((O-C)/2+C,2);
买:crOSS(C,ZX)AND(GDORYB)ANDQSXS,COLOR00FF00,POINTDOT,LINETHICK0;
优:买ANDMA5 REF(MA5,1),COLORYELLOW,POINTDOT,linethick0;
{以下设置主图显示方式}
stICKLINE(买,h,l,0,1),COLOR00FF00,linethick2;
STICKLINE(买,o,c,4,1),COLOR00FF00,linethick2;
STICKLINE(优,h,l,0,1),COLORYELLOW,linethick2;
STICKLINE(优,o,c,4,1),COLORYELLOW,linethick2;
DRAWTEXT(买,L*0.99,'买'),COLOR00FF00;
DRAWICON(优,L,1);
{
公式:
MA3:=MA(C,3),COLOR00FF00;
MA5:=MA(C,5),COLORFFFFFF;
ZX:=(MA3+MA5)/2;
MA20:=MA(C,20),COLORFF00FF;
MA30:=MA(C,30),COLORYELLOW;
QSXS:=MA5 =MA30ANDMA30 REF(MA30,1);
GD:=ZX =REF(ZX,1)ANDREF(ZX,1) REF(ZX,2);
YB:=C REF((O-C)/2+C,2);
买:=CROSS(C,ZX)AND(GDORYB)ANDQSXS;
优:=买ANDMA5 REF(MA5,1);
买OR优;
}
通达信抓涨停神器抓住涨停板赚钱指标公式截图