In MQL5 you can use ChartIndicatorAdd()
As that doesn't appear to have been implemented in MQL4 you are left with:
1. Create a template containing your indicator; and
2. Using ChartApplyTemplate()
Not an ideal solution, for many reasons...
Thanks for the answer.
Can you explain what you thing it is not an ideal solution?
Often people have lots of other things on the chart too - line studies, indicators, EA.
You apply a new template and it all disappears (unless it happens to be included in the template).
Adding indicators is for the Human to see. Therefor you add them to the chart and create a template in case you need to create a new chart.
No need to add them in code.
Adding indicators is for the Human to see. Therefor you add them to the chart and create a template in case you need to create a new chart.
No need to add them in code.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
I looked into documentation and I only function to delete indicator to a chart.
My question is : How can I add from mql4 language an indicator to a specific chart?
Thanks