OrderAge - How to find out the age of an order (in bars)?
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.
THANK YOU!
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...