梦屿千寻396 发表于 2023-4-21 20:57:26

MACD 二周期副图技术指标源码 分享

DIFF:EMA(CLOSE,12) - EMA(CLOSE,26)LINETHICK1;
DEA:EMA(DIFF,9),LINETHICK1;
MACD:2*(DIFF-DEA),COLORSTICK ;
STICKLINE(((MACD0)),0,MACD,0,0),COLORLIRED,LINETHICK2;
DRAWBAND(DIFF,RGB(99,0,66),DEA,RGB(0,66,99));
STICKLINE(((MACD0)),0,MACD,0,0),COLORLIRED,LINETHICK2;
STICKLINE(((MACD>REF(MACD,1)) AND (MACD>0)),0,MACD,0,0),COLOR0000FF,LINETHICK2;
STICKLINE(((MACD STICKLINE(((MACD>REF(MACD,1)) AND (MACD<0)),0,MACD,0,0),COLORFFFF00,LINETHICK2;
F30:(EMA(CLOSE,12/4)-EMA(CLOSE,26/4)),COLORGREEN;
A30:(EMA(F30,9/4));
DRAWBAND(F30,RGB(0,224,0),A30,RGB(255,96,255));{15F};
DRAWTEXT(REF(MACD,1)>0 AND MACD<0,MACD-0.01,'1');
DRAWTEXT(REF(MACD,2)>0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.01,'2');
DRAWTEXT(REF(MACD,3)>0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.01,'3');
DRAWTEXT(REF(MACD,4)>0 AND REF(MACD,3)<0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.01,'4');
DRAWTEXT(REF(MACD,5)>0 AND REF(MACD,4)<0 AND REF(MACD,3)<0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.01,'5');
DRAWTEXT(REF(MACD,6)>0 AND REF(MACD,5)<0 AND REF(MACD,4)<0 AND REF(MACD,3)<0 AND REF(MACD,2)<0
AND REF(MACD,1)<0 AND MACD<0,MACD-0.01,'6');



世博善 发表于 2023-4-25 16:00:53

多多点赞好好学习

吴佐 发表于 2023-4-30 20:43:15

好贴不能沉!

非究思身 发表于 2023-5-1 05:43:53

相当不错,感谢无私分享精神!

hdywz751748 发表于 2023-5-5 22:40:36

厉害了!

xavi607 发表于 2023-5-9 11:15:44

不错不错,楼主您辛苦了。。。

仰望星空246 发表于 2023-7-11 19:50:07

尝试一下

柯子陈lid 发表于 2023-7-20 11:57:43

多多点赞好好学习

粥正浓拿 发表于 2023-8-5 15:14:41

已收藏,以后会常来!

圣道 发表于 2023-9-5 20:56:18

一切尽在不言中,谢谢!
页: [1] 2
查看完整版本: MACD 二周期副图技术指标源码 分享