Hey traders! If you're looking to get a grip on your positions in MetaTrader 5, then you need to check out the ListPositions function. This handy tool is a game changer when it comes to managing your trades.
Here’s a quick rundown of what you can display on your screen:
- All positions across different symbols;
- Positions for the symbol you’re currently trading;
- Positions sorted by magic numbers;
- Positions tied to a specific magic number.
ListPositions gives you a clear visual overview of how your positions are organized in the terminal. Here’s an example of the output format:
2017.03.27 17:38:40.858 ListPositions (USDJPY,H1) 2 | USDJPY | 140795995 | 2017.03.27 17:32:40 | POSITION_TYPE_SELL | 0.02 | 110.33500000 2017.03.27 17:38:40.889 ListPositions (USDJPY,H1) 1 | EURUSD | 140795819 | 2017.03.27 17:31:49 | POSITION_TYPE_BUY | 0.07 | 1.08833000 2017.03.27 17:38:40.889 ListPositions (USDJPY,H1) 0 | USDCAD | 140795790 | 2017.03.27 17:31:45 | POSITION_TYPE_BUY | 0.07 | 1.33933000
With ListPositions, you can easily keep tabs on your active trades and make informed decisions. Happy trading!
Comments 0