源码
N:=7;
M:=5;
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,0.8,1),colorred;
STICKLINE(B<VAR2,B,VAR2,0.8,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,0.8,0),colorcyan;
STICKLINE(SK>SD,SK,SD,0.8,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),COLOR7F00FF;
STICKLINE(B<=10 AND SK<=10 AND B>REF(B,1) AND SK>REF(SK,1),-1,4,4,0),COLOR7F00FF;
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;