Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trail stop not being placed

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

    Trail stop not being placed

    Enclosed is a picture of the OutPut window (traceOrders) and the Orders tab in Control Center.. S1 is ok (I have my setstoploss in the initialize section) but Short-2 ,, the output window seems to say there is a trailstop for "Short-2" but the order never shows up in the Control Center
    Attached Files

    #2
    Please check the Control Center log for any messages relating to that trail stop.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Josh View Post
      Please check the Control Center log for any messages relating to that trail stop.
      Dont see the trail stop mentioned
      Attached Files

      Comment


        #4
        If you submit a stop loss and a trail stop it won't work. Are you doing this sequence of events?
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Josh View Post
          If you submit a stop loss and a trail stop it won't work. Are you doing this sequence of events?
          Here is the code The first postions have a SetStopLoss and they are referenced.. The second position is the trailing stop,, I can use these both if they reference different positions, cant I?

          // profit target first position
          SetProfitTarget("S1", CalculationMode.Ticks, ProfitTarget1);
          SetProfitTarget(
          "L1", CalculationMode.Ticks, ProfitTarget1);
          //fixed stop first position
          SetStopLoss("L1", CalculationMode.Ticks, maxRisk, false);
          SetStopLoss(
          "S1", CalculationMode.Ticks, maxRisk, false);

          /// trailing stop second position
          SetTrailStop("Short-2", CalculationMode.Price, High[2], false);
          SetTrailStop("L2", CalculationMode.Price, Low[2], false);

          Comment


            #6
            Different positions should work. Can you please try setting your strategy's order handling to PerEntryExecution. See if that helps.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Originally posted by NinjaTrader_Josh View Post
              Different positions should work. Can you please try setting your strategy's order handling to PerEntryExecution. See if that helps.
              Guess I dont know how to use PerEntryExecution.

              Do you mean EntryHandling.UniqueEntries ?

              UniqueEntries did not help, still no trailing stop..

              My code was using CalculationMode.ticks,, and ticks worked fine. Just swapping to price broke it.

              SetTrailStop("Short-2", CalculationMode.Ticks, trailStop, false);
              //SetTrailStop("Short-2", CalculationMode.Price, High[2], false);

              Comment


                #8
                I was referring to Stop & Target Handling. Try switching that to PerEntryExecution.

                If ticks mode was working there is no need to change it to price.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  Originally posted by NinjaTrader_Josh View Post
                  I was referring to Stop & Target Handling. Try switching that to PerEntryExecution.

                  If ticks mode was working there is no need to change it to price.
                  Well Josh is that the holy grail to use tick mode instead of price, txs for the trading tips?? lol
                  , I want my stop to move as an amount gauged by the 3rd bar back, which I trade manually,, should be no problem for a computer, right?
                  ... Found the PerEntryExecution,, was already checked
                  Last edited by gg80108; 06-16-2009, 04:58 PM.

                  Comment


                    #10
                    gg80108,

                    I am not sure what you mean. You want to use whichever mode submits the correct price for your order. CalculationMode.Price does not work for Trailing stops.
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #11
                      Originally posted by NinjaTrader_Josh View Post
                      gg80108,

                      I am not sure what you mean. You want to use whichever mode submits the correct price for your order. CalculationMode.Price does not work for Trailing stops.
                      Here is what the reference says for settrailstop. Guess this needs to be corrected????
                      mode
                      CalculationMode.Percent (0.01 = 1%)
                      CalculationMode.Price
                      CalculationMode.Ticks
                      value
                      The trail stop value

                      Comment


                        #12
                        That is correct.
                        Josh P.NinjaTrader Customer Service

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                        0 responses
                        649 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
                        576 views
                        1 like
                        Last Post RFrosty
                        by RFrosty
                         
                        Working...
                        X