MetaTrader 5 / Libraries
Trade Classes in Python - CTade, CSymbol, CPositionInfo, etc. - library for MetaTrader 5
2498
The entire documentation about the files and methods inside can be found in this article >> https://www.mql5.com/en/articles/18208
Ignore the MQL5 based files. All the files can be found in a folder Trade classes Python.zip, below is their short description.
Filename & Path | Description & Usage |
|---|---|
Modules (libraries) | |
| Trade\AccountInfo.py | Contains the CAccountInfo class |
| Trade\DealInfo.py | Contains the CDealInfo class |
| Trade\HistoryOrderInfo.py | Contains the CHistoryOrderInfo class |
| Trade\OrderInfo.py | Contains the COrderInfo class |
| Trade\PositionInfo.py | Contains the CPositionInfo class |
| Trade\SymbolInfo.py | Contains the CSymbolInfo class |
| Trade\TerminalInfo.py | Contains the CTerminalInfo class |
| Trade\Trade.py | Contains the CTrade class |
Test files | |
| accountinfo_test.py | A script for testing methods offered by the CAccountInfo class |
| dealinfo_test.py | A script for testing methods offered by the CDealInfo class |
| error_description.py | Contains function to describe error and return codes to human-readable strings |
| historyorderinfo_test.py | A script for testing methods offfered by the CHistoryOrderInfo class |
| orderinfo_test.py | A script for testing methods offered by the COrderInfo class |
| positioninfo_test.py | A script for testing methods offered by the CPositionInfo class |
| symbolinfo_test.py | A script for testing methods offered by the CSymbolInfo class |
| terminalinfo_test.py | A script for testing methods offered by the CTerminal class |
| main.py | A script for testing the CTrade class, think of it as a final trading robot in Python |