自用多周期共振MACD副图源码通达信指标公式源码

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

MACD本身属于中期指标适合与波段操作用不同的周期同共振寻找买卖点,适合波段操作,指标的买卖结合周期共振是最佳选择

DIF1:=EMA(CLOSE,12) - EMA(CLOSE,26);

DEA1:=EMA(DIF1,9);

MACD1:(DIF1-DEA1)*2,COLORSTICK;

DIF11:=EMA(CLOSE,16) - EMA(CLOSE,34.5);

DEA11:=EMA(DIF11,12);

MACD11:(DIF11-DEA11)*2,COLORSTICK;

DRAWBAND(DIF1,RGB(155,50,50),DEA1,RGB(0,100,50));

DIF:=EMA(CLOSE,6) - EMA(CLOSE,13);

DEA:=EMA(DIF,4.5);

MACD:(DIF-DEA)*2,COLORSTICK;

STICKLINE(MACD11>0,0,MACD11,1.5,0),COLOR8800FF;

STICKLINE(MACD11<0,0,MACD11,1.5,0),COLORFFFF00;

STICKLINE(MACD1>0,0,MACD1,1,0),COLORRED;

STICKLINE(MACD1<0,0,MACD1,1,0),COLORBLUE;

STICKLINE(MACD>0,0,MACD,0.5,0),COLORYELLOW;

STICKLINE(MACD<0,0,MACD,0.5,0),COLOR00DD00;

DIFFFF:DIF11,COLOR8800FF,LINETHICK0;

DEAAAA:DEA11,COLORFFAA00,LINETHICK0;

DIFFF:DIF1,COLORRED,LINETHICK0;

DEAAA:DEA1,COLORBLUE,LINETHICK0;

DIFF:DIF,COLORYELLOW,LINETHICK0;

DEAA:DEA,COLORGREEN,LINETHICK0;

动力线:MA(MACD1,5),,COLORYELLOW,LINETHICK1;

中区:0,COLORBLUE,LINETHICK0;

主动:IF(MACD1>=动力线AND 动力线<=中区,动力线,DRAWNULL),COLORYELLOW,LINETHICK2;

主拉:IF(动力线>=中区,动力线,DRAWNULL),COLORRED,LINETHICK2;

翻空:IF(动力线<中区AND 动力线>MACD1,动力线,DRAWNULL),COLORGREEN,LINETHICK2;

AA:=BARSLAST(REF(CROSS(DIF1,DEA1),1));

BB:=REF(CLOSE,AA+1)>CLOSE AND DIF1>REF(DIF1,AA+1) AND CROSS(DIF1,DEA1); JCCOUNT:=COUNT(CROSS(DIF1,DEA1),BARSLAST(DEA1>=0));

二金:=CROSS(DIF1,DEA1) AND DEA1<0 AND COUNT(JCCOUNT=2,21)=1; DRAWICON(二金,DEA*1.04,15) ;

DRAWTEXT(二金,-0.02,' 2'),COLORFF00FF;

VAR1:=EMA(CLOSE,12)-EMA(CLOSE,25);

VAR2:=EMA(VAR1,3);

VAR3:=VAR1>VAR2;

VAR4:=VAR1

STICKLINE(VAR3,VAR1,VAR2,1,0),COLORRED;

STICKLINE(VAR4,VAR1,VAR2,1,0),COLORGREEN;

相关文档
最新文档