Forum: NinjaTrader
May 29th, 2011, 08:39 PM
|
Replies: 7
Views: 4,286
|
Forum: NinjaTrader
May 29th, 2011, 08:07 PM
|
Replies: 7
Views: 4,286
Maybe the problem is caused by checking two...
Maybe the problem is caused by checking two double values for equality. As both values are calculated, there may be rounding errors, which cause the oscillations.
Try to replace
if...
|