I want to open charts from a script and attach a customer indicator to each chart. Opening the charts is easy:
long chart1 = ChartOpen("AUDJPY",PERIOD_H4);
long chart2 = ChartOpen("AUDNZD",PERIOD_H4);
long chart3 = ChartOpen("AUDUSD",PERIOD_H4);
I cannot find a function to attach my customer indicator to each of the charts.This is puzzling as there is a function to remove an indicator - ChartIndicatorDelete(...)
Can anyone tell me how to add a customer indicator to a chart from a script?
Please use the SRC button when adding code. I've fixed it for you this time
I could not find it. I am using MQL4 and it is not defined there. It is defined in MQL5, so I will have to update to MQL5.
Right, you can't do it with mql4.
What you can do is create a template with your indicator, and attache it to a chart with ChartApplyTemplate().