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 NullPointStrategies, Today, 05:17 AM
    0 responses
    52 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
    70 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