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 lorem, Today, 09:18 AM
      0 responses
      2 views
      0 likes
      Last Post lorem
      by lorem
       
      Started by hazylizard, Today, 08:38 AM
      4 responses
      11 views
      0 likes
      Last Post hazylizard  
      Started by geddyisodin, Today, 05:20 AM
      2 responses
      20 views
      0 likes
      Last Post geddyisodin  
      Started by Max238, Today, 01:28 AM
      5 responses
      47 views
      0 likes
      Last Post Max238
      by Max238
       
      Started by giulyko00, Yesterday, 12:03 PM
      3 responses
      13 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Working...
      X