Get MetaTrader 5 environment info
get_environment_infoResolves the MetaTrader 5 install and MQL5 data folder. Call first to locate paths, and again with installDirHint if results are ambiguous or error.
Instructions
Resolves (or re-resolves) the MetaEditor/MetaTrader 5 installation and its MQL5 data folder. Call this first, and again if you get an 'ambiguous' or 'error' result, passing installDirHint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| installDirHint | No | Absolute path to the MT5 install dir, e.g. C:\Program Files\MetaTrader 5 |