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!
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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...