Mt5pro-bot2/python
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-08 09:07:44 +04:00
..
backtest Add Python bot and MT5ProBot EA 2026-10-08 09:07:44 +04:00
core Add Python bot and MT5ProBot EA 2026-10-08 09:07:44 +04:00
filters Add Python bot and MT5ProBot EA 2026-10-08 09:07:44 +04:00
notifier Add Python bot and MT5ProBot EA 2026-10-08 09:07:44 +04:00
risk Add Python bot and MT5ProBot EA 2026-10-08 09:07:44 +04:00
strategies Add Python bot and MT5ProBot EA 2026-10-08 09:07:44 +04:00
utils Add Python bot and MT5ProBot EA 2026-10-08 09:07:44 +04:00
config.example.yaml Add Python bot and MT5ProBot EA 2026-10-08 09:07:44 +04:00
main.py Add Python bot and MT5ProBot EA 2026-10-08 09:07:44 +04:00
README.md Add Python bot and MT5ProBot EA 2026-10-08 09:07:44 +04:00
requirements.txt Add Python bot and MT5ProBot EA 2026-10-08 09:07:44 +04:00

MT5 Bot — Étapes 1 et 2

Bot live (Windows + MT5)

  1. pip install -r requirements.txt
  2. Édite config.yaml (compte DÉMO d'abord)
  3. python main.py Commandes Telegram : /status /pause /resume /closeall — Prop Firm : risk.prop_mode.enabled: true

Stratégies : ema_atr, session_breakout, rsi_meanrev, regime_rsi (RSI par régime ADX, SL/TP fixes, sans martingale).

Backtest (fonctionne aussi sans MT5 avec un CSV)

python -m backtest.run --strategy regime_rsi --symbol XAUUSD --csv data/XAUUSD_M15.csv --walkforward
python -m backtest.run --strategy ema_atr --symbol XAUUSD --mt5 --bars 40000
python -m backtest.run --strategy ema_atr --symbol XAUUSD --demo     # données FICTIVES, test du moteur

Sortie : résumé console + rapport HTML dans reports/ (equity, drawdown, walk-forward, Monte Carlo).

Hypothèses du moteur : signal à la clôture, exécution à l'ouverture suivante, spread + commission + slippage, SL prioritaire si SL et TP touchés dans la même barre, même logique de lot/break-even/trailing/limites que le live. Les heures des filtres de session sont celles du serveur broker (à ajuster).

À savoir

  • Teste sur au moins 2-3 ans de données réelles (M15) et regarde l'efficacité walk-forward (> ~50 %).
  • Un bon backtest ne garantit rien. Démo 2+ semaines avant le réel. Aucun gain n'est garanti.