Buys on a MACD histogram cross above a small negative threshold or RSI(15) cross above 31 with smoothed stochastic RSI below 61. Sells on a histogram cross below 0 or a price cross under its average with smoothed stochastic RSI above 61.
Best run of 3. EUR/USD, 10 min, spread 1, from run sweeps:2026-10-12-EURUSD-10m-opt.tsv:2.
| Period | Up to 2026-10-12 |
| Instrument | EUR/USD, 10 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| EUR/USDBest run | 10 min | n/a | 3,931 | 52.10 | 141,930 USD | -72,025 |
| EUR/USD | 3 min | n/a | 3,585 | 46.92 | 238,103 USD | -153,552 |
| Silver | Daily | n/a | 1,033 | 38.72 | 35,916 USD | -24,467 |
Charts
The code
// ============================================================== // MACD RSI Stochastic Long Short // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: 10 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE sincebad = 1000 myMacd = ExponentialAverage[11](close) - ExponentialAverage[18](close) amacd = ExponentialAverage[6](myMacd) delta = myMacd - amacd mthr = -0.02 / 100 * close rs = RSI[15](close) rlo = lowest[10](rs) rhi = highest[10](rs)
34 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 3 market and timeframe combinations. The best run by trade count was EUR/USD, 10 minutes, with 3,931 trades.
The best run had a maximum drawdown of 72,025 USD at the tested position size, against a net result of 141,930 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.