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 CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      26 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      26 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-25-2026, 09:53 PM
      0 responses
      30 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 03-25-2026, 09:51 PM
      0 responses
      18 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 03-23-2026, 11:13 AM
      0 responses
      29 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X