Two down bars followed by two up bars trigger a long at the next open, and the opposite sequence triggers a short. Stop and target are both set to the signal bar's distance from close to low for longs, or high to close for shorts. An opposite signal reverses the position.
Best run of 1. GBP/USD, Daily, spread 1.5, from run sweeps:2026-09-24-GBPUSD-D-opt.tsv:8.
| Period | Up to 2026-09-24 |
| Instrument | GBP/USD, Daily |
| Spread | 1.5 points |
| Contracts | 1 |
| 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-09-24 |
| positionSize Contracts per trade | 1 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| GBP/USDBest run | Daily | n/a | 1,619 | 49.10 | 5,420 USD | -1,946 |
Charts
The code
Every file in the library uses the same header, the same section order and the same variable names. The numbers above were produced by the original version before the rewrite, and the rewrite has not yet been compiled in ProRealTime.
// ============================================================ // Reversi // ProRealAlgos Strategy Library | prorealalgos.com // Type: Pattern // Direction: Long & short // Timeframe tested: Daily // ============================================================ // --- Settings --- DEFPARAM CumulateOrders = false // --- Parameters --- positionSize = 1 // contracts per trade ONCE stopDistance = 0 // set on each signal bar, used for stop and target // --- Indicators --- // Bullish reversal: two up bars after two down bars. Bearish is the mirror. bullReversal = close > open AND close[1] > open[1] AND close[2] < open[2] AND close[3] < open[3] bearReversal = close < open AND close[1] < open[1] AND close[2] > open[2] AND close[3] > open[3]
18 more lines: the entry and exit rules.
Read this first
Questions
Yes, it uses next-bar entries with a stop and target, which ProOrder supports. The code was rewritten and not yet compile-checked, and the stats are from the earlier version.
It made USD 5,419.80 over 1,619 trades with a max drawdown of USD 1,946.40.
The max drawdown at 1 contract was USD 1,946.40. Stops vary with each signal bar, so risk per trade is not fixed.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.