Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 -

    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by sdauteuil, 09-23-2021, 10:16 AM
    4 responses
    1,208 views
    0 likes
    Last Post jacobpescaia44  
    Started by agclub, 04-21-2024, 08:57 PM
    5 responses
    34 views
    0 likes
    Last Post agclub
    by agclub
     
    Started by ESHunter, Yesterday, 08:06 PM
    2 responses
    18 views
    0 likes
    Last Post ESHunter  
    Started by ETFVoyageur, 05-07-2024, 07:05 PM
    19 responses
    150 views
    0 likes
    Last Post ETFVoyageur  
    Started by ETFVoyageur, 05-11-2024, 10:13 PM
    3 responses
    26 views
    0 likes
    Last Post ETFVoyageur  
    Working...
    X