P:=15;N:=-6;
Var1:=IF(YEAR>=2003 AND MONTH>0, 0, 1);
Var2:=LLV(LOW, 18);
Var3:=HHV(HIGH, 18);
Var4:=EMA((CLOSE-Var2)/(Var3-Var2)*100, 13);
Var5:=EMA(0.618*REF(Var4, 1)+0.382*Var4, 3)*Var1;
STICKLINE(Var5-REF(Var5, 1)>0, Var5, Var5, 1, 0),LINETHICK4, COLORYELLOW;
STICKLINE(Var5-REF(Var5, 1)<0, Var5, Var5, 1, 0),LINETHICK4, COLORBLUE;
DRAWTEXT(Var5-REF(Var5, 1)<0 AND REF(Var5, 1)>REF(Var5, 2) AND Var5>40, Var5, '↓
IF(CROSS(80, Var5), 80, 100), COLORWHITE;
Var6:=(CLOSE-MA(CLOSE, 6))/MA(CLOSE, 6)*100;
Var7:=(CLOSE-MA(CLOSE, 12))/MA(CLOSE, 12)*100;
Var8:=(CLOSE-MA(CLOSE, 24))/MA(CLOSE, 24)*100;
Var9:=(Var6+2*Var7+3*Var8)/6;
Var10:=MA(Var9, 3);
警戒652:IF(Var10
50, POINTDOT, COLORCYAN;
80, POINTDOT, COLORWHITE;