Buys when the close moves more than 2 times the 20-period ATR above the 20-period EMA, and sells short when it moves more than 2 times the ATR below. Positions close when the close crosses back through the EMA.
Best run of 1. EUR/USD, Daily, spread 1.2, from run pf:2026-10-10-EURUSD-D.tsv:20.
| Period | Up to 2026-10-10 |
| Instrument | EUR/USD, Daily |
| Spread | 1.2 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 |
|---|---|---|---|---|---|---|
| EUR/USDBest run | Daily | 1.27 | 300 | 41.67 | 5,685 USD | -5,250 |
Charts
The code
// ============================================================== // Volatility Band Two-Way Breakout // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE capital = 10000
26 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, EUR/USD, Daily, with a profit factor of 1.27 over 300 trades.
The best run had a maximum drawdown of 5,250 USD at the tested position size, against a net result of 5,685 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.