Forum: NinjaTrader
December 9th, 2009, 08:02 PM
|
Replies: 3
Views: 3,697
|
Forum: NinjaTrader
December 9th, 2009, 06:18 PM
|
Replies: 3
Views: 3,697
Thanks Sam,
That was what I was missing. ...
Thanks Sam,
That was what I was missing.
Now it works for integers (RoundToInterval(3,2,IntervalRounding.Down) but stops when I use the example above (3.83, 2) - it says: Argument 1: cannot...
|
Forum: NinjaTrader
December 9th, 2009, 04:01 PM
|
Replies: 3
Views: 3,697
Round to interval: code snippet + problem
Hi
In my strategy I need to round a number to multiple of an interval and have a choice of rounding up, down, and to the nearest mulitple of interval. I've found following code snippet that...
|