Is there any way to carry over data from the last bar/increment into the next?
A simple example:
Place an arrow underneath the start of a series of uptrends (higher highs and higher los).
In strategy analyzer, I would have it start a counter if High[0]>High[1] && Low[0]>Low[1] --- counter++; when it's no longer the case,
DrawArrowDown("my arrow" + CurrentBar, true, counter, Low[counter] , Color.Black);
I wrote it all in strategy analyzer and it works fine, but it seems that everything has to be calculated fresh each time with indicators. Is there any way around this?
Thank you.
Comment