Please help!!
prweza:
Please help!!
Please help!!
int order_type(const int ticket) { if(OrderSelect(ticket, SELECT_BY_TICKET)) return OrderType(); return -1 } { if(order_type(LastOpenTicket()) == OP_BUY) ... }
nicholi shen:
Thanks nicholi, it works

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
I got this function that selects the latest open order .Now I want to determine whether this order is a buy or sell, how do i proceed from here?
Will this work?
if LastOpenTicket() == OP_BUY
)
the Do this......
)
My question is , will the programme be able to tell if the last open ticket is a buy or sell or do i need further code?