Please learn how MT5 works.
https://www.mql5.com/en/articles/211
![Orders, Positions and Deals in MetaTrader 5 Orders, Positions and Deals in MetaTrader 5](https://c.mql5.com/36/7/orders-positions-and-deals-in-metatrader.png)
Orders, Positions and Deals in MetaTrader 5
- 2011.02.01
- MetaQuotes Software Corp.
- www.mql5.com
Creating a robust trading robot cannot be done without an understanding of the mechanisms of the MetaTrader 5 trading system. The client terminal receives the information about the positions, orders, and deals from the trading server. To handle this data properly using the MQL5, it's necessary to have a good understanding of the interaction between the MQL5-program and the client terminal.
![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
Hi,
I can't have more than one open position at a time in MetaTrader 5. Every time a position is opened previous position is closed instantly.
Even in this simple code
After 5 ticks I should have 4 buy positions, instead I have one open and 3 closed positions.
What's wrong with Meta Trader?