Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi Instrument trading from the same strategy

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

    Multi Instrument trading from the same strategy

    I'm trading a strategy on about 20 different securities. Since I find it cumbersome to start the strategy on each security (and also PnL aggregation is not fun), I was thinking to use Add() to put all securities in the same strategy and then trade them altogether (getting a total PnL, I assume).
    Am I correct that I need to:
    - run the same conditions for each security, e.g.
    if Closes[0][0] > Closes[1][0]
    if Closes[0][1] > Closes[1][1]
    if Closes[0][2] > Closes[1][2]

    etc

    - run the Entry / Exit orders for each security, e.g.
    EnterLong(0, "buy sec1", ...)
    EnterLong(1, "buy sec2", ...)
    EnterLong(2, "buy sec3", ...)

    Just need to make sure before starting such an intense copy & paste session!

    Thank you

    #2
    Stefy, please check into this link here for creating a MultiSeries strategy -



    For the Closes notation, it's the other way round -

    Code:
     
    Closes[int barSeriesIndex][int barsAgo]
    NinjaTrader 7 would also make this multiple strategy deployment process more convenient by adding features to save applied strategy with settings and restarting those then on one click -

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    656 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    371 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    574 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    579 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X