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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    52 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    142 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    160 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    96 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    276 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X