input:p1(5),p2(4);
Var1:=LLV(LOW,P1);
Var2:=HHV(HIGH,P1);
短: EMA((CLOSE-Var1)/(Var2-Var1)*100,P2),COLORFF00FF;
线: EMA(0.667*REF(短,1)+0.333*短,2),COLORFFCC66;
IF(短>REF(线,1),线,0),CIRCLEDOT,COLORRED,LINETHICK2;
IF(短<REF(线,1),线,0),CIRCLEDOT,COLORGREEN,LINETHICK2;