for what exactly you need the NewBar(tf) check? it will often not make sense to put it on the entire main program routine, esp. if you call from there the trailing ecc.. funtionsAngat » Sun Jan 18, 2015 12:31 pm wrote:Well this isn't actually what I need, I need something that is going to check the next 6*60*Period() to see if price moves out of this buffer zone. The issue I have right now is the main bulk of my trading code is sitting in a NewBar(TimeFrame) { } segment in my int Start(). Which means that any function that I need to check subsequent bars is going to get reset on every NewBar. It seems the only way I can accomplish what I need is to rewrite my code structure so its not reliant on NewBar().
This is a tough one.
Cheers
Tommaso