How ranjeet867/metatrader works
Metatrader is an MT5 quant research, FTMO-risk, and trading operations platform. A trader refreshes broker candles, evaluates strategy cells through reconciliation-gated backtests and statistics, then manages deployments in the dashboard for paper or gated live execution; account, position, and journal views support operations. Research, compliance, and replay-parity are distinct product stages. The graph preserves README capabilities whose implementation was not sampled, but marks uncertain runtime connections dashed; source evidence is limited to the supplied excerpts and index.
Main entry points: app.py Operations dashboard ย ยทย 1_๐_Backtest.py Backtest and research UI ย ยทย backtest.py Backtest engine ย ยทย optimize_portfolio.py Portfolio optimizer
Components 23
Research and validation
- Strategy implementations
strategies - Backtest engine
core/backtest.py - Backtest statistics
core/backtest_stats.py - Portfolio optimizer
scripts/optimize_portfolio.py - Edge catalog
core/edge_catalog.py - Replay parity gate
core/parity_gate.py
Market data
- Candle data service
core/data.py
Operations dashboard
- Operations dashboard
dashboards/app.py - Backtest and research UI
dashboards/pages/1_๐_Backtest.py - Strategy library UI
dashboards/pages/7_๐๏ธ_Strategy_Library.py - Data manager UI
dashboards/pages/6_๐พ_Data_Manager.py - Strategy resolver
dashboards/components/strategy_resolver.py - Dashboard state
dashboards/components/state.py
Risk and execution
- Risk and time guards
core/risk_engine.py - Deployment registry
core/deployment.py - Live execution
core/live_executor.py - Paper trading
core/paper_loop.py - Position management
core/position_manager.py
Accounts and state
- SQLite persistence
core/storage.py - Multi-account registry
core/account_manager.py - Trade journal
core/journal.py
Other components
- Trader
- MT5 file bridge
Connections 24
- Trader โ Operations dashboard: uses
README.md - Operations dashboard โ Dashboard state: loads state
dashboards/app.py - Operations dashboard โ Backtest and research UI: offers research
- Operations dashboard โ Data manager UI: offers data management
dashboards/app.py - Backtest and research UI โ Backtest engine: runs backtests
dashboards/pages/1_๐_Backtest.py - Backtest and research UI โ Backtest statistics: computes metrics
dashboards/pages/1_๐_Backtest.py - Backtest and research UI โ Strategy resolver: resolves strategies
dashboards/pages/1_๐_Backtest.py - Strategy library UI โ Edge catalog: reads edge data
dashboards/pages/7_๐๏ธ_Strategy_Library.py - Strategy library UI โ Replay parity gate: checks parity
dashboards/pages/7_๐๏ธ_Strategy_Library.py - Data manager UI โ Candle data service: manages candles
dashboards/pages/6_๐พ_Data_Manager.py - Candle data service โ MT5 file bridge: fetches candles
core/data.py - Candle data service โ SQLite persistence: persists candles
core/data.py - Backtest engine โ Strategy implementations: evaluates signals
core/backtest.py - Backtest engine โ Backtest statistics: produces results
- Portfolio optimizer โ Backtest engine: sweeps candidates
README.md - Portfolio optimizer โ Backtest statistics: computes statistics
README.md - Portfolio optimizer โ Edge catalog: updates catalog
- Deployment registry โ Multi-account registry: uses accounts
core/deployment.py - Live execution โ Risk and time guards: checks safety gates
- Deployment registry โ Live execution: starts live runs
- Deployment registry โ Paper trading: starts paper runs
- Position management โ Trade journal: records closes
core/position_manager.py - Position management โ Multi-account registry: scopes account
core/position_manager.py - Replay parity gate โ SQLite persistence: reads persisted results
core/parity_gate.py