一、通达信步入抄底区指标公式
N:=55;
C2:=REF(CLOSE,1);
非ST涨停:=IF((CLOSE-C2)*100/C2>=10-0.01*100/C2,1,0);
NUMBER:=COUNT(非ST涨停,BARSSINCE(非ST涨停)+1);
TDXSTEP195:DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.56,0.02,0,NUMBER),COLORWHITE;
TDXSTEP196:DRAWTEXT_FIX(CURRBARSCOUNT=1,0.45,0.02,0,25),COLORCYAN;
M5:EMA(CLOSE,5);
M21:MA(CLOSE,21),COLORCYAN;
DD:=EVERY(CLOSE TDXSTEP197:DRAWICON(DD,M21,37); HIGHN:=36; AAB:=REF(HIGH,HIGHN)=HHV(HIGH,2*HIGHN+1); QY:=BACKSET(AAB,HIGHN+1); CC2:=FILTER(QY,HIGHN) AND HIGH=HHV(HIGH,HIGHN+1); DDD:=BARSLAST(CC2); GDTS:=IF(CC2,CURRBARSCOUNT,0); DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS); GDCS1:=CONST(DINGBUTS); DRAWLINE(CURRBARSCOUNT=GDCS1,HIGH,ISLASTBAR,REF(HIGH,GDCS1-1),1),DOTLINE,COLORCYAN; DRAWTEXT(CURRBARSCOUNT=GDCS1,HIGH*1.01,18),COLORCYAN; HJ_1:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100; HJ_2:=SMA(SMA(HJ_1,3,1),3,1)/28.57; HJ_3:=EMA(HJ_2,5); HJ_4:=3*HJ_2-2*HJ_3; HJ_5:=CROSS(HJ_4,HJ_2) AND HJ_2<2.1 AND CLOSE>OPEN; STICKLINE(HJ_5,82,0,0.005,0),COLORRED; DRAWICON(HJ_5>0,85,13),COLORYELLOW; HJ_6:=CROSS(HJ_4,HJ_2) AND HJ_2<2.1 AND CLOSE>OPEN; HJ_7:=(2*CLOSE+HIGH+LOW)/4; HJ_8:=LLV(LOW,13); HJ_9:=HHV(HIGH,13); HJ_10:=EMA((HJ_7-HJ_8)/(HJ_9-HJ_8)*100,13); HJ_11:=EMA(0.667*REF(HJ_10,1)+0.333*HJ_10,2); HJ_12:=HJ_10; STICKLINE(HJ_10>HJ_11,HJ_10,HJ_11,3,0),COLOR0055AA; STICKLINE(HJ_10>HJ_11,HJ_10,HJ_11,2.8,0),COLOR0066BB; STICKLINE(HJ_10>HJ_11,HJ_10,HJ_11,2.5,0),COLOR0077CC; STICKLINE(HJ_10>HJ_11,HJ_10,HJ_11,2.2,0),COLOR0088DD; STICKLINE(HJ_10>HJ_11,HJ_10,HJ_11,1.7,0),COLOR0099EE; STICKLINE(HJ_10>HJ_11,HJ_10,HJ_11,1.2,0),COLOR00AAFF; STICKLINE(HJ_10>HJ_11,HJ_10,HJ_11,0.7,0),COLOR00CCFF; STICKLINE(HJ_10>HJ_11,HJ_10,HJ_11,0.2,0),COLORYELLOW; STICKLINE(HJ_10<=HJ_11,HJ_10,HJ_11,3,0),COLOR990099; STICKLINE(HJ_10<=HJ_11,HJ_10,HJ_11,2.8,0),COLOR990088; STICKLINE(HJ_10<=HJ_11,HJ_10,HJ_11,2.5,0),COLOR990077; STICKLINE(HJ_10<=HJ_11,HJ_10,HJ_11,2.2,0),COLOR990066; STICKLINE(HJ_10<=HJ_11,HJ_10,HJ_11,1.7,0),COLOR990055; STICKLINE(HJ_10<=HJ_11,HJ_10,HJ_11,1.2,0),COLORBB00BB; STICKLINE(HJ_10<=HJ_11,HJ_10,HJ_11,0.7,0),COLORDD00DD; STICKLINE(HJ_10<=HJ_11,HJ_10,HJ_11,0.2,0),COLORMAGENTA; DRAWTEXT(HJ_6,78,5),COLORCYAN; HJ_13:=10; 底部区域:20,COLORLIRED; 中轨:50,COLORYELLOW; 高位:80,COLORLIBLUE; 启动:EMA(0.382*REF(HJ_10,2)+0.618*HJ_10,6),COLORRED; IF(启动>REF(启动,1),启动,DRAWNULL),COLORRED,LINETHICK4;二、通达信野马狂奔指标公式