It buys breakouts above the previous 55 bar high when the close is above its 200 period average, and sells short breakdowns below the 55 bar low when it is below. Exits use the 20 bar channel or the 200 period average.
Best run of 2. EUR/USD, Daily, spread 1.2, from run pf:2026-10-10-EURUSD-D.tsv:19.
| Period | Up to 2026-10-10 |
| Instrument | EUR/USD, Daily |
| Spread | 1.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-10 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| EUR/USDBest run | Daily | 1.54 | 181 | 40.33 | 8,763 USD | -4,315 |
| USD/JPY | Daily | 1.75 | 25 | 32.00 | 2,218 USD | -2,079 |
Charts
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Trend Filtered Breakout Long Short // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE capital = 10000
25 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 2 market and timeframe combinations. The best run was EUR/USD, Daily, with a profit factor of 1.54 over 181 trades.
The best run had a maximum drawdown of 4,315 USD at the tested position size, against a net result of 8,763 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.