I have a question about working with existing indicators on a chart. I am trying to write a script
that has access to the indicators attached to the current chart. They show up when I run ChartIndicatorsTotal()
but when I cannot get the handles for them. Any ideas? Thanks in advance.
So, you mean there is no way to just get the handle. As I understand if I create the same indicator with the same parameters it will link to the one in the chart, but I wanted to avoid manually creating the indicator in the code. Ideally I wanted to just instantiate a bunch of indicators in the chart, set up their parameters and then simply launch my script to dump all of that data into a file. There is no way to avoid setting up the indicators in the code, am I correct?
There is no way to avoid setting up the indicators in the code, am I correct?
You are right, unfortunately there isn't.