Join waitlist
Strategies / Pattern / Equal Highs And Lows Pattern

Equal Highs And Lows Pattern

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.

PatternLong & shortSwingUSD/JPYDaily
2.63Profit factor
20,750Net profit USD
23.53%Win rate
136Trades
-1,620Max drawdown
153Avg trade

Best run of 4. USD/JPY, Daily, spread 1, from run pf:2026-10-12-USDJPY-D.tsv:4.

Entry rules, long

  1. A long is bought only when no position is open. Entries are checked only after bar 14.

Entry rules, short

  1. A short is sold only when no position is open. If both long and short conditions fire on one bar, the short takes priority.

Exit rules

  1. A short has a stop a tick above the equal high, and a target 5 times the stop distance below entry.

Test conditions

PeriodUp to 2026-10-12
InstrumentUSD/JPY, Daily
Spread1 points
Starting capital1,000,000
CostsSpread only. Commissions and overnight financing are not included.
BarsUp to 200,000 bars, fewer where the instrument has less history
Last tested2026-10-12

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
USD/JPYBest runDaily2.63 13623.5320,750 USD-1,620
Silver4 hoursn/a 36516.717,048 USD-6,639
S&P 5004 hoursn/a 52413.36828 EUR-708
GoldDailyn/a 14617.12508 EUR-225

Charts

Results by run

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// 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

How to load it

  1. Copy the code with the copy button on the code block.
  2. In ProRealTime, open a chart of the instrument and timeframe you want to test, then open ProOrder > New trading system and choose "Create with programming".
  3. Paste the code, give the system a name and save it.
  4. Click "Backtest", set your own spread and position size, and run it before you consider trading it live.
Read this firstKnown weaknesses2 points
  • Results include the spread only. Commissions and overnight financing are not included.
  • The code is published as it was backtested and has not been compiled again since.

Questions

About this strategy

Can I run Equal Highs And Lows Pattern in ProOrder?

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.

Which markets was it tested on?

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.

How large was the drawdown?

The best run had a maximum drawdown of 1,620 USD at the tested position size, against a net result of 20,750 USD.

Does it trade long, short or both?

It trades both long and short.

Related

Strategies like this one

Trend Surfer

Best run on the same market, USD/JPY.

1.04 PF · 10,813 trades

Navigator

Also a pattern strategy.

2.93 PF · 181 trades

Want strategies that are already part of a live portfolio? Join the ProRealAlgos waitlist.

The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.

Past backtest results do not guarantee future results. This is not financial advice. Curated and maintained by ProRealAlgos. ProRealTime™ is a trademark of ProRealTime SAS. prorealalgos.comStatsDocs