Sells short when the close moves more than 2 times the 20-period ATR below the 20-period EMA, which is treated as the start of a new downtrend. It closes the short once the close rises back above the EMA.
Best run of 1. GBP/USD, Daily, spread 1.8, from run pf:2026-10-10-GBPUSD-D.tsv:8.
| Period | Up to 2026-10-10 |
| Instrument | GBP/USD, Daily |
| Spread | 1.8 points |
| Starting capital | 1,000,000 |
| Costs | Spread only. Commissions and overnight financing are not included. |
| Bars | Up to 200,000 bars, fewer where the instrument has less history |
| Last tested | 2026-10-10 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| GBP/USDBest run | Daily | 1.33 | 174 | 41.95 | 4,735 USD | -2,796 |
Charts
The code
// ============================================================== // Volatility Band Downside Breakout // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Short only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE capital = 10000
20 more lines: the entry and exit rules.
Setup
Questions
Yes. The code is ProBuilder and runs as an automated ProOrder system. Backtest it on your own account with your own spread and position size before trading it live.
It was tested on one combination, GBP/USD, Daily, with a profit factor of 1.33 over 174 trades.
The best run had a maximum drawdown of 2,796 USD at the tested position size, against a net result of 4,735 USD.
It only takes short trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.