mirror of
https://github.com/PyP-Quant/quant-trading-strategy-templates.git
synced 2026-08-19 21:48:06 +00:00
XAUUSD ATR Precision Breakout
Custom Python precision-breakout baseline for XAUUSD.
This project avoids ML on purpose. It is useful as a transparent benchmark to compare against heavier gold models like XGBoost or LightGBM.
The default gate is tuned for the 1m XAUUSD chart and small accounts. It prioritizes controlled churn over forcing oversized trades. The continuation paths are available as parameters, but they are disabled by default because one-day lab tests showed the stricter breakout profile had cleaner drawdown.
It includes:
- hard ATR breakout entries
- optional near-breakout pressure entries
- optional trend-continuation entries after range pressure
- EMA trend alignment
- short momentum measured in ATR units
Current defaults:
lookback:96timeframe:1mbreakout_window:45atr_mult:0.02near_breakout_atr:0.18pullback_atr:0.35min_momentum_atr:0fast_ema:8slow_ema:34enable_near_breakout:falseenable_continuation:false- assigned runtime: Modal, because this starter uses
pandas
For more activity, enable enable_near_breakout first. Enable enable_continuation only after PPE confirms the drawdown remains acceptable.