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

# All

## Definition

A collection of Account objects

## Property Value

A Collection of Account objects

## Syntax

`Accounts.All`

## Examples

```csharp
protected override void OnStateChange()
{
    if (State == State.DataLoaded)
    {
        foreach (Account sampleAccount in Account.All)
        Print(String.Format("The account {0} has a {1} unit FX lotsize set", sampleAccount.Name, sampleAccount.ForexLotSize));
    }
}
```