Loading Existing Indicator Data from chart

 

Hi everyone,

        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.

 
You should create in your script a handle to preferred indicator with the same parameters.
 
alexvd:
You should create in your script a handle to preferred indicator with the same parameters.

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?

Thanks,

     Nick

 
NickMikh:

There is no way to avoid setting up the indicators in the code, am I correct?

You are right, unfortunately there isn't.