OrderAge - How to find out the age of an order (in bars)?

To add comments, please log in or register
schnappi
248
schnappi  

Has anyone figured out how to define the exact age of an order - in bars?

Period() must be included as well as OrderOpenTime() and TimeCurrent() ... aaand yes: it would be perfect if the actual opening hours of the market would be included.

I'm playing around with this for hours now and I'm close to giving up...

Justin Abene
203
Justin Abene  
OrderSelect(theTicket, SELECT_BY_TICKET);
int theBarOfTheOrder = iBarShift(Symbol(), 0, OrderOpenTime());

That will get you the bar in which the order was on, for the current time frame.

schnappi
248
schnappi  

THANK YOU!

To add comments, please log in or register