Quote:
Originally Posted by ralph.ronnquist
Check the logic for "limit"...
As it currently stands: apart from at the first start() call, the counted_bars value will always be in the vicinity of Bars, while All_Bars by the looks of it remains 10, and therefore limit becomes a large negative number.
Maybe you wanted
PHP Code:
limit = MathMin( All_Bars, Bars - counted_bars);
or something similar?
|
Thank you for your suggestions, I am going to change All_Bars to 0 and try your limit logic in place of what is currently there. I hope this will solve the problem. Thank you for taking your time to try and help me.
