![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
And then, a limiter is not a transaction, but only an application for a transaction.
Don't get fancy...
Don't get fancy...
TICK_FLAG_BUY - a tick is a result of a buy deal 32 0x20
-TICK_FLAG_SELL - a tick is a result of a sell deal 64 0x40
Give your explanation of the last two flags:
TICK_FLAG_BUY - a tick is a result of a buy deal 32 0x20
-TICK_FLAG_SELL - a tick is a result of a sell deal 64 0x40
So you also do not read what is written (I even highlighted the text in yellow)?
So you also don't read what is written (even highlighted the text in yellow)?
If someone bought, then buy flag, and if someone sold, then sell flag.)
This flag depends on who initiated the transaction: a buyer or a seller.
This flag depends on who initiated the transaction, the buyer or the seller.
If someone buys, it means a 'Buy' flag and if someone sells, it means a 'Sell' flag.)
If someone bought, it was a buy flag and if someone sold, it was a sell flag?)
Someone has bought at the current price (market order) and the nearest best limit sell order is executed. It's as simple as that. The buyer initiated the transaction.
How is the initiator determined? One wants to buy, the other wants to sell. Which one is the initiator?
One buys on the market, the other sells by limit order. The initiator is the market bid and the limiters satisfy it.
One buys at the market, the other sells by limit.