How can I add a custom indicator to a chart from a script?
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().
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.