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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        59 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        143 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        161 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        97 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        278 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X