Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Apex - Rithmic Targets/Stop Orders Not Cancelling - Managed Approach.

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

    Apex - Rithmic Targets/Stop Orders Not Cancelling - Managed Approach.

    Hello Ninja staff,

    Just wondering if there is a know issue with running strategies using Apex-Rithmic accounts.
    Every once in a while, once a target or stop is hit, it will leave the other order live. It doesn't do it all of the time. All of the tags are ok. It works perfectly on Sim and Playback.
    This seems to just be an issue with Apex.
    I am using this example: https://ninjatrader.com/support/help...and_onexec.htm

    Other times it will turn the stop or target order yellow and I'm unable to cancel it out until I restart NT8. (I use the Close button to exit out and verify I am out of all positions at this time)

    It's hard to get a screenshot because it only does it sometimes and only while live trading. Is there a better way to handle orders for Apex so this doesn't happen?

    Any help would be appreciated!

    Thank you

    #2
    Hello TradingFutures,

    The sample that you have linked to can be used with most brokers besides rithmic based or IB based connections. If you are using a rithmic based apex connection you would need to see the samples on the following forum post instead. The order of events sent from the connection are at times out of order so different logic is required for those type of connections.

    Hello, I see in the documentation you have fixed: 15048 Added Adapter, Rithmic Updated Rithmic API to version 11.3.0.0 Can you elaborate on that please? Will OnOrderUpdate() OnExecutionUpdate() and OnPositionUpdate() be called in the expected order?

    Comment


      #3
      Thank you so much Jesse!

      I was not expecting a sample of exactly what I needed! I will update my code accordingly.


      I do have a couple follow up questions:

      1. Will this new sample also work for non IB/Rithmic accounts? or is it just specific for those using those accounts?


      2. Builder specific questions:

      This also means that using Exit() methods on strategy builder are not Rithmic friendly right?

      Would using the default SetStop() methods on builder work for Rithmic users or does that still cause an issue?

      Is there a way for strategies on Builder to work properly with Rithmic?

      Sorry for all the questions. Just want to make sure I understand before I start down making updates.

      Thank you!

      Comment


        #4
        Hello TradingFutures,

        That should work for other types of connections as well. That sample uses OnOrderUpdate to manage the strategies variables and only uses the values passed in from the override to dictate logic. That avoid the order variable being used which may or may not have the correct information based on the order of events.

        The builder is not affected by this, when you manually code a script and work with order objects and the OnOrderUpdate/OnExecutionUpdate overrides that is where the problem happens.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        39 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        124 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        64 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        41 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        46 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X