Think the deal to be a modification of the position. The order, be it market, or pending, vanishes after it is executed, and the modification it produces to the position is called deal. In the MT4 Level I system, orders are executed or not. The "execution" word is better to understand MT4. However, MT5 will probably allow Level II trading. Meaning, you can post your own orders in the orderbook of the market, if you wish to buy at bid, or to sell at ask. The execution of an order is also called fill. This is where filling makes sense. If you're lucky at the moment, others will sell to you, filling totally or partially your order on the bid, or others will buy from you, filling totally or partially your order at the ask. Filling does not have too much sense in the Level I trading context, where you always have market actions, buying at the ask or selling at the bid. You were accustomed to have orders "filled" entirely on MT4, by paying the not only the spread, but also the dreadful cost of slippage. In a still Level I trading context on MT5, you will be able to have your orders partially executed, i.e. partially filled, if you desire a correct price (set deviation (MQL5 new name for slippage) to 0). This way, you will get rid of slippage, but you will have to manage partial executions of the orders.
Read more on http://mqlmagazine.com/leading-article/orders-positions-and-deals-part-i/ and http://mqlmagazine.com/mql-programming/orders-positions-and-deals-part-ii/
Think the deal to be a modification of the position. The order, be it market, or pending, vanishes after it is executed, and the modification it produces to the position is called deal. In the MT4 Level I system, orders are executed or not. The "execution" word is better to understand MT4. However, MT5 will probably allow Level II trading. Meaning, you can post your own orders in the orderbook of the market, if you wish to buy at bid, or to sell at ask. The execution of an order is also called fill. This is where filling makes sense. If you're lucky at the moment, others will sell to you, filling totally or partially your order on the bid, or others will buy from you, filling totally or partially your order at the ask. Filling does not have too much sense in the Level I trading context, where you always have market actions, buying at the ask or selling at the bid. You were accustomed to have orders "filled" entirely on MT4, by paying the not only the spread, but also the dreadful cost of slippage. In a still Level I trading context on MT5, you will be able to have your orders partially executed, i.e. partially filled, if you desire a correct price (set deviation (MQL5 new name for slippage) to 0). This way, you will get rid of slippage, but you will have to manage partial executions of the orders.
Read more on http://mqlmagazine.com/leading-article/orders-positions-and-deals-part-i/ and http://mqlmagazine.com/mql-programming/orders-positions-and-deals-part-ii/
in simple words , deal means "closed"
the opened position closed !
deal only appy on position, not (pending) orders
in simple words , deal means "closed"
the opened position closed !
deal only appy on position, not (pending) orders
more exactly, history deal is those position being modify(SL/TP) or closed
filled is use to describe the (pending) order being trigger.
In summary,
we use
PositionSelect : for opened position
OrderSelect: (pending) order
HistoryDealSelect : position SL/TP modified or position have been closed
HistoryOrderSelect : delected (pending) orders
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
in MT5 ,
what do "deal" and "fill" means ?
THANKS