Skip to content

Automated MT5 bot with drawdown protection and audit logs for prop firm challenge

Notifications You must be signed in to change notification settings

HDAVEEE/MT5-Bot-Audit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ˆ MT5 Prop Firm Trading Bot β€” Phase 1 Automation

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.

πŸš€ Highlights

  • πŸ”’ 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 & .bat scripts
  • πŸ§ͺ Empirical Testing: Strategy backed by months of backtesting and incremental improvements

βš™οΈ Bot Structure

  • phase1_bot_main.py β†’ Executes trades under strict Phase 1 risk rules
  • phase1_high_RR.py β†’ High risk-reward variant for alternative accounts
  • drawdown_guard.py β†’ Safety net with conditional shutdown to avoid liquidation
  • symbol_reader.py β†’ Dynamically reads active instruments for trading
  • csv_cleaner.py β†’ Clears and resets trade logs daily to ensure auditability
  • .bat scripts β†’ Used to auto-run bots and log files via Windows scheduler

🧠 Strategy Logic

  • 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

πŸ”§ Risk Controls

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

πŸ—‚οΈ Sample Audit Logs

  • Format: date_time,symbol,action,volume,profit,error_code
  • Logged to: phase1_trades.csv
  • Restart-safe via checkpointing and error recovery

πŸ› οΈ Deployment

  • 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

πŸ“ Notes

  • 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, 10019 are handled gracefully

πŸ“« Contact

For freelance automation, Python scripting, or prop bot consultation: GitHub: [github.com/HDAVEEE]
Guru Profile: [https://www.guru.com/freelancers/hamen-d]

πŸ“Œ Code Disclosure Note

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].

About

Automated MT5 bot with drawdown protection and audit logs for prop firm challenge

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages