P1:=10;
P2:=20;
R:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);
A:=SMA(R,3,1);
B:=SMA(A,3,1);
X:=(((B / 2) + 40) * 1.1);
D:=SMA(X,3,1);
VAR0:=REF(CLOSE,1);
VAR1:=(CLOSE-LLV(LOW,P1))/(HHV(HIGH,P1)-LLV(LOW,P1))*100;
VAR2:=EMA(VAR1,P2);
VAR3:=EMA(VAR2,P1);
VAR4:3*VAR2-2*VAR3,coloryellow;
VAR5:MA(VAR4,5),colorred;
VAR6: EMA(VAR1,1),colorwhite;
VAR7:=((SMA(MAX((CLOSE - VAR0),0),5,1) / SMA(ABS((CLOSE - VAR0)),5,1)) * 100);
强势位: IF(VAR2>=3,50,0),colorblue;
浪顶:IF(CROSS(D,VAR7),40,20),colorgreen;
警惕位:92,colorred;
STICKLINE(VAR4>20,18,20,8,),coloryellow;
DRAWICON(CROSS(VAR4,VAR5),VAR4,1);