It sells short when the close breaks below the lowest low of the previous 55 bars and is below its 200 period average. Shorts close when the close rises above the highest high of the previous 20 bars or above that average.
Best run of 2. GBP/USD, Daily, spread 1.8, from run pf:2026-10-10-GBPUSD-D.tsv:7.
| Period | Up to 2026-10-10 |
| Instrument | GBP/USD, Daily |
| Spread | 1.8 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 |
|---|---|---|---|---|---|---|
| GBP/USDBest run | Daily | 1.88 | 90 | 35.56 | 7,397 USD | -3,061 |
| EUR/USD | Daily | 1.82 | 90 | 38.89 | 5,901 USD | -1,899 |
Charts
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Trend Filtered Breakout Short // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Short 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 2 market and timeframe combinations. The best run was GBP/USD, Daily, with a profit factor of 1.88 over 90 trades.
The best run had a maximum drawdown of 3,061 USD at the tested position size, against a net result of 7,397 USD.
It only takes short trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.