Measures how far the close sits from its 20-bar average in standard deviations and converts that into an energy value. It buys when energy falls below -2.5 and exits once energy returns to zero or above, with no stop or target.
Best run of 13. Silver, 1 hour, spread 2, from run pf:2026-10-04-SILVER-1h.tsv:1.
| Period | Up to 2026-10-04 |
| Instrument | Silver, 1 hour |
| 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 | 1 hour | 3.44 | 2,970 | 64.07 | 522,663 USD | -43,878 |
| Nasdaq 100 | 4 hours | 1.59 | 757 | 70.67 | 15,733 EUR | -3,179 |
| Dow Jones | Daily | n/a | 344 | 71.51 | 21,296 EUR | -9,764 |
| Nasdaq 100 | Daily | n/a | 260 | 71.54 | 12,718 EUR | -3,552 |
| Nikkei 225 | 4 hours | n/a | 589 | 66.72 | 11,610 USD | -10,202 |
| Dow Jones | 4 hours | n/a | 263 | 70.34 | 11,085 EUR | -9,759 |
| DAX 40 | 4 hours | n/a | 757 | 72.52 | 10,829 EUR | -5,335 |
| DAX 40 | Daily | n/a | 350 | 69.71 | 8,085 EUR | -4,745 |
| Dow Jones | 15 min | n/a | 4,158 | 68.86 | 7,705 EUR | -6,286 |
| FTSE 100 | 4 hours | n/a | 738 | 70.46 | 5,196 EUR | -1,988 |
| FTSE 100 | Daily | n/a | 286 | 73.08 | 4,583 EUR | -2,941 |
| S&P 500 | 4 hours | n/a | 770 | 70.91 | 3,543 EUR | -1,028 |
| S&P 500 | Daily | n/a | 360 | 73.33 | 3,498 EUR | -1,040 |
Charts
Top 10 of 13 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Harmonic Energy Mean Reversion // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false sd = STD[20](close)
16 more lines: the entry and exit rules.
Setup
Nasdaq 100 had no history beyond the standard run, so both runs used 28,000 bars.
| Bars available | 28,000 |
| Net, standard 200,000-bar run | 15,733.00 EUR |
| Net, long run | 15,733.00 EUR |
| Net on the older data alone | 0.00 EUR |
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 13 market and timeframe combinations. The best run was Silver, 1 hour, with a profit factor of 3.44 over 2,970 trades.
The best run had a maximum drawdown of 43,878 USD at the tested position size, against a net result of 522,663 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.