The strategy buys when the 200-bar average is above the 100-bar average, price sits between the 100 and 13-bar averages, and the 13 and 26-bar averages are within 0.3%. It sells short on the mirror setup.
Best run of 1. Silver, Daily, spread 2, from run sweeps:2026-10-07-SILVER-D-opt.tsv:3.
| Period | Up to 2026-10-07 |
| Instrument | Silver, Daily |
| 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-07 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| SilverBest run | Daily | n/a | 107 | 35.51 | 12,431 USD | -3,800 |
Charts
The code
// ============================================================== // Moving Average Cluster Pullback // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false smaa = Average[13](close) smab = Average[26](close) smac = Average[100](close) smad = Average[200](close) spread = abs(smaa - smab) / smaa * 100
20 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 one combination, Silver, Daily, with 107 trades.
The best run had a maximum drawdown of 3,800 USD at the tested position size, against a net result of 12,430 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.