A volume ratio built from 34-bar and 200-bar volume sums sets a long state after a rising volume trigger. It buys while the state holds and the close is above its level 13 bars earlier, and sells when the state ends.
Best run of 10. EUR/USD, 3 min, spread 1, from run sweeps:2026-10-11-EURUSD-3m-opt.tsv:8.
| Period | Up to 2026-10-11 |
| Instrument | EUR/USD, 3 minutes |
| 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-11 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| EUR/USDBest run | 3 min | n/a | 3,661 | 28.71 | 127,663 USD | -51,009 |
| USD/JPY | Daily | n/a | 76 | 53.95 | 417,080 USD | -106,750 |
| USD/JPY | 1 hour | n/a | 1,831 | 44.89 | 145,830 USD | -117,430 |
| Nikkei 225 | 4 hours | n/a | 314 | 44.59 | 12,074 USD | -9,643 |
| Nasdaq 100 | 1 hour | n/a | 1,516 | 48.75 | 9,979 EUR | -3,368 |
| Nikkei 225 | Daily | n/a | 54 | 55.56 | 8,441 USD | -4,695 |
| DAX 40 | 1 hour | n/a | 1,523 | 50.16 | 6,832 EUR | -3,035 |
| Gold | Daily | n/a | 89 | 44.94 | 1,316 EUR | -809 |
| Gold | 4 hours | n/a | 597 | 44.72 | 1,272 EUR | -876 |
| S&P 500 | 4 hours | n/a | 381 | 46.72 | 1,055 EUR | -716 |
Charts
The code
// ============================================================== // Volume State Trend Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: 3 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE state = 0 den = summation[200](volume) / (200 / 34)
42 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 10 market and timeframe combinations. The best run by trade count was EUR/USD, 3 minutes, with 3,661 trades.
The best run had a maximum drawdown of 51,009 USD at the tested position size, against a net result of 127,663 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.