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 burtoninlondon, Today, 12:38 AM
    0 responses
    5 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    13 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Yesterday, 07:51 PM
    0 responses
    13 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,982 views
    3 likes
    Last Post jhudas88  
    Working...
    X