The strategy buys a green candle that closes above the 200-period EMA and sells short on a red candle that closes below it. Each trade has a 1% stop and a 2% target, and a new trade can start on any later qualifying bar.
Best run of 4. EUR/USD, 3 min, spread 1, from run sweeps:2026-10-11-EURUSD-3m-opt.tsv:20.
| Period | Up to 2026-10-11 |
| Instrument | EUR/USD, 3 minutes |
| Spread | 1 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-11 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| EUR/USDBest run | 3 min | n/a | 9,070 | 11.73 | 85,263 USD | -78,382 |
| USD/JPY | Daily | n/a | 2,004 | 32.78 | 1,780,180 USD | -824,630 |
| EUR/USD | Daily | n/a | 1,841 | 32.21 | 63,766 USD | -48,179 |
| GBP/USD | Daily | n/a | 1,909 | 32.48 | 20,267 USD | -8,616 |
Charts
The code
// ============================================================== // EMA 200 Candle Color Bracket // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: 3 minutes // ============================================================== DEFPARAM CumulateOrders = false slow = ExponentialAverage[200](close)
16 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 4 market and timeframe combinations. The best run by trade count was EUR/USD, 3 minutes, with 9,070 trades.
The best run had a maximum drawdown of 78,382 USD at the tested position size, against a net result of 85,263 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.