Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Add, Or statement

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

    Add, Or statement

    Using Ninja Strategy Wizard, how do I add an "and" statement so that when condition 1 AND condition 2 are true a signal results?

    Same question for "OR" statement when either condition is true?

    Thanks.

    #2
    Hello Trader Thor,

    The Strategy Wizard in NinjaTrader 7 is limited and is not able to add or (||) operators.

    If you need an or, you can use two different condition sets, and in the second condition set explicitly require the conditions in the first set to not be true.

    All conditions added to a condition set will use the and operator (&&). If you must have all conditions true, add all conditions to the same condition set.

    The Strategy Wizard is a good starting point for very simple strategies. Once you need more complicated logic or if you need to math, you would need to unlock the script and start adding code by hand.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Will this feature be available in Ninja 8?

      Comment


        #4
        Hello Trader Thor,

        In NinjaTrader 8, on a condition set you can specify that any of the conditions in that set be true, or you can specify that all conditions in that condition set are true. When set to 'any', this will use or's (||) between each condition in that set.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        23 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        13 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        8 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        10 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        16 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X