{参数:
N:2/99/14
M1:2/50/3
M2:2/50/3
Y1:0/50/25
Y2:50/100/75
}
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
%K:MA(RSV,M1);
%D:MA(%K,M2),COLORAA00DD;
Y1,color007a00;
Y2,color007a00;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
VAR1:=HHV(DEA,53);
VAR2:=LLV(DEA,55);
VAR3:=DEA-(DIF-DEA);
UP:=IF(DIF>VAR1 AND DEA=VAR1,MAX(LLV(VAR1,10),VAR3),VAR1);
DN:=IF(DIF<VAR2 AND DEA=VAR2,MIN(HHV(VAR2,10),VAR3),VAR2);
IF(DIF<DN,-5,DRAWNULL),COLOR00BB00,LINETHICK3;
IF(DIF>UP,104,DRAWNULL),COLOR00BB00,LINETHICK3;