MACD多周期同图 多图融合方便看盘 通达信副图指标 源码 贴图
2020-11-18 10:11:00来源:本站整理浏览:746
MACD多周期同图 多图融合方便看盘 通达信副图指标 源码 贴图
因为玩期货要看各种时间段macd,通达信看行情引用日线级别以下的周期函数显示不了,又不想用多图界面变小,非原创,网上找了很久,论坛搜了没搜到,应该不会重复,如果重复,烦请斑斑删除!!!
都是老司机其他不说,股票的应用当30 60分钟日线穿周线时候是不是趋势,主升浪,选择这种配合当下题材,又或者强势股回调,找30 60分共振切入等等,自己学会多发掘用法,还是那句指标非万能,参考就好!!!
{周MACD}
DIF55:(EMA(CLOSE,30)-EMA(CLOSE,90))*0.55;
DEA55:(EMA(DIF55,26));
MACD周:=(DIF55-DEA55)*2, COLORSTICK;
DRAWBAND(DEA55,RGB(135,255,35),DIF55,RGB(240,160,0));
DRAWTEXT(CURRBARSCOUNT=1,DIF55,'--周MACD'),COLORRED;
{日MACD}
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
DRAWBAND(DIFF,RGB(255,80,120),DEA,RGB(21,138,255));
DRAWTEXT(CURRBARSCOUNT=1,DIFF,'--日MACD'),COLOR00FFFF;
{60分MACD}
DIF60:=EMA(CLOSE,12/2)-EMA(CLOSE,26/2);
DEA60:=EMA(DIF60,9/2);
DRAWBAND(DIF60,RGB(120,20,255),DEA60,RGB(80,255,20));
DRAWTEXT(CURRBARSCOUNT=1,DIF60,'--60分钟MACD'),COLORFF00FF;
{30分MACD}{www.gpxiazai.com}
DIF30:=(EMA(CLOSE,12/4)-EMA(CLOSE,26/4)),COLORGREEN,LINETHICK2;
DEA30:=(EMA(DIF30,9/4)),COLORMAGENTA,LINETHICK2;
DRAWBAND(DIF30,RGB(220,50,50),DEA30,RGB(50,120,50));
DRAWTEXT(CURRBARSCOUNT=1,DIF30,'--30分钟MACD'),COLORGREEN;
{日MACD柱}
0,COLORWHITE,DOTLINE;
MACD:(DIFF-DEA)*2,COLORSTICK;
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1,1),COLORRED,;
STICKLINE(MACD<REF(MACD,1) AND MACD>0,0,MACD,1,1),COLOR4080FF,;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,1,1),COLORYELLOW,;
STICKLINE(MACD<REF(MACD,1) AND MACD<0,0,MACD,1,1),COLORLIGREEN,;