> 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.

# MasterInstrument

## Definition

An instrument's configuration settings. These are settings and properties which are defined in the **Instrument** window.

Warning: The properties in this class should NOT be accessed within the **OnStateChange()** method before the State has reached State.DataLoaded.

## Methods and Properties

| Method/Property                                                                                                   | Description                                                                                 |
| ----------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| [Compare()](/developer/desktop-sdk/references/common/instrument/masterinstrument/compare)                         | Returns An **int** value compares two price values with respect to the Instrument tick size |
| [Currency](/developer/desktop-sdk/references/strategy/tradecollection/tradesperformance/currency)                 | The currency that the instrument traded in                                                  |
| [Description](/developer/desktop-sdk/references/common/description)                                               | A written representation of a given instrument                                              |
| [Dividends](/developer/desktop-sdk/references/common/instrument/masterinstrument/dividends)                       | A collection of dividends for stock instruments                                             |
| [Exchanges](/developer/desktop-sdk/references/common/instrument/masterinstrument/exchanges)                       | A collection of exchanges configured for an instrument                                      |
| [FormatPrice()](/developer/desktop-sdk/references/common/instrument/masterinstrument/formatprice)                 | Returns a string representing the price formatted to the nearest tick size                  |
| [InstrumentType](/developer/desktop-sdk/references/common/instrument/masterinstrument/instrumenttype)             | The type of instrument                                                                      |
| [MergePolicy](/developer/desktop-sdk/references/common/instrument/masterinstrument/mergepolicy)                   | The Merge Policy that is configured for the current master instrument.                      |
| [Name](/developer/desktop-sdk/references/common/instrument/masterinstrument/masterinstrument-name)                | The name of the instrument.                                                                 |
| [GetNextExpiry()](/developer/desktop-sdk/references/common/instrument/masterinstrument/getnextexpiry)             | Returns a DateTime structure representing the next futures expiry for a given date          |
| [PointValue](/developer/desktop-sdk/references/common/instrument/masterinstrument/pointvalue)                     | Currency value of 1 full point of movement                                                  |
| [RolloverCollection](/developer/desktop-sdk/references/common/instrument/masterinstrument/rollovercollection)     | A collection of expiration dates and offsets for futures instruments                        |
| [RoundToTickSize()](/developer/desktop-sdk/references/common/instrument/masterinstrument/roundtoticksize)         | Rounds the value up to the nearest valid value                                              |
| [RoundDownToTickSize()](/developer/desktop-sdk/references/common/instrument/masterinstrument/rounddowntoticksize) | Rounds the value down to the nearest valid value                                            |
| [Splits](/developer/desktop-sdk/references/common/instrument/masterinstrument/splits)                             | A collection of splits for stock instruments                                                |
| [TickSize](/developer/desktop-sdk/references/common/analytical/ticksize)                                          | The smallest movement in price configured                                                   |
| [Url](/developer/desktop-sdk/references/common/instrument/masterinstrument/url)                                   | A web url where contract details have been collected                                        |