Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

"Panic" error: Backtest with multiple dataseries

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

    "Panic" error: Backtest with multiple dataseries

    Hi,

    when trying to start a backtest exectued on 5 minute bars (selected in Backtest properties editor) with one additional dataseries (1 week) and order fill reso = high (1 minute) NT gives an error:

    (hopefully correctly translated from german)

    "Panic: Choice of resolution for order execution is only available for stratgies with one data series. For stratgies with multiple data series please implemnt directly into the strategy, on which data series oder executions should be simulated."


    In if(State.Configure) I put AddDataSeries(BarsPeriodType.Week, 1);
    In OnBarUpdate I put EnterShort(0, quantity, @"ShortEntry");

    What is missing ?

    #2
    Hello Derjan,

    Thank you for your reply.

    High Order Fill Resolution is intended for use with single data series scripts only and will not function with a multi-series script. Basically, it's for use by people who didn't necessarily code the strategy themselves but need it to run at a more granular resolution.

    If it's a multi series script and you wish to calculate or enter based on that shorter 1 minute time frame, you would need to add a 1 minute data series directly to your script, and then submit your orders when that series is processing in OnBarUpdate.

    Here's an example that shows how you can enter on one time frame and exit on another: https://ninjatrader.com/support/help..._frame_and.htm

    Please let us know if we may be of further assistance to you.

    Comment

    Latest Posts

    Collapse

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