OrderFillResolution

View as Markdown

Definition

Determines how strategy orders are filled during historical states.

Please see Understanding Historical Fill Processing for general information on historical fill processing.

Property Value

An enum value that determines how the strategy orders are filled. Default value is set to OrderFillResolution.Standard. Possible values are:

  • OrderFillResolution.Standard - Faster - Uses the existing bar type and interval that you are running the backtest on to fill your orders.

  • OrderFillResolution.High - More granular - Allows you to set a secondary bar series to be used as the price data to fill your orders. (See also OrderFillResolutionType and OrderFillResolutionValue)

Syntax

OrderFillResolution

This property should ONLY be set from the OnStateChange() method during State.SetDefaults

Examples

1protected override void OnStateChange()
2{
3 if (State == State.SetDefaults)
4 {
5 Name = "ExampleStrategy";
6 OrderFillResolution = OrderFillResolution.Standard;
7 }
8}