I have an indicator that does alot of calc's so it is not feasible for it to run on every bar on startup so therefore I use this line which wont run the indi until we are at the last bar.
if (CurrentBar < Count - BarsToLookBack)return;
The issue with this is that if I refresh the indicator when the chart is scrolled back, nothing happens as we are not at the last bar yet.....
how can I manage the indicator not running on every bar on startup but at the same time being active when I scroll back on the chart? Or loading up when the chart is scrolled back...
thanks in advance for any help.
Comment