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.

    Comment


      #3
      thanks for the info

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by f.saeidi, Today, 12:14 PM
      4 responses
      11 views
      0 likes
      Last Post f.saeidi  
      Started by Russ Moreland, Today, 12:54 PM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Erick  
      Started by philmg, Today, 12:55 PM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_ChristopherJ  
      Started by TradeForge, 04-19-2024, 02:09 AM
      2 responses
      32 views
      0 likes
      Last Post TradeForge  
      Started by aprilfool, 12-03-2022, 03:01 PM
      3 responses
      329 views
      0 likes
      Last Post NinjaTrader_Adrian  
      Working...
      X