Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Getting High Order Fill resolution error message

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

    Getting High Order Fill resolution error message

    Hi i have a strategy that is using tickdata because of cumulative delta but closes on bar clos. I am getting this message. how can i fix it? so i wont show up?

    protected override void OnBarUpdate()
    {
    if (CurrentBar < FastEMAPeriod || CurrentBar < SlowEMAPeriod || BarsInProgress != 0)
    return;
    if (CurrentBar < Math.Max(BarsRequiredToTrade, BarsBefore + 1))
    return;
    if (CurrentBars[0] < 2) //Need more than 2 bars to trade
    {
    return;
    }
    if (BarsInProgress == 2) return;

    and

    else if (State == State.Configure)
    {
    Calculate = Calculate.OnBarClose; // OnBarClose OnEachTick
    AddDataSeries(Data.BarsPeriodType.Tick, 1);
    AddDataSeries(InstrumName, new BarsPeriod { BarsPeriodType = BarsPeriodType.Day, Value = 1 }, "CME US Index Futures RTH", false);
    }

    ​​​Click image for larger version

Name:	image.png
Views:	146
Size:	21.0 KB
ID:	1239838

    #2
    Hello tkaboris,

    Thank you for your note.

    Since your strategy uses AddDataSeries, it is a multi-series strategy that has to use OrderFillResolution.Standard. I suggest checking in State.SetDefaults to see if you have set OrderFillResolution.High, and if so, you may remove that line of your script so your strategy uses the default value of OrderFillResoltuion.Standard:


    Otherwise, if you have a strategy template that you are using, you will want to change the dropdown menu for Order fill resolution to Standard and re-save the template. Here is a screenshot of what I am referring to:
    World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.


    As for the note in the message that says "For multi-series strategies, please program directly into your strategy the more granular resolution you would like to simulate order fills with." you may review the following reference sample that demonstrates backtesting NinjaScript strategies with an intrabar granularity:


    Please let me know if I may be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    45 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    21 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    31 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X