龙听期货论坛's Archiver

C
+
+


 微信: QQ:

龙听 发表于 2018-4-27 13:34

超强MACD(副图)[同花顺源码]

源码如下:
[code]
DRAWGBK(V>1,STRIP(RGB(60,100,255),RGB(130,120,255),1));
DIFF : EMA(CLOSE,4) - EMA(CLOSE,14),ColorFFFFFF,LINETHICK1;
DEA: EMA(DIFF,5),ColorFF0000,LINETHICK1;
MACD彩柱:(DIFF-DEA)*2,COLORSTICK,LINETHICK1;
STICKLINE(((MACD彩柱0)),0,MACD彩柱,6,0),Color3EFFFF;
STICKLINE(((MACD彩柱>REF(MACD彩柱,1)) AND (MACD彩柱<0)),0,MACD彩柱,6,0),Color3EFFFF;
D1:=EMA(C,3)-EMA(C,14);
D2:=EMA(O,3)-EMA(O,14);
D3:=EMA(H,3)-EMA(H,14);
D4:=EMA(L,3)-EMA(L,14);
STICKLINE(D1>D2,D1,D2,10,0),COLOR993388;
STICKLINE(D1>D2,D1,D2,4,0),COLOR000099;
STICKLINE(D1>D2,D1,D2,2,0),COLOR0033EE;
STICKLINE(D1>D2,D1,D2,1,0),COLOR0000FF;
[/code]


[img]http://p.qhlt.cn/filestores/2018/04/27/265d4a17ab4e82bfab8ad4bd0906993b.jpg[/img]

页: [1]