The strategy buys 1 contract when price, momentum, direction and volume filters all line up, including volume above 1.5 times its 20 bar average. It closes when any filter weakens, such as a close at or below 95% of its 50 bar average.
Best run of 8. DAX 40, 4 hours, spread 3, from run pf:2026-10-12-DAX40-4h.tsv:10.
| Period | Up to 2026-10-13 |
| Instrument | DAX 40, 4 hours |
| Spread | 3 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-13 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| DAX 40Best run | 4 hours | 1.25 | 710 | 52.39 | 5,307 EUR | -1,148 |
| Dow Jones | 1 hour | n/a | 668 | 52.40 | 6,554 EUR | -2,769 |
| Silver | Daily | n/a | 44 | 43.18 | 5,456 USD | -1,093 |
| Nasdaq 100 | Daily | n/a | 51 | 66.67 | 2,190 EUR | -1,140 |
| US Crude Oil | Daily | n/a | 52 | 57.69 | 1,491 EUR | -1,480 |
| Nasdaq 100 | 4 hours | n/a | 676 | 53.25 | 1,462 EUR | -1,384 |
| GBP/USD | 4 hours | n/a | 442 | 47.96 | 1,165 USD | -1,003 |
| S&P 500 | Daily | n/a | 70 | 61.43 | 895 EUR | -207 |
Charts
The code
// ============================================================== // Volume and Volatility Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false sma = Average[50](close) myRsi = RSI[14](close) dip = DIplus[14](close) dim = DIminus[14](close) myAtr = AverageTrueRange[14](close) atrsma = Average[20](myAtr) volma = Average[20](volume)
11 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 DAX 40, 4 hours, with a profit factor of 1.25 over 710 trades.
The best run had a maximum drawdown of 1,148 EUR at the tested position size, against a net result of 5,307 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.