Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy

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

    Strategy

    How do I check whether an unfilled order exits?

    #2
    Hello malcolm,

    Thank you for the question.

    Generally to know this you would track the orders in your logic. Are you manually coding this strategy or using the builder?

    I look forward to being of further assistance.

    Comment


      #3
      I am manually coding this and i need to check where an order has bben entered

      Comment


        #4
        Hello malcolm,

        Thanks for that detail.

        In manual coding you can observe the events the orders produce. There is a sample that covers this concept and shows how to use orders in your logic here: https://ninjatrader.com/support/help...and_onexec.htm

        The main take away from this sample would be how it uses OnExecutionUpdate and OnOrderUpdate to observe your orders. OnExecutionUpdate specifically can be used to watch for your order to exit to trigger logic or reset variables. You can use OnOrderUpdate to watch for orders that get submitted and become active to store them to variables. Those variables can be used to access the values of your orders.


        I look forward to being of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        93 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        138 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        123 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        73 views
        0 likes
        Last Post PaulMohn  
        Working...
        X