Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strat Frozen

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

    #16
    It's working. Woohoo!

    Thanks again for all your help, Austin.

    Dave

    Comment


      #17
      Dave, great to hear you've got it figured out. As always, let us know if you have any other questions.
      AustinNinjaTrader Customer Service

      Comment


        #18
        Well, it WAS working but that might have just been luck. I just loaded it up and got the following in my output window:

        7/14/2010 12:00:00 PM Enter Long

        The order name Stop loss stop price is currently 1091.25
        The order name Stop loss stop price is currently 1091.25
        The order name Stop loss stop price is currently 1091.25
        The order name Profit target limit price is currently 1098.75
        The order name Profit target limit price is currently 1098.75
        The order name Profit target limit price is currently 1098.75
        7/14/2010 1:00:00 PM Cancelled pending exit order, since associated position is closed: Order='NT-00021/Sim101' Name='Profit target' State=Working Instrument='ES 09-10' Action=Sell Limit price=1098.75 Stop price=0 Quantity=1 Strategy='PP' Type=Limit Tif=Gtc Oco='NT-00012' Filled=0 Fill price=0 Token='f74eb12722ae4c23ba9c1ff8e62b0821' Gtd='12/1/2099 12:00:00 AM'
        The order name Profit target limit price is currently 1098.75
        The order name Profit target limit price is currently 1098.75
        Stop Loss Removed
        7/14/2010 1:00:00 PM Cancelled OCO paired order: BarsInProgress=0: Order='NT-00021/Sim101' Name='Profit target' State=Cancelled Instrument='ES 09-10' Action=Sell Limit price=1098.75 Stop price=0 Quantity=1 Strategy='PP' Type=Limit Tif=Gtc Oco='NT-00012' Filled=0 Fill price=0 Token='f74eb12722ae4c23ba9c1ff8e62b0821' Gtd='12/1/2099 12:00:00 AM'
        7/14/2010 2:00:00 PM Entered internal SetStopTarget() method: Type=Stop FromEntrySignal='PP' Mode=Ticks Value=10 Currency=0 Simulated=False
        7/14/2010 3:00:00 PM Entered internal SetStopTarget() method: Type=Stop FromEntrySignal='PP' Mode=Ticks Value=10 Currency=0 Simulated=False

        I'm guessing it didn't remove the target token and still thinks it's in a trade so maybe this doesn't have to do with PnL, especially since I just commented it out and still got the same message. Ugh. Happy to try something else, if anything comes to mind.

        Dave

        Comment


          #19
          Hello dsraider,

          Can you let us know which version of the platform you're using? Check with Help > About
          Ryan M.NinjaTrader Customer Service

          Comment


            #20
            Sure. It's Version 6.5.1000.16(Live).

            Comment


              #21
              Thanks for the reply.

              What settings do you have enabled under Tools > Options > Strategies > NinjaScript > On starting a real-time strategy?
              Attached Files
              Ryan M.NinjaTrader Customer Service

              Comment


                #22
                And here's mine...
                Attached Files

                Comment


                  #23
                  Thanks for letting us know. I was pursuing any possible settings / version change issues but it doesn't look like that's what's producing your results.

                  I took a brief look at your strategy and didn't see anything right away. You will have to simplify things until you can get it working right and then start adding complexity when you can verify that it works as you expect. I would suggest trying this in real time only so you can track things as they occur. Also, take a look at the areas of the code where you are calling StopStrategy or using return to stop strategy processing.
                  Ryan M.NinjaTrader Customer Service

                  Comment


                    #24
                    Will do. Thanks again to both of you for your help.

                    Keep your fingers crossed for me!

                    Dave

                    Comment


                      #25
                      Sure thing, dsraider. Thanks and good luck!
                      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
                      602 views
                      0 likes
                      Last Post Geovanny Suaza  
                      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                      0 responses
                      347 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by Mindset, 02-09-2026, 11:44 AM
                      0 responses
                      103 views
                      0 likes
                      Last Post Mindset
                      by Mindset
                       
                      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                      0 responses
                      560 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by RFrosty, 01-28-2026, 06:49 PM
                      0 responses
                      559 views
                      1 like
                      Last Post RFrosty
                      by RFrosty
                       
                      Working...
                      X