> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ninjatrader.com/_mcp/server.

# 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

* Rounding a value to the nearest tick

## Important related documentation

* [RoundToTickSize()](/developer/desktop-sdk/references/common/instrument/masterinstrument/roundtoticksize)
* [EnterLongLimit()](/developer/desktop-sdk/references/strategy/order-methods/managed-approach/enterlonglimit)
* [ExitLong()](/developer/desktop-sdk/references/strategy/order-methods/managed-approach/exitlong)
* [CrossAbove()](/developer/desktop-sdk/references/common/analytical/crossabove)
* [CrossBelow()](/developer/desktop-sdk/references/common/analytical/crossbelow)

## Import instructions

1. Download the file contained in this Help Guide topic to your PC desktop
2. From the Control Center window, select the menu Tools > Import > NinjaScript
3. Select the downloaded file

[SampleRoundToTickSize\_NT8.zip](https://ninjatrader.com/support/helpGuides/nt8/samples/SampleRoundToTickSize_NT8.zip)