Buys when the close breaks above an upper channel band with a volatility stop below it and a strong momentum impulse, and sells short on the mirrored breakdown. Positions close when the close crosses back through the channel band or the volatility stop.
Best run of 8. USD/JPY, Daily, spread 1, from run pf:2026-10-12-USDJPY-D.tsv:12.
| Period | Up to 2026-10-12 |
| Instrument | USD/JPY, Daily |
| Spread | 1 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | 1.74 | 308 | 36.04 | 1,704,300 USD | -231,410 |
| USD/JPY | 4 hours | n/a | 707 | 31.97 | 293,370 USD | -170,210 |
| EUR/USD | 4 hours | n/a | 948 | 31.33 | 31,886 USD | -24,825 |
| Silver | 4 hours | n/a | 600 | 31.50 | 17,362 USD | -11,710 |
| GBP/USD | Daily | n/a | 295 | 37.29 | 11,774 USD | -2,972 |
| Brent Crude | Daily | n/a | 105 | 40.00 | 7,052 EUR | -4,603 |
| Gold | 4 hours | n/a | 675 | 32.15 | 1,142 EUR | -520 |
| Gold | Daily | n/a | 363 | 30.03 | 821 EUR | -745 |
Charts
The code
// ============================================================== // Channel Breakout With Volatility Stop // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE maxv = 0 ONCE minv = 0 ONCE uptrend = 1 ONCE vstop = 0 ONCE init = 0 xprice = ExponentialAverage[200](TypicalPrice) xmove = ExponentialAverage[200](high - low) xupper = xprice + xmove * 5 xlower = xprice - xmove * 5 myAtr = AverageTrueRange[3](close)
73 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 8 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 1.74 over 308 trades.
The best run had a maximum drawdown of 231,410 USD at the tested position size, against a net result of 1,704,300 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.