The strategy buys when an EMA based state and a range histogram state both turn bullish, and sells short when both turn bearish. An open position closes when the two states no longer agree.
Best run of 1. Dow Jones, Daily, spread 3, from run sweeps:2026-10-12-DOW30-D-opt.tsv:81.
| Period | Up to 2026-10-12 |
| Instrument | Dow Jones, Daily |
| 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Dow JonesBest run | Daily | n/a | 3,790 | 43.77 | 15,604 EUR | -12,443 |
Charts
The code
// ============================================================== // EMA Range Histogram Trend // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE posrev = 0 ONCE postwo = 0 xa = ExponentialAverage[14](close) nhh = MAX(high, high[1]) nll = MIN(low, low[1])
39 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, Dow Jones, Daily, with 3,790 trades.
The best run had a maximum drawdown of 12,443 EUR at the tested position size, against a net result of 15,604 EUR.
It trades both long and short.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.