Buys when the channel flips bullish with a bullish QQE reading, or when QQE turns bullish inside a bullish channel, and sells short on the mirrored conditions. Stops sit at the 10-bar low or high, with a target at 1.0 times that risk.
Best run of 5. Gold, 4 hours, spread 0.6, from run sweeps:2026-10-03-GOLD-4h-opt.tsv:53.
| Period | Up to 2026-10-03 |
| Instrument | Gold, 4 hours |
| Spread | 0.6 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-03 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| GoldBest run | 4 hours | n/a | 1,436 | 42.69 | 1,637 EUR | -1,197 |
| Silver | Daily | n/a | 596 | 38.09 | 22,509 USD | -15,063 |
| US Crude Oil | 4 hours | n/a | 1,108 | 41.61 | 8,637 EUR | -4,236 |
| Dow Jones | 4 hours | n/a | 480 | 41.04 | 7,817 EUR | -7,809 |
| Gold | Daily | n/a | 669 | 40.21 | 1,105 EUR | -1,038 |
Charts
The code
// ============================================================== // QQE Channel Flip Entry // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false ONCE chdir = 0 ONCE qdir = 0 ONCE lband = 0 ONCE sband = 0 chhigh = ExponentialAverage[60](high) chlow = ExponentialAverage[60](low)
81 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 5 market and timeframe combinations. The best run by trade count was Gold, 4 hours, with 1,436 trades.
The best run had a maximum drawdown of 1,197 EUR at the tested position size, against a net result of 1,636 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.