Buys when the two prior bars share an equal low and the current low rises, and sells short on the equal-high mirror. Each trade sets a stop just beyond the equal price and a target 5 times the stop distance.
Best run of 4. USD/JPY, Daily, spread 1, from run pf:2026-10-12-USDJPY-D.tsv:4.
| Period | Up to 2026-10-12 |
| Instrument | USD/JPY, Daily |
| Spread | 1 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 |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | 2.63 | 136 | 23.53 | 20,750 USD | -1,620 |
| Silver | 4 hours | n/a | 365 | 16.71 | 7,048 USD | -6,639 |
| S&P 500 | 4 hours | n/a | 524 | 13.36 | 828 EUR | -708 |
| Gold | Daily | n/a | 146 | 17.12 | 508 EUR | -225 |
Charts
The code
// ============================================================== // Equal Highs And Lows Pattern // ProRealAlgos Strategy Library | prorealalgos.com // Type: Pattern // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false myAtr = AverageTrueRange[14](close)
17 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 4 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 2.63 over 136 trades.
The best run had a maximum drawdown of 1,620 USD at the tested position size, against a net result of 20,750 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.