Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to make a High Order Fill Resolution with a Multi-Series(& Instruments) Strategy?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to make a High Order Fill Resolution with a Multi-Series(& Instruments) Strategy?

    Dear all,

    I would like to know how to use the High Order Fill Resolution (1 Minute or 1 Tick) in Back-Testing with a Multi-Series & Multi-Instruments Strategy ?

    The reason is to make the Entry price more accurate at the intra-bar and not waiting until the close of the bar.

    Example Template where the trading Time-Frame is 35 minutes (The first data series) :
    Code:
    NinjaTrader.Cbi.InstrumentList [B]list[/B] = NinjaTrader.Cbi.InstrumentList.DbGet("[B]Instruments_List[/B]");
    
    protected override void OnStateChange()
    {[INDENT]if (State == State.SetDefaults)
    {[/INDENT][INDENT=2]//
    //
    [B]OrderFillResolution = OrderFillResolution.High;[/B]
    //
    //[/INDENT][INDENT]}
    else if (State == State.Configure)
    {[/INDENT][INDENT=2]if ([B]list [/B]!= null)
    {[/INDENT][INDENT=3]
    foreach (Instrument [B]i[/B] in [B]list.Instruments[/B])
    {[/INDENT][INDENT=4]AddDataSeries([B]i[/B].FullName,BarsPeriodType.Minute, 35);
    AddDataSeries([B]i[/B].FullName,BarsPeriodType.Minute, 40);
    AddDataSeries([B]i[/B].FullName,BarsPeriodType.Minute, 45);
    AddDataSeries([B]i[/B].FullName,BarsPeriodType.Minute, 50);[/INDENT][INDENT=3]}[/INDENT][INDENT=2]
    }[/INDENT][INDENT]
    }[/INDENT]
     }
    Regards,

    #2
    Hello PrQuantumH,

    The fill resolution setting is for single instrument strategies. If you wanted to do the same general task you would need to add a 1 tick secondary series to your script using AddDataSeries and then use that series for submitting orders. You can find a sample of that concept here:



    In the analyzer you would then select the standard fill resolution setting as your strategy is programmed to do that task instead.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    39 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    124 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    64 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    41 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X