How to load an indicator to the chart via EA

 

Hi
I know how to use Indicators in EA , 

But I want to have the indicator on the chart Also .

is there any function for loading indicators to the chart automatically ?

 
In mql4 no native function for that.  In mql5 you can use ChartIndicatorAdd.  Regards.
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" //
 
Jose Francisco Casado Fernandez:
In mql4 no native function for that.  In mql5 you can use ChartIndicatorAdd.  Regards.

Hi
Thank you Jose Francisco Casado Fernandez


 
Reza nasimi:

Hi
Thank you Jose Francisco Casado Fernandez

You are welcome.  Regards.