How to make an EA used indicators to appear on chart once EA inserted.

 
Good day Wonderful traders,
I would appreciate your assistance in this : I am building an EA, Inside of the EA, I am using 2 indicators but I want to make the indicators to appear on chart once I insert the EA. I also need assistance how to change the color on indicator displayed on the chart because by default is red.
Thanks for your assistance in advance.
 
Smith Stuggartt:
Good day Wonderful traders,
I would appreciate your assistance in this : I am building an EA, Inside of the EA, I am using 2 indicators but I want to make the indicators to appear on chart once I insert the EA. I also need assistance how to change the color on indicator displayed on the chart because by default is red.
Thanks for your assistance in advance.

Please people help

 
Smith Stuggartt:

Please people help

OnInit()
{
     ChartIndicatorAdd(ChartID(),0,indicatorHandle); //Draw desired indicator on the current chart at (0) the same "window"

}


Sorry, no time to explain, if needed go read the documentation:
https://www.mql5.com/en/docs/chart_operations/chartindicatoradd

Documentation on MQL5: Chart Operations / ChartIndicatorAdd
Documentation on MQL5: Chart Operations / ChartIndicatorAdd
  • www.mql5.com
"the Expert Advisor's properties and specify correct  and  parameters." //| Expert initialization function                                   |                                                                                       ); "Attention! %s: Trying to add MACD(%s/%s) indicator on %s/%s chart. Receiving error 4114" //
 
Yan Haeffner:


Sorry, no time to explain, if needed go read the documentation:
https://www.mql5.com/en/docs/chart_operations/chartindicatoradd

Thank you very much.