就是在KD上面画一直线,加上转折信号的。
%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);
DRAWICON(CROSS(%D,%K) AND %D>74,100,2);
DRAWICON(CROSS(%K,%D) AND %D<26,0,1);
STICKLINE(DIF<DN,-5,-4,5,0),LINETHICK3,colorred;
STICKLINE(DIF>UP,104,103,5,0),LINETHICK3,colorred;
|
