Buys when the close breaks above the highest high of the previous 20 bars while ADX is above 25 and rising. Sells when the close falls below the lowest low of the previous 10 bars.
Best run of 1. USD/JPY, Daily, spread 1.4, from run pf:2026-10-10-USDJPY-D.tsv:20.
| Period | Up to 2026-10-10 |
| Instrument | USD/JPY, Daily |
| Spread | 1.4 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-10 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | 3.38 | 6 | 50.00 | 1,833 USD | -1,193 |
Charts
The code
// ============================================================== // ADX Strength Breakout (long only) // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE capital = 10000
19 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, USD/JPY, Daily, with a profit factor of 3.38 over 6 trades.
The best run had a maximum drawdown of 1,193 USD at the tested position size, against a net result of 1,833 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.