N:=7;
M:=5;{九毛八公式指标网www.9m8.cn}
VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
B:=SMA(VAR1,N,1);
VAR2:=SMA(B,M,1);
STICKLINE(B VAR2,B,VAR2,2,1),COLORRED;
STICKLINE(B VAR2,B,VAR2,2,0),COLORGREEN;
MAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
短高: 90,COLORGREEN;
高抛: 80,DOTLINE,COLORYELLOW;
MAR2:=LLV(LOW,34);
MAR3:=HHV(HIGH,34);
SK:=EMA((MAR1-MAR2)/(MAR3-MAR2)*100,13);
SD:=EMA(SK,3);
STICKLINE(SK SD,SK,SD,2,0),COLORCYAN;
STICKLINE(SK SD,SK,SD,2,1),COLORMAGENTA;
低吸: 20,DOTLINE,COLORYELLOW;
短底: 10,COLORRED;
中值:B,NODRAW;
短值:SK,NODRAW,COLORMAGENTA;
STICKLINE(SK =90 OR B =90,96,101,4,1),COLORYELLOW;
STICKLINE(B =90 AND SK =90,96,101,4,0),COLORYELLOW;
STICKLINE(SK =10 OR B =10,-1,4,4,1),COLORBLUE;
STICKLINE(B =10 AND SK =10,-1,4,4,0),COLORBLUE;
STICKLINE((SK =10 OR B =10) AND B REF(B,1) AND SK REF(SK,1),-1,4,4,1),COLORMAGENTA;
STICKLINE(B =10 AND SK =10 AND B REF(B,1) AND SK REF(SK,1),-1,4,4,0),COLORMAGENTA;
STICKLINE((SK =90 OR B =90) AND B REF(B,1) AND SK REF(SK,1),96,101,4,1),COLORWHITE;
STICKLINE(B =90 AND SK =90 AND B REF(B,1) AND SK REF(SK,1),96,101,4,0),COLORWHITE;