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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    67 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    36 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    59 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    53 views
    0 likes
    Last Post CarlTrading  
    Working...
    X