MACD变色变天修改(大智慧)
DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);
DEA : EMA(DIFF,9);
macd : 2*(DIFF-DEA), COLORstICK;
PARTLINE(dea,dea>REF(dea,1),RGB(255,255,255),dea<REF(dea,1),RGB(255,255,255)),Linethick1;
PARTLINE(DIFF,DIFF>=REF(DIFF,1),RGB(255,0,0),DIFF<REF(DIFF,1),RGB(0,255,0)),Linethick2;
DRAWGBKLAST(DEA>0,STRIP(RGB(90,0,0),RGB(10,150,0),0)) and DRAWGBKLAST(dea<0,STRIP(RGB(0,128,128),RGB(25,25,112),0));
日金:DRAWTEXT(crOSS(DIFF,DEA) ,MacD,'▲'),align2,COLORred;
日死:DRAWTEXT(CROSS(DEA,DIFF) ,macd*1.5,'▼'),align2,COLORgreen;
DRAWTEXTAbs(3,1,'DIFF翻红,结合增仓及均线多头抓主升。'),linethick1,Color00ffff;
DRAWTEXTABS(3,16,'DIFF泛绿时持币,宁缺毋滥。'),linethick1,Color00ffff;
声明:
本站所有文章文字内容如无特殊说明均为原创编写,任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台!指标公式源码来源于网络收集和用户上传,分享目的仅供参考与学习,如需商用,请购买正版,否则后果和损失自行承担。如若本站内容侵犯了原著者的合法权益,请携带相关版权文件 联系我们进行下架处理。指标公式案例截图仅代表过去,依此操作,责任自负。本站不提供技术培训、安装调试、股票推荐等金融服务。