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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        68 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        37 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        62 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X