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:	145
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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    54 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    72 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X