NinjaScript > Educational Resources > Reference Samples > Strategy > Rounding values to the nearest tick size |
|
When NinjaTrader receives a request to submit an order, it automatically rounds any limit price or stop price to the nearest tick for that specific instrument.
When debugging and/or printing out order information, this may not be apparent. NinjaTrader includes a Method named RoundToTickSize to apply the same internal rounding to any value you wish, which can help make comparisons easier.
Key concepts in this example
Important related documentation
Import instructions
|