KHALID ABES / Publications
Codes
Doji Candle Detection for MetaTrader 4
Doji candle histogram detector with alert & email notfication
Forum
MQL4: Last Closed Order Checking condition
In order to check the last order Type if LONG or CHORT For Example : Long if Last Closed is Short int LastOrderType() { for ( int i= OrdersTotal ()- 1 ;i>= 0 ;i--) { bool select= OrderSelect (i,SELECT_BY_POS,MODE_TRADES); if (OrderSymbol()== Symbol ()&&OrderMagicNumber()==MagicNumber) {