Robust, fully automated MetaTrader 5 trading bot optimized for prop firm challenges (e.g. Prop Firm Phase 1). Designed for disciplined execution, daily drawdown compliance, and transparent audit logging.
- π Risk Management: Daily and total drawdown guards to prevent challenge violations
- π Audit Logs: CSV-based trade logging, error tracking, and restart-safe execution
- π€ Full Automation: Designed for unattended operation via Task Scheduler &
.batscripts - π§ͺ Empirical Testing: Strategy backed by months of backtesting and incremental improvements
phase1_bot_main.pyβ Executes trades under strict Phase 1 risk rulesphase1_high_RR.pyβ High risk-reward variant for alternative accountsdrawdown_guard.pyβ Safety net with conditional shutdown to avoid liquidationsymbol_reader.pyβ Dynamically reads active instruments for tradingcsv_cleaner.pyβ Clears and resets trade logs daily to ensure auditability.batscripts β Used to auto-run bots and log files via Windows scheduler
- Entry and exit based on proven quantitative signals
- No overfitting β core logic unchanged even as risk modules evolve
- Filters optimized for prop firm volatility and slippage tolerance
| Control Type | Description |
|---|---|
| Daily Drawdown | Hard cap with auto-stop if breached |
| Total Drawdown | Safety net with conditional shutdown |
| Spread Checker | Filters poor liquidity conditions |
| Symbol Watchlist | Active symbol tracking and exclusions |
- Format:
date_time,symbol,action,volume,profit,error_code - Logged to:
phase1_trades.csv - Restart-safe via checkpointing and error recovery
- Windows Task Scheduler triggers bots and CSV cleaners at set intervals
- Batch scripts (
run_bot_phase1.bat,clean_csv.bat) manage automation - Can be adapted for VPS or server environments
- All trading logic aligns with The5ers Phase 1 rules (as of July 2025)
- Core strategy is fixed β only wrappers and guards adapt to market behavior
- Errors like
10027,10030,10019are handled gracefully
For freelance automation, Python scripting, or prop bot consultation:
GitHub: [github.com/HDAVEEE]
Guru Profile: [https://www.guru.com/freelancers/hamen-d]
This repository showcases the automation shell, audit logging, and drawdown risk controls of an MT5 trading bot used in live prop firm challenges.
β‘οΈ Proprietary strategy logic is omitted for confidentiality and compliance reasons.
The sample code highlights bot infrastructure, not trade signal generation.
For collaboration, freelance inquiries, or full logic review under NDA, please contact [https://www.guru.com/freelancers/hamen-d].