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

# StartBehavior

## Definition

Sets the start behavior of the strategy. See [Syncing Account Positions](https://ninjatrader.com/support/helpguides/nt8/?syncing_account_positions.htm) for more information.

In order to use **AdoptAccountPosition** you will need to first set [**IsAdoptAccountPositionAware**](/developer/desktop-sdk/references/strategy/isadoptaccountpositionaware) to true. Please be sure that your strategy is specifically programmed in a manner that can accommodate account positions before using this mode.

## Property Value

An enum value that determines how the strategy behaves; Default value is set to **StartBehavior.WaitUntilFlat**. Possible values are:

* **StartBehavior.AdoptAccountPosition**
* **StartBehavior.ImmediatelySubmit**
* **StartBehavior.ImmediatelySubmitSynchronizeAccount**
* **StartBehavior.WaitUntilFlat**
* **StartBehavior.WaitUntilFlatSynchronizeAccount**

## Syntax

`StartBehavior`

## Examples

```csharp
protected override void OnStateChange()
{
     if (State == State.SetDefaults)
     {
         StartBehavior = StartBehavior.WaitUntilFlat;
     }
}
```