Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MT4_HOST | No | IP address of Windows machine running MT4 | 192.168.50.161 |
| MT4_PORT | No | Port number for HTTP bridge | 8080 |
| MT4_REPORTS_PATH | No | Directory path for EA report files | /tmp/mt4_reports |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_account_info | Get MetaTrader 4 account information |
| get_market_data | Get current market data for a symbol |
| place_order | Place a trading order in MetaTrader 4 |
| get_positions | Get all open positions |
| close_position | Close an open position |
| get_history | Get trading history |
| run_backtest | Run a backtest on an Expert Advisor |
| get_backtest_results | Get results from the last backtest |
| list_experts | List available Expert Advisors for backtesting |
| get_backtest_status | Get the current status of a running backtest |
| sync_ea | Upload EA file to MetaTrader 4 for compilation |
| compile_ea | Compile an EA on MetaTrader 4 and get compilation results |
| list_local_eas | List EAs in the local development folders |
| sync_ea_from_file | Sync an existing EA file to MetaTrader 4 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |