I can determine when my signal Bar occurs, but what I then want to do is, wait for another 4 bars to occur then for every bar at bar 5 or greater from the signal bar, check to see if the current bar is above the high of the previous bar.
So my question is once I have determined the presence of a signal bar how do I track it so I can determine how far advanced I am from that point. Currently I am thinking a variable that holds the signal bar's Time reference 'Time[0]' could be the way to go, but I am not sure how to check a currentBars time reference against a variable holding a time reference.
Possibly:
currentBarTime.Set(Time[0])
If (currentBarTime < (signalBarTime + 50000) {do something}
as time is in milliseconds and I am considering bars on an 1hour chart time will have to be X times 10,000
Thoughts?
Kind regards
Duncan
Comment