信号提前MACD与变异MACD这两个指标十几年前就存在的。今天凑个热闹。
本不是自己原创的东西网上途径收集而来,既然如此,分享再加密就没道理了是不是呀!!
新人刚到请多关照!!!如果你能继续改编二合一更好,到时别忘了带俺也分享分享啊!!!
WY1001:=(2*CLOSE+HIGH+LOW)/4;
WY1002:=EMA(WY1001,4);
WY1003:=EMA(WY1002,4);
WY1004:=EMA(WY1003,4);
XYS0:=(WY1004-REF(WY1004,1))/REF(WY1004,1)*100;
STICKLINE(XYS0 =0,XYS0,0,2,0),COLORRED;
STICKLINE(XYS0 0,XYS0,0,2,0),COLORGREEN;
HD:=FILTER(BACKSET(XYS0 0 AND XYS0 REF(XYS0,1) AND REF(XYS0,1) REF(XYS0,2),2),1);
DRAWLINE(HD,XYS0,REF(HD,1),REF(XYS0,1),1);
LD:=FILTER(BACKSET(XYS0 0 AND XYS0 REF(XYS0,1) AND REF(XYS0,1) REF(XYS0,2),2),1);
DRAWLINE(LD,XYS0,REF(LD,1),REF(XYS0,1),1);
PJGJ:=AMOUNT/AMO/100;
SSRYDJX:=MA(PJGJ,13);
SSRCJL:=EMA(AMO,13);
SSRCJE:=EMA(AMOUNT,13);
SSRCBJX:=SSRCJE/SSRCJL/100;
CYS13:=(CLOSE-SSRCBJX)/SSRCBJX*100;
XYSHSL:=EMA(AMO/CAPITAL*100,13);
ZZX:0,COLORWHITE;
XYS1:MA(XYS0,2);
XYS2:MA(XYS0,1);
DRAWICON(CROSS(XYS2,XYS1),XYS0,11);
DRAWICON(CROSS(XYS1,XYS2),XYS0,15);
MACD提前交叉
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9),COLORGREEN;
MACD:(DIF-DEA)*2,COLORSTICK;
DIF1:EMA(CLOSE,8)-EMA(CLOSE,18),COLORYELLOW;
DEA1:EMA(DIF1,8),COLORWHITE;
DRAWICON(CROSS(DIF1,DEA1),DIF1,1);
DRAWICON(CROSS(DEA1,DIF1),DEA1,2);