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 CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      22 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      121 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      176 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      92 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      134 views
      0 likes
      Last Post cmoran13  
      Working...
      X