Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Checking real Position, working with market orders in fast markets

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

    Checking real Position, working with market orders in fast markets

    Hi Ninjas,

    I always used OnPositionUpdate to check the instance position as the most quick and reliable way to know it before submit any new order, however I realized that there's a delay, specially dangerous in fast markets that confuses me and I'd like to find a solution.

    What is the most reliable and fast way to check the real ultimate actual position, before submit any new reverse market order?
    is it through OnPositionUpdate ?
    is it through OnBarUpdate checking Position.MarketPosition ?
    is it checking individual order state ?

    Thanks a lot for your help
    Last edited by pstrusi; 11-09-2016, 04:14 PM.

    #2
    Hello,

    Thank you for the question.

    This would really depend on your logic, if your logic is in OnBarUpdate, you would could utilize OnBarUpdate and Position.MarketPosition.

    If you are waiting for the fill of an order before submitting a reversal, you could also check that the order has Filled and set a bool value from OnExecution as an example.

    Could you provide more detail on what is happening in fast markets currently? you noted that you are currently checking for the position to change before submitting an order. Would it be possible to use the Fill of the order instead to ensure the order has Filled prior to submitting the reversal?


    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    152 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    87 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    131 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    127 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    106 views
    0 likes
    Last Post CarlTrading  
    Working...
    X