How to programmatically put and show an indicator on a chart.

hello all

How to programmatically put and show an indicator on a chart.

saada:

hello all

How to programmatically put and show an indicator on a chart.

Me too iam struggle with indicate

Create a temporary template (.tpl) file with the indicator listed in the xml payload, then use ChartApplyTemplate with the tpl file. 
you can use iCustom in mql4 to get data from it , if use it the indicator will show automatically in the chart.
ebrahim nowroozi: you can use iCustom in mql4 to get data from it , if use it the indicator will show automatically in the chart.

That wasn't the question. What part of "programmatically put and show an indicator" was unclear?

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" //