i tried making a pause loop but failed to realize that it may change the positioning of my peaks and valleys (checking for divergence) before the bar is closed
and it does - i get all kinds of erratic behavior because each time it runs through the condition check there is a chance that the peak or valley it's looking at will shift during the time the bar is built
so now i think i need to check only once at some point towards the end of the bar being built for the divergent condition
will PercentComplete serve to allow only one run through of the condition check once the bar has built to that point ?
ie
if (Bars.PercentComplete == .75)
{
run condition check;
}
just want to make sure the condition check is run only once as running it more than once on a bar messes things up
thanks,
wes
Comment