Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How many Bars since position Pending

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

    How many Bars since position Pending

    Hi
    If my strategy condition met for entry, but I do a LIMIT order....
    1) How to see how many bars has past since the pending order was entered
    2) Test status of order (eg pending)

    #2
    Hello,

    This would require storing your own counter variable you would start at the call of EnterLongLimit() and then you would increment it by 1 on each OnBarUpdate().

    Also, for reading information on the tatus of the order you would need to use the following: This gets into some more advanced programming however.



    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment


      #3
      thanks for the info

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      111 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      156 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      76 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      125 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      79 views
      0 likes
      Last Post PaulMohn  
      Working...
      X