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

# Instruments

## Definition

A collection of **Instrument** objects currently used by a script.

## Property Value

An array of [Instrument](/developer/desktop-sdk/references/common/instrument) objects

## Syntax

`Instruments[]`

## Examples

```csharp
protected override void OnStateChange()
{
   if (State == State.DataLoaded)
   {
       // Print all instruments which have been loaded
       foreach (Instrument i in Instruments)
       {
           Print(i.FullName);
       }
   }
}
```