NinjaScript > Language Reference > Data > Instrument >


Print this Topic Previous pageReturn to chapter overviewNext page


Returns the NinjaTrader database name of an instrument. For example, "MSFT", "ES", "ER2" etc...



Property Value

A string representing the name of the instrument.





Additional Access Information
This property can be accessed without a null reference check in the OnBarUpdate() event handler. When the OnBarUpdate() event is triggered, there will always be an Instrument object. Should you wish to access this property elsewhere, check for null reference first. e.g. if (Instrument != null)