• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order Fill Process & Timing

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

    Order Fill Process & Timing

    I have a strategy that will get in a position, then reverse directions if the market moves against it. I had a situation occur today where the strategy entered long, the market moved against the position and the strategy sold the position. The market moved so fast that the sell order was not complete before it entered a sell short position. The initial position was still active and the trade did not take place because the sell short would have placed the account above the buying power limit.

    Is there a setting I am missing to prevent this or is there a way to have the strategy pause while it waits for confirmation of the fill so it can avoid this in the future?

    #2
    Hello cpabiz20k,

    Thank you for your post.

    OnExecutionUpdate can be used to wait for an order to fill/cancel/change. Below is a pertinent reference sample that waits for the entry order to fill in OnExecutionUpdate, and after it does a protective stop and profit target order are submitted:

    https://ninjatrader.com/support/help...and_onexec.htm

    If you have any questions on this material, please let me know.
    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by faisamtrader, Yesterday, 10:03 PM
    0 responses
    3 views
    0 likes
    Last Post faisamtrader  
    Started by johnnybegoode, Yesterday, 08:11 PM
    0 responses
    2 views
    0 likes
    Last Post johnnybegoode  
    Started by Bionian, Yesterday, 02:47 PM
    2 responses
    21 views
    0 likes
    Last Post Bionian
    by Bionian
     
    Started by RickB60, Yesterday, 01:55 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by filopearson, Yesterday, 01:18 PM
    6 responses
    11 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X