I would like to kep track of the most recent High and low.
Is there a better way than the following:
1) Bool flag that I have walked back thru the last 100 High[x] and Low[x] to mark the highest high and low.
2) From then on if a new value High[0] and Low[0] beat those historical values update
the variables.
Question 1- Is there a better way?
Question 2- if (CurrentBar < 100) do something.... If I just start up the strategy and I want to check the last 100 bars for high and lows do I have to wait for the 100 bars to be created.
Thanks
Bob

Comment