Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Avoid adding to a position

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

    Avoid adding to a position

    Hello, Good Day to all,

    I'm trying to develop a strategy that has more than one option for opening a position ("OR" condition). I couldn't find this option in the Strategy Wizard, so the solution I cam across was to insert instructions on a separate "set" tab.

    However I now find that NT is adding to a position when the secondary condition also becomes true. I want to restrict it to opening more than one position in the same instrument.

    How do I fix this problem? Any way of adding a "OR" condition or to restrict more than one position on the same instrument?

    Thank you.

    Yours
    Eduardo

    #2
    Hello Eduardo,

    Thank you for your note.

    You would not be able to use OR in the Strategy Wizard and would only be available by unlocking the code and manually programming this.

    You can use the User Defined variables to set when the first conditions it true to set a value and then test that value in the next set so that it does not continue one and vice versa.
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    648 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    369 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    572 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    574 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X