Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

exit if A or B whichever comes first

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

    exit if A or B whichever comes first

    I wish to exit a trade if one condition or another occurs, which ever comes first. How can I create this instruction in the strategy wizard?

    #2
    Just setup both exit conditions in the wizard and then issue your Exit commands as resulting actions, if condition 1 took you flat, the Exit action resulting from condition 2 would be just ignored by NT then.

    Comment


      #3
      Thank you. How do I issue exit commands as resulting actions?

      Comment


        #4


        On the conditions and actions page of the wizard, you can enter your condition to trigger an exit in upper field and then issue the ExitLong / ExitShort commands as resulting action in the lower, 'DoTheFollowing' field.

        Comment


          #5
          Should I put conditions A and B in one set in the upper field with the ExitLong or ExitShort in the lower field or should I put A and B in separate sets with their respective exits below?

          Comment


            #6
            Hello TurnSignalJim,

            If these are two separate entry conditions, then A & B should be in their own set. Only if you wanted to enter if BOTH A & B are true would you put them in the same set.
            Ryan M.NinjaTrader Customer Service

            Comment


              #7
              Let me change topics for a moment. How would I use a proprietary indicator with SuperDom? I would like to create an ATM strategy using the indicator to enter and exit trades based on the indicator's identification of events. Is this possible?

              Comment


                #8
                Hello TurnSignalJim,

                Unfortunately this is not supported. The Superdom is used for discrectionary entries and the management of targets and stop losses with ATM. ATM can be used to adjust your stop loss value, but only after a profit trigger expressed in ticks (not an indicator).

                If you would like to base trade conditions on an indicator value then this requires a NinjaScript automated strategy.
                Ryan M.NinjaTrader Customer Service

                Comment


                  #9
                  Thanks Ryan. Can I use third party indicators to create a custom ATM strategy in the Chart Trader?

                  Comment


                    #10
                    ATM strategies cannot use 3rd party indicators.

                    Stop loss adjustments can only be expressed in number of ticks, and the stop loss price is relative to either the entry price (for breakeven stop strategies) or the current traded price (for autotrail).

                    See here for more information on ATM stop strategies.

                    AutoBreakeven
                    AutoTrail
                    Ryan M.NinjaTrader Customer Service

                    Comment


                      #11
                      ok tks.
                      Now back to the Strategy Wiz. Can you explain the relationship between "conditions and actions" and "stops and targets"? I create an entry in the "conditions and actions" but the "stops and targets" dont seem to get me out as I expected.

                      Comment


                        #12
                        Let us know what you're seeing when using the stops and targets in the strategy wizard.

                        This page offers an overview of the different strategy wizard screens.

                        The Conditions and Actions Screen
                        This screen allows you to set conditions and subsequent actions that control the flow of your strategy.


                        Conditions - Take the speficied action when true
                        Actions - Execute an action (submit orders, draw objects on the chart etc...) based on its parent condition evaluating to true


                        Via the wizard, you can have up to ten different condition sets with related actions. If you require more than ten condition sets then you should self code your strategy via the NinjaScript Editor. Conditions are created using the Condition Builder. Actions are specified by the Strategy Action window.


                        The Stops and Targets Screen
                        This screen allows you to set stop loss, trail stop and profit target orders that are automatically submitted and managed once your strategy opens a position.
                        Ryan M.NinjaTrader Customer Service

                        Comment


                          #13
                          Ryan,
                          I set up an entry condition and action for both short and long and then set up a stop and a limit in the stops and limits section. The strategy enters a trade each day and stays in the trade until close. Is there somerthing I have to do to get the stategy to see the stops and limits?

                          Comment


                            #14
                            TurnSignalJim,

                            Can you please provide a screenshot of how exactly you have it setup? Any messages in your Control Center logs?
                            Josh P.NinjaTrader Customer Service

                            Comment


                              #15
                              I have an entry strategy set up in the wizard with profit target and stop loss configured with ticks and [MyInput0]. I have been using the analyzer to optimize with 20;700;1 in the [MyInput0] parameter window. I am getting the top 10 results but I'm not sure what this test is optimizing. Can you pls clarify?

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              647 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              368 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
                              571 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              573 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X