【问题标题】:Color getting overlapped in the indicator MQL5颜色在 MQL5 指标中重叠
【发布时间】:2018-09-26 05:32:43
【问题描述】:

我正在尝试使用布林带绘制图表的各个部分。但是在为图表带着色时,某些部分似乎用 2 种颜色着色或与颜色重叠,

见下图:

请参阅黄色矩形标记的部分。我该怎么做才能避免颜色重叠?

如何避免这种重叠?因为它使能见度无法理解目前存在的颜色。这个documentation 目前没有帮助。

我只是使用以下内容:

//--- plot Label1
#property indicator_label1  "UpTrend"
#property indicator_type1   DRAW_FILLING
#property indicator_color1  DarkGreen//C'10,10,70'
#property indicator_style1  STYLE_SOLID 
#property indicator_width1  1
//--- plot Label2
#property indicator_label2  "DnTrend"
#property indicator_type2   DRAW_FILLING
#property indicator_color2  C'70,10,10'
#property indicator_style2  STYLE_SOLID
#property indicator_width2  1
//--- plot Label3
#property indicator_label3  "Flat"
#property indicator_type3   DRAW_FILLING
#property indicator_color3  Aqua//C'50,50,50'
#property indicator_style3  STYLE_SOLID
#property indicator_width3  1

【问题讨论】:

    标签: mql5 metatrader5 mt


    【解决方案1】:

    如何避免这种重叠?

    嗯,实际上你不能。

    MetaTrader 终端本地 GUI 引擎中没有这样的工具来执行此操作。

    然而,人们可以构建自己的远程 GUI 引擎,其中任何此类工具都可用(并且只需与 MT4/5 终端 MQL4/5 代码通信)。

    【讨论】:

    • 感谢您的回答。您能否解释或举例说明如何实现您的建议?我不明白你的意思。请告诉我。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-01-05
    • 2021-04-22
    • 2019-02-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-24
    相关资源
    最近更新 更多