How frede43/smc_concept works
This is an automated Smart Money Concepts trading bot for MetaTrader 5, with demo/live operation and a separate backtesting capability. In the principal workflow, the bot entry point obtains market data, applies the SMC strategy and trading filters, manages risk, then sends orders through the broker connector. Separate branches cover economic-news and market-context analysis, historical simulation, and trade/performance monitoring. Edges reflect the sampled source and SOURCE INDEX; several monitoring and analysis capabilities are represented from the tree, but their runtime wiring is not established by the excerpts.
Main entry points: main.py Bot entry point · smc_strategy.py SMC strategy · mt5_connector.py MT5 connector · news_filter.py Economic news filter
Components 25
Trading runtime
- Bot entry point
main.py - MT5 connector
broker/mt5_connector.py
Signal analysis
- SMC strategy
strategy/smc_strategy.py - Strategy filters
strategy/filters.py - Session killzones
core/killzones.py - SMC structures
core/market_structure.py - Signal scoring
core/advanced_filters.py - Fair value gaps
core/fair_value_gap.py - Micro timing
core/micro_timing.py - Market context
core/fundamental_filter.py - Economic news filter
strategy/news_filter.py - News data fetcher
utils/news_fetcher.py - Myfxbook data
utils/myfxbook_fetcher.py
Backtesting
- Backtest engine
backtest/backtester.py - Monte Carlo analysis
backtest/monte_carlo.py - Walk-forward analysis
backtest/walk_forward.py
Risk and execution
- Risk management
strategy/risk_management.py - Anti-tilt controls
strategy/anti_tilt.py - Order manager
broker/order_manager.py
Monitoring and records
- Trade monitor
strategy/trade_monitor.py - Trade journal
utils/trade_journal.py - Session analytics
utils/session_tracker.py - Correlation guard
utils/correlation_guard.py - Live dashboard
utils/dashboard.py
Other components
- Trader
Connections 25
- Trader → Bot entry point: starts
main.py - Bot entry point → MT5 connector: connects through
main.py - Bot entry point → SMC strategy: uses
main.py - Bot entry point → Risk management: uses
main.py - Bot entry point → Economic news filter: checks
main.py - Bot entry point → Trade monitor: monitors trades
main.py - Bot entry point → Trade journal: records trades
main.py - Bot entry point → Session analytics: records sessions
main.py - Bot entry point → Correlation guard: checks exposure
main.py - SMC strategy → SMC structures: uses
strategy/smc_strategy.py - SMC strategy → Fair value gaps: uses
strategy/smc_strategy.py - SMC strategy → Signal scoring: scores signals
strategy/smc_strategy.py - SMC strategy → Session killzones: uses
strategy/smc_strategy.py - SMC strategy → Micro timing: uses
strategy/smc_strategy.py - Strategy filters → Session killzones: checks sessions
strategy/filters.py - Market context → News data fetcher: fetches news
core/fundamental_filter.py - Market context → Economic news filter: uses
core/fundamental_filter.py - Economic news filter → Myfxbook data: fetches data
strategy/news_filter.py - Risk management → Anti-tilt controls: uses controls
strategy/risk_management.py - MT5 connector → Order manager: initializes
broker/mt5_connector.py - Trade monitor → Order manager: manages positions
strategy/trade_monitor.py - Backtest engine → MT5 connector: downloads data
backtest/backtester.py - Backtest engine → SMC strategy: simulates
backtest/backtester.py - Live dashboard → Session analytics: reads stats
utils/dashboard.py - Live dashboard → Correlation guard: uses
utils/dashboard.py