Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Playback OCO not working

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

    Playback OCO not working

    I've been having issues with my orders not filling correctly. Previously, everything functioned properly, but now, whenever I'm in a trade and my stop or profit target is reached, the remaining order doesn't get cancelled as it should.
    Attached Files

    #2
    Hello scrapsalll,

    On the orders tab of the Control Center are you seeing the same OCO ID on this order with another order?

    Are you able to reproduce using the UnmanagedOCOBracketExample_NT8​ and ProfitChaseStopTrailUnmanagedExample_NT8?



    Are you on the latest release of NinjaTrader 8.1.3.1?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Chelsea B,

      Yes, I've reproduced using the unmanaged OCO.

      No, I am not using the latest version. I'm still using 8.1.2.1.

      Below is using the Unmanaged OCO order. After getting filled.

      Click image for larger version  Name:	image.png Views:	0 Size:	28.1 KB ID:	1318645
      After: Order failing to exit correctly


      Click image for larger version  Name:	image.png Views:	0 Size:	28.6 KB ID:	1318646
      Dangling Order

      Click image for larger version  Name:	image.png Views:	0 Size:	26.1 KB ID:	1318647

      Comment


        #4
        Hello scrapsalll,

        Please update to the latest release and test once more using the UnmanagedOCOBracketExample.

        Updates to NinjaTrader will contain the latest security updates and bug fixes, as well as occasional new features and instruments.

        To update NinjaTrader
        • Shutdown all programs including NinjaTrader *important
        • Download NinjaTrader from the link below
          Click here to download NinjaTrader
        • Double click the downloaded file to execute it
        • Follow the on screen instructions
        • Restart NinjaTrader
        You can read about changes to this release in the release notes linked below.
        https://ninjatrader.com/support/help...ease_notes.htm

        Please let me know if the behavior still occurs with the latest release.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Hi Chelsea B,

          I've installed the latest version and I'm experiencing the same issue.

          I have a script that uses the ATM strategy, and it works. However, the Unmanaged OCO isn't working nor is the managed approach using SetProfitTarget() and SetStopLoss().

          Best,
          Jamal

          Comment


            #6
            Hello Jamal,

            I tested just to be sure there isn't something wrong with the strategy code and this did perform as expected.

            Below is a link to a video of the test.


            I suspect possibly the installation is corrupted.

            I would like you to generate a new environment folder and test again using the exact steps shown in the video.

            To create a clean temporary NinjaTrader folder:
            1. Shutdown NinjaTrader
            2. Rename (My) Documents\NinjaTrader 8\ to (My) Documents\NinjaTrader 8.original\
            3. Download the NinjaTrader installation package from the link below
            4. NinjaTrader - Download
            5. Run the repair from this (if the repair is unsuccessful, uninstall and then re-install NinjaTrader)
            ​Please let me know if after creating a clean environment folder if the behavior from the video is not what you experience.
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            87 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            128 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            65 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by cmoran13, 04-16-2026, 01:02 PM
            0 responses
            117 views
            0 likes
            Last Post cmoran13  
            Started by PaulMohn, 04-10-2026, 11:11 AM
            0 responses
            67 views
            0 likes
            Last Post PaulMohn  
            Working...
            X