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 charlesugo_1, 05-26-2026, 05:03 PM
                      0 responses
                      60 views
                      0 likes
                      Last Post charlesugo_1  
                      Started by DannyP96, 05-18-2026, 02:38 PM
                      1 response
                      147 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
                      284 views
                      0 likes
                      Last Post Hwop38
                      by Hwop38
                       
                      Working...
                      X