Is there a way to restart indicator when the last historical bar is reached. I want to do the first run for calculating one parameter, then the second run to calculate another parameter and only then apply the indicator. For now I have to save all intermediate parameters to the file and restart the indicator manually changing input parameters to reflect the order of run.
Also is there a way to find out the CurrentBar number of the last historical bar before the next (live) tick arrives?
Thank you.
Comment