Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

ListPositions - MetaTrader 5 Expert | MT5 EA Download - MetaTrader 5 Resources

author EAcpu | 3 reads | 0 comments |

List of all positions. Example using CPositionInfo.

The following content can be displayed on the screen:

It provides a visual view of the storage sequence of bins in the terminal. Output format example:

 2017.03 . No. 17, 27:38 : 40.858 Position List (USD JPY, H1) 2 | USD JPY | 140795995 | 2017.03 . 27:32:40 | POSITION_TYPE_SELL | 0.02 | 110.33500000
2017.03 . 27 No. 17 : 38 : 40.889 Position List (USD JPY, H1) 1 | EURUSD | 140795819 | 2017.03 . 27:31:49 | POSITION_TYPE_BUY | 0.07 | 1.08833000
2017.03 . 27 17:38 : 40.889 Position List ( USD JPY, H1) 0 | USD/CAD | 140795790 | 2017.03 . 27 No. 17:31:45 | POSITION_TYPE_BUY | 0.07 | 1.33933000
2017.03 . 27 No. 17 : 38 : 40.889 Position List (USD JPY, H1)



Attachment download

📎 listpositions.mq5 (7.03 KB)

Source: MQL5 #17987

Verification code Refresh