feat: add get_active_account and 8 new utility tools

High Priority Tools:
- check_symbol_data_status: validate symbol history data availability
- get_backtest_history: list all backtest results for EA/symbol
- compare_backtests: side-by-side comparison of multiple backtests

Medium Priority Tools:
- init_project: scaffold new MQL5 project with templates (scalper/swing/grid)
- validate_ea_syntax: pre-compile syntax checking
- check_mt5_status: check MT5 terminal readiness

Low Priority Tools:
- create_set_template: generate .set files from EA inputs
- export_report: export reports to CSV/JSON/Markdown

Other Changes:
- Consolidate config into src/models/config.rs, delete src/config.rs
- Add CurrentAccount with UTF-16LE parsing for common.ini
- Add BacktestPreflight struct for pre-flight checks
- Update backtest handler with active account context
- Update list_symbols to filter by active server

Total tools: 57
This commit is contained in:
Devid HW
2026-04-19 08:11:17 +07:00
parent eae612df75
commit d41c51bae4
15 changed files with 1959 additions and 179 deletions
+16
View File
@@ -8,6 +8,7 @@ pub mod optimization;
pub mod reports;
pub mod setfiles;
pub mod system;
pub mod utility;
pub fn get_tools_list() -> Value {
let tools = vec![
@@ -38,10 +39,25 @@ pub fn get_tools_list() -> Value {
experts::tool_list_experts(),
experts::tool_list_indicators(),
experts::tool_list_scripts(),
experts::tool_search_experts(),
experts::tool_search_indicators(),
experts::tool_search_scripts(),
experts::tool_copy_indicator_to_project(),
experts::tool_copy_script_to_project(),
// System
system::tool_verify_setup(),
system::tool_list_symbols(),
system::tool_healthcheck(),
system::tool_get_active_account(),
// Utility (8 tools)
utility::tool_check_symbol_data_status(),
utility::tool_get_backtest_history(),
utility::tool_compare_backtests(),
utility::tool_init_project(),
utility::tool_validate_ea_syntax(),
utility::tool_check_mt5_status(),
utility::tool_create_set_template(),
utility::tool_export_report(),
// Set Files
setfiles::tool_read_set_file(),
setfiles::tool_write_set_file(),