Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to achieve a negative result

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

    How to achieve a negative result

    Hi - I have a set of conditions, which, if they are valid, should result in the strategy taking NO action - and cancel any other conditional results should they be valid.

    The Wizard is of course set up to achieve positive results, so I would guess that some special coding would be needed to achieve a negative.

    Could you kindly tell me how to proceed with this.

    Much obliged.

    #2
    Hello arbuthnot,

    You could look into this sample for halting your strategy after defined conditions have taken place.


    "Do nothing" is what the strategy would do if there were no conditionals so you have to provide it something to do.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thanks very much, Ryan. I've looked at the strategies and the chances are they contain the commands I would need. Just looking thru them has greatly helped my coding skills - which are still quite primitive!

      Your help is much appreciated.

      Comment


        #4
        Glad to hear it. Best of luck working on your strategy and please let us know if you have any further questions.
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

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