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...
int theBarOfTheOrder = iBarShift(Symbol(), 0, OrderOpenTime());
That will get you the bar in which the order was on, for the current time frame.