I just noticed that changing a function parameter resets all the globals, calls postMain and preMain. Is this correct?
This is a big problem for me. I thought it would just change the values and call main with the updated values without reloading the entire chart. If it reloads the entire chart, then a lot of my chart annotations will be wrong because I am now processing the chart data as historical rather than in real-time.
I have multiple charts interacting so I have to buffer all ticks up to the first currentbar state event for each chart. Then I have to go back and process all the data that has accumulated.
Please tell me there is a built-in way to change a function parameter without processing the entire contents of the chart again.
This is a big problem for me. I thought it would just change the values and call main with the updated values without reloading the entire chart. If it reloads the entire chart, then a lot of my chart annotations will be wrong because I am now processing the chart data as historical rather than in real-time.
I have multiple charts interacting so I have to buffer all ticks up to the first currentbar state event for each chart. Then I have to go back and process all the data that has accumulated.
Please tell me there is a built-in way to change a function parameter without processing the entire contents of the chart again.
Comment