顺水外汇EA交易网MT4
标题:
论坛下了ZGFXMACD不能正常显示,烦帮忙弄一下,谢谢
[打印本页]
作者:
pang1688
时间:
2018-1-11 14:44
标题:
论坛下了ZGFXMACD不能正常显示,烦帮忙弄一下,谢谢
下了http://bbs.520fx.com/forum.php?mod=viewthread&tid=73419&extra=page%3D6,这个指标,觉得挺好的,但是出来只有一根黄线,按帖子修改后如下图:
最终的效果图:,,目前是蓝色线没显示出来,,求大神看看,怎么把蓝线显示出来,,谢谢了!!
///+------------------------------------------------------------------+
//| ZGFxMACD.mq4.mq4 |
//| Copyright 2016, MetaQuotes Software Corp. |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2016, MetaQuotes Software Corp."
#property indicator_separate_window
#property indicator_buffers 6
#property indicator_color1 Yellow
#property indicator_color2 Aquamarine
#property indicator_color3 Crimson
#property indicator_color4 DarkGreen
#property indicator_color5 Red
#property indicator_color6 Blue
extern int FastEMA = 12;
extern int SlowEMA = 26;
extern int SignalSMA = 9;
double g_ibuf_88[];
double g_ibuf_92[];
double g_ibuf_96[];
double g_ibuf_100[];
double g_ibuf_104[];
double g_ibuf_108[];
double gd_112;
int init() {
SetIndexBuffer(0, g_ibuf_88);
SetIndexBuffer(1, g_ibuf_92);
SetIndexBuffer(2, g_ibuf_96);
SetIndexBuffer(3, g_ibuf_100);
SetIndexBuffer(4, g_ibuf_104);
SetIndexBuffer(5, g_ibuf_108);
SetIndexStyle(5,DRAW_HISTOGRAM);
SetIndexDrawBegin(1, SignalSMA);
IndicatorDigits(MarketInfo(Symbol(), MODE_DIGITS) + 1.0);
if (!SetIndexBuffer(0, g_ibuf_88) && !SetIndexBuffer(1, g_ibuf_92) && !SetIndexBuffer(2, g_ibuf_96) && !SetIndexBuffer(3, g_ibuf_100) && !SetIndexBuffer(4, g_ibuf_104) &&
!SetIndexBuffer(5, g_ibuf_108)) Print("cannot set indicator buffers!");
IndicatorShortName("MACD(" + FastEMA + "," + SlowEMA + "," + SignalSMA + ")");
SetIndexLabel(0, "MACD");
SetIndexLabel(1, "Signal");
return (0);
}
int start() {
int li_4 = IndicatorCounted();
if (li_4 0) li_4--;
int li_0 = Bars - li_4;
for (int li_8 = 0; li_8 0.0) {
g_ibuf_96[li_8] = gd_112;
g_ibuf_100[li_8] = 0;
} else {
g_ibuf_96[li_8] = 0;
g_ibuf_100[li_8] = gd_112;
}
}
for (li_8 = 0; li_8 g_ibuf_88[li_8 + 1]) g_ibuf_104[li_8] = g_ibuf_88[li_8];
else g_ibuf_104[li_8] = EMPTY_VALUE;
}
for (li_8 = 0; li_8 g_ibuf_92[li_8 + 1]) g_ibuf_108[li_8] = g_ibuf_92[li_8];
else g_ibuf_108[li_8] = EMPTY_VALUE;
}
return (0);
}
作者:
Roy_PUtmt
时间:
2018-1-11 15:02
不明白你说啥
作者:
ffj781212
时间:
2018-1-11 15:15
这个可以显示
作者:
华轮汽车导航
时间:
2018-1-11 16:25
回复赚金币
作者:
tg;j
时间:
2018-1-11 16:32
谢谢分享
作者:
tsingbo
时间:
2018-1-11 17:48
谢谢分享
作者:
EUR168
时间:
2018-1-11 18:51
ZGFxMACD
作者:
ggg750075
时间:
2018-1-11 19:30
ddddddddddddddddddddqqqqqqqqqqqqqqq
欢迎光临 顺水外汇EA交易网MT4 (http://waterforex.com/)
Powered by Discuz! X3.2