79817470

Date: 2025-11-12 08:10:00
Score: 0.5
Natty:
Report link

In MQL5, you cannot directly change the color of an indicator from within an Expert Advisor. When an EA uses built-in indicators like iMA or iRSI, it only reads their data and does not control how they appear on the chart. The color and style of an indicator can only be defined inside the indicator’s own code using properties such as #property indicator_color1 clrRed or by calling PlotIndexSetInteger(0, PLOT_LINE_COLOR, clrRed). If you need a specific color, you must edit the indicator’s source file or create a custom indicator with your preferred color settings.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ODMT