通达信三代波段副图公式
RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;
GS2:SMA(RSV1,5,1),COLORFF00FF,LINETHICK1;
GS3:SMA(GS2,10,1),COLORGREEN,LINETHICK1;
STICKLINE(GS2 GS3,GS2,GS3,1,0),COLORFF00FF;
STICKLINE(GS2 =GS3,GS2,GS3,1,0),COLORGREEN;
VAR3A:=PEAKBARS(3,15,1)
VAR5A:=IF(VAR3A=1,2,0);
顶:= IF(VAR5A=2,2,0);
顶A:IF(顶 REF(顶,1),20,0),COLORGREEN,LINETHICK1;
DRAWTEXT(顶A=20,20,'逃顶'),COLOR00FF00;
VAR9A:=TROUGHBARS(3,15,1)
VAR10A:=PEAKBARS(3,15,1)
VAR11A:=IF(VAR9A=1,50,0);
VAR12A:=IF(VAR10A=1,50,0);
底部1:= IF(VAR11A=50,50,0);
头部:= IF(VAR12A=50,100,0);
AB:IF( 底部1 REF(底部1,1),10,0),COLORRED,LINETHICK2;
AA:IF(头部 REF(头部,1),10,0),COLORGREEN,LINETHICK2;
DRAWTEXT(AB=10,10,'买' ),COLORRED,LINETHICK3;
DRAWTEXT(AA=10,10,'卖'),COLORFFFFFF,LINETHICK3;
RSV:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
GS0:SMA(RSV,3,1),COLORRED,LINETHICK1;
GS1:SMA(GS0,3,1),COLORYELLOW,LINETHICK1;
STICKLINE(GS0 =GS1,GS0,GS1,1,0),COLORYELLOW;
超卖:18,COLORWHITE;
超买:85,COLORBLUE; STICKLINE(GS0 GS1,GS0,GS1,1,0),COLORRED;