通达信组合顶底波段指标副图源码


底:15,POINTDOT,COLORWHITE;
DRAWTEXT(ISLASTBAR,顶,'顶'),COLORGREEN;
DRAWTEXT(ISLASTBAR,中,'中'),COLORWHITE;
A1:=HHV(A0,21);
A3:=A1-A2;
趋势1:=MA(趋势,3);
IF(趋势>=趋势1,趋势,DRAWNULL),COLORRED,LINETHICK2;
C1:=LLV(L,21);
C3:=REF(C,1);
C5:=SMA(MAX(C-C3,0),5,1)/SMA(ABS(C-C3),5,1)*100;
IF(CROSS(C6,90) AND C4< 40,50,10),COLORYELLOW,LINETHICK2;
IF(CROSS(85,C5),70,90),COLOR99FF33,LINETHICK2;
B1:=(L+H+2*C)/4;
B3:=SMA(B1-B2,6,1)/SMA(ABS(B1-B2),6,1)*100;
STICKLINE(B4>=100,103,101,3,0),COLORYELLOW;