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

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.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by zstheorist, Today, 07:52 PM
    0 responses
    3 views
    0 likes
    Last Post zstheorist  
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    149 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Started by mattbsea, Today, 05:44 PM
    0 responses
    5 views
    0 likes
    Last Post mattbsea  
    Started by RideMe, 04-07-2024, 04:54 PM
    6 responses
    33 views
    0 likes
    Last Post RideMe
    by RideMe
     
    Started by tkaboris, Today, 05:13 PM
    0 responses
    5 views
    0 likes
    Last Post tkaboris  
    Working...
    X