P:=8;NP:=1.02;N:=9;
Var1:=EMA(WINNER((LOW+HIGH)/2), 10)*100;
Var2:=EMA(WINNER(CLOSE), 21)*100;
Var3:=EMA(WINNER(CLOSE), 34)*100;
STICKLINE(Var1>5 AND Var1<80, 110, 105, 10, 0), COLORGREEN;
STICKLINE(Var1<5 AND Var1>2, 110, 105, 10, 0), COLORYELLOW;
STICKLINE(Var1<2, 110, 105, 15, 0), COLORRED;
STICKLINE(Var1<1, 110, 105, 15, 0), COLORWHITE;
STICKLINE(Var1>80, 110, 105, 15, 0), COLORBLUE;
Var4:=(CLOSE-LLV(LOW, 36))/(HHV(HIGH, 36)-LLV(LOW, 36))*100;
X1:SMA(Var4, N, 1),LINETHICK2, COLORGREEN;
X2:SMA(X1, 3, 1),LINETHICK1, COLOR889900;
X3:5*X1-4*X2,LINETHICK2, COLORMAGENTA;
STICKLINE(X3>X1, X2, 0, 1, 0), COLORDDDDDD;
STICKLINE(X3<X1, X2, 0, 1, 0), COLOR889900;
80, POINTDOT, COLORGREEN;
20, POINTDOT, COLORGREEN;
Var5:=CLOSE*50/100;
Var6:=MA(Var5, 30)*0.830;
Var7:=MA(Var5/Var6, 3);
IF(Var7<NP, 0, (-10)),LINETHICK2, COLOR0099FF;