Please use the SRC button when adding code. I've fixed it for you this time
I want to open charts from a script and attach a customer indicator to each chart. Opening the charts is easy:
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?
Thanks.
- www.mql5.com
Thank you.
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.
Thank you.
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().
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I want to open charts from a script and attach a customer indicator to each chart. Opening the charts is easy:
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?
Thanks.