Buys when Supertrend (ATR 10, factor 2) flips to an uptrend with close above its 50-bar average and volume above 1.2 times its 20-bar average, and sells short on the mirror flip. Each trade has a 5% stop and a 10% target.
Best run of 8. Silver, 4 hours, spread 2, from run pf:2026-10-04-SILVER-4h.tsv:2.
| Period | Up to 2026-10-04 |
| Instrument | Silver, 4 hours |
| Spread | 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-04 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| SilverBest run | 4 hours | 1.47 | 428 | 37.15 | 28,308 USD | -6,309 |
| USD/JPY | 30 min | n/a | 3,249 | 37.24 | 687,450 USD | -177,050 |
| USD/JPY | 1 hour | n/a | 1,577 | 38.05 | 373,320 USD | -170,060 |
| Silver | Daily | n/a | 77 | 45.45 | 11,169 USD | -6,816 |
| Brent Crude | Daily | n/a | 38 | 55.26 | 9,501 EUR | -1,540 |
| US Crude Oil | Daily | n/a | 57 | 43.86 | 4,743 EUR | -2,838 |
| Gold | 4 hours | n/a | 408 | 38.73 | 1,630 EUR | -476 |
| Gold | 1 hour | n/a | 1,594 | 36.32 | 1,239 EUR | -474 |
Charts
The code
// ============================================================== // Supertrend Flip With Volume Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false ONCE ub = 0 ONCE lb = 0 ONCE dir = 1 ONCE st = 0 src = MedianPrice myAtr = AverageTrueRange[10](close) bu = src + 2.0 * myAtr bl = src - 2.0 * myAtr
63 more lines: the entry and exit rules.
Setup
Silver had no history beyond the standard run, so both runs used 30,000 bars.
| Bars available | 30,000 |
| Net, standard 200,000-bar run | 28,308.00 USD |
| Net, long run | 28,308.00 USD |
| Net on the older data alone | 0.00 USD |
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 Silver, 4 hours, with a profit factor of 1.47 over 428 trades.
The best run had a maximum drawdown of 6,309 USD at the tested position size, against a net result of 28,308 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.