初学者的问题 MQL5 MT5 MetaTrader 5 - 页 751 1...744745746747748749750751752753754755756757758...1503 新评论 igorbel 2017.06.08 19:10 #7501 Vitaly Muzichenko: 文档中很好地涵盖了这一点,甚至还有一个现成的工作实例 DRAW_HISTOGRAM2的文档中没有这个内容 Vitaly Muzichenko 2017.06.08 19:12 #7502 igorbel: DRAW_HISTOGRAM2文档中没有这样的内容是的,有一点不同https://www.mql5.com/en/docs/customind/indicators_examples/draw_color_histogram2 Documentation on MQL5: Custom Indicators / Indicator Styles in Examples / DRAW_COLOR_HISTOGRAM2 www.mql5.com Custom Indicators / Indicator Styles in Examples / DRAW_COLOR_HISTOGRAM2 - Reference on algorithmic/automated trading language for MetaTrader 5 igorbel 2017.06.08 19:29 #7503 Vitaly Muzichenko:是的,有一点不同https://www.mql5.com/en/docs/customind/indicators_examples/draw_color_histogram2 我到底应该在颜色缓冲区 中存储什么?那里的例子有点复杂。 igorbel 2017.06.08 19:34 #7504 弄明白了。例子中的Awesome_Oscillator更容易。 igorbel 2017.06.08 19:46 #7505 我这样做了,但现在其他指标缓冲区 不显示了:(有的只是线条。//--- indicator buffers mapping SetIndexBuffer(0,buf0,INDICATOR_DATA); PlotIndexSetString(0,PLOT_LABEL,"buf0"); //--- SetIndexBuffer(1,buf1,INDICATOR_DATA); PlotIndexSetString(1,PLOT_LABEL,"buf1"); //--- SetIndexBuffer(2,buf_colors,INDICATOR_COLOR_INDEX); //--- SetIndexBuffer(3,buf2,INDICATOR_DATA); PlotIndexSetInteger(3,PLOT_DRAW_TYPE,DRAW_LINE); PlotIndexSetInteger(3,PLOT_LINE_STYLE,STYLE_SOLID); PlotIndexSetInteger(3,PLOT_LINE_COLOR,clrRoyalBlue); PlotIndexSetString(3,PLOT_LABEL,"buf2"); //--- SetIndexBuffer(4,buf3,INDICATOR_DATA); PlotIndexSetInteger(4,PLOT_DRAW_TYPE,DRAW_LINE); PlotIndexSetInteger(4,PLOT_LINE_STYLE,STYLE_SOLID); PlotIndexSetInteger(4,PLOT_LINE_COLOR,clrRed); PlotIndexSetString(4,PLOT_LABEL,"buf3");buf0, buf1, buf_colors是直方图。buf2, buf3是行,不显示,尽管数值在那里。 Vitaly Muzichenko 2017.06.08 19:53 #7506 igorbel:我这样做了,但现在其他指标缓冲区 不显示了:(有的只是线条。buf0, buf1, buf_colors是柱状图。buf2, buf3是行,它们不被显示,尽管数值在那里。这些数值是否正确?#property indicator_buffers #property indicator_plots igorbel 2017.06.08 19:55 #7507 Vitaly Muzichenko:你的价值观是否正确?#property indicator_chart_window #property indicator_buffers 5 #property indicator_plots 3 #property indicator_type1 DRAW_COLOR_HISTOGRAM2 #property indicator_color1 clrRed,clrRoyalBlue #property indicator_style1 STYLE_SOLID #property indicator_width1 3 这些都是指令。 Vitaly Muzichenko 2017.06.08 20:05 #7508 igorbel: 这些都是指令。 你在其他缓冲器上设置了颜色吗? igorbel 2017.06.08 20:58 #7509 Vitaly Muzichenko: 你在其他缓冲器上设置了颜色吗? 是的,在前一个帖子中有一个。 SetIndexBuffer(3,buf2,INDICATOR_DATA); PlotIndexSetInteger(3,PLOT_DRAW_TYPE,DRAW_LINE); PlotIndexSetInteger(3,PLOT_LINE_STYLE,STYLE_SOLID); PlotIndexSetInteger(3,PLOT_LINE_COLOR,clrRoyalBlue); PlotIndexSetString(3,PLOT_LABEL,"buf2"); //--- SetIndexBuffer(4,buf3,INDICATOR_DATA); PlotIndexSetInteger(4,PLOT_DRAW_TYPE,DRAW_LINE); PlotIndexSetInteger(4,PLOT_LINE_STYLE,STYLE_SOLID); PlotIndexSetInteger(4,PLOT_LINE_COLOR,clrRed); PlotIndexSetString(4,PLOT_LABEL,"buf3"); igorbel 2017.06.08 22:29 #7510 #property indicator_type2 DRAW_LINE #property indicator_type3 DRAW_LINE 这很有帮助。这很奇怪。 1...744745746747748749750751752753754755756757758...1503 新评论 您错过了交易机会: 免费交易应用程序 8,000+信号可供复制 探索金融市场的经济新闻 注册 登录 拉丁字符(不带空格) 密码将被发送至该邮箱 发生错误 使用 Google 登录 您同意网站政策和使用条款 如果您没有帐号,请注册 可以使用cookies登录MQL5.com网站。 请在您的浏览器中启用必要的设置,否则您将无法登录。 忘记您的登录名/密码? 使用 Google 登录
文档中很好地涵盖了这一点,甚至还有一个现成的工作实例
DRAW_HISTOGRAM2的文档中没有这个内容
DRAW_HISTOGRAM2文档中没有这样的内容
是的,有一点不同
https://www.mql5.com/en/docs/customind/indicators_examples/draw_color_histogram2
是的,有一点不同
https://www.mql5.com/en/docs/customind/indicators_examples/draw_color_histogram2
我到底应该在颜色缓冲区 中存储什么?那里的例子有点复杂。
弄明白了。
例子中的Awesome_Oscillator更容易。
我这样做了,但现在其他指标缓冲区 不显示了:(
有的只是线条。
buf0, buf1, buf_colors是直方图。
buf2, buf3是行,不显示,尽管数值在那里。
我这样做了,但现在其他指标缓冲区 不显示了:(
有的只是线条。
buf0, buf1, buf_colors是柱状图。
buf2, buf3是行,它们不被显示,尽管数值在那里。
这些数值是否正确?
你的价值观是否正确?
这些都是指令。
这些都是指令。
你在其他缓冲器上设置了颜色吗?
是的,在前一个帖子中有一个。