This forum is in read-only mode now. You may discuss your questions on forums of MQL4.community and MQL5.community
How to convert this Mql4 code to mql5 code? thanks!Back to topics list |
|
codeidea
2009.10.28 08:59
bool Has_Robot_Orders() { // monitor all int buys = 0, sells = 0; for (int i = 0; i < OrdersTotal(); i++) { if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES) == false) break; if (OrderSymbol() == Symbol() && IsRobotOrder(OrderMagicNumber())) { if (OrderType() == OP_BUY) return(true); if (OrderType() == OP_SELL) return(true); } } return(false); } |
Download MetaTrader 5 (450 Kb, web installer) — a new terminal for financial markets
