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

# MergePolicy

## Definition

Indicates the Merge Policy configured for the **Master Instrument properties**.

## Syntax

`Bars.Instrument.MasterInstrument.MergePolicy`

## Property Value

Represents the MergePolicy that is configured for the current master instrument.

Possible values are:

| Value                    | Description                                                           |
| ------------------------ | --------------------------------------------------------------------- |
| **DoNotMerge**           | No merge policy is applied                                            |
| **MergeBackAdjusted**    | Merge policy is applied between contracts along with rollover offsets |
| **MergeNonBackAdjusted** | Merge policy is applied between contracts without offsets             |
| **UseGlobalSettings**    | Uses the value configured from Tools -> Options -> Market Data        |

## Examples

```csharp
//Prints a warning, indicating what merge policy is in use if not using global settings**
if (Bars.Instrument.MasterInstrument.MergePolicy != MergePolicy.UseGlobalSettings)
{
 Print("Warning: Instrument has merge policy of " + Bars.Instrument.MasterInstrument.MergePolicy);
}
```