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

Strategy with 2 data series

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

    Strategy with 2 data series

    Hey! I would be grateful if someone could give me a link to a topic that discusses writing a strategy with 2 data series. I need to write a simple script through the strategy builder when a strategy opens one position in instrument 1, if a position is opened in instrument 2. And closes the second series if the position in series 1 is closed ...

    As far as I can see at the moment, the strategy builder does not allow entering the condition "if account position" ...

    P.S. Don't want to unlock the script.

    #2
    Hello Aporshnev,

    Thanks for your post.

    The Strategy Builder can only work with the chart it is attached to regarding order submission. It is unaware of any other positions outside of any that it (the strategy) creates.

    You can add additional instruments data series in the Strategy Builder but you cannot place orders to the added data series in the Strategy Builder.
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by f.saeidi, Today, 11:02 AM
    0 responses
    1 view
    0 likes
    Last Post f.saeidi  
    Started by geotrades1, Today, 10:02 AM
    3 responses
    11 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by rajendrasubedi2023, Today, 09:50 AM
    3 responses
    15 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by lorem, Today, 09:18 AM
    2 responses
    11 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by geddyisodin, Today, 05:20 AM
    4 responses
    30 views
    0 likes
    Last Post geddyisodin  
    Working...
    X