Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Zen Fire overfill on strategy on reversals

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

    Zen Fire overfill on strategy on reversals

    Hi there:

    I have a strategy and it works fine with other connections (both real money live and demos).

    I have a Mirus Zen Fire live money account. Every time it wants to reverse, it NT throws a overfill detection and pulls all positions, cancels orders, and disables the strategy.

    For normal entry it works as expected.

    Please let me know how to fix.

    Thanks,

    Greg

    #2
    Hello,

    You would need to look into and debug what exact order / orderstatus sequence experienced leads to the overfill and strategy termination - generally an overfill is categorized as when an order returns a "Filled" or "PartFilled" state after the order was already marked for cancellation.

    The cancel request could have been induced by an explicit CancelOrder() call, from more implicit cancellations like those that occur when another order sharing the same OCO ID is filled, or from things like order expirations.

    So if you sent for example a close order for a position where you had a close target limit also working, you can easily run into this scenario - a better approach would then be modifying the limit exit in this case to take you flat instead of sending the 'double' order in.

    Please let me know if I can be of further assistance.
    LanceNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by elirion, Today, 09:32 PM
    0 responses
    2 views
    0 likes
    Last Post elirion
    by elirion
     
    Started by cre8able, Today, 09:15 PM
    1 response
    5 views
    0 likes
    Last Post bltdavid  
    Started by cummish, Today, 08:43 PM
    0 responses
    12 views
    0 likes
    Last Post cummish
    by cummish
     
    Started by Option Whisperer, Today, 07:58 PM
    4 responses
    21 views
    0 likes
    Last Post Option Whisperer  
    Started by ETFVoyageur, 05-07-2024, 07:05 PM
    13 responses
    87 views
    0 likes
    Last Post ETFVoyageur  
    Working...
    X