The strategy buys when three Supertrend lines, using 10-, 15- and 20-period ATR bands, all point up, and sells short when all three point down. It closes a long when the fastest Supertrend flips down, and a short when it flips up.
Best run of 3. USD/JPY, Daily, spread 1, from run sweeps:2026-10-10-USDJPY-D-opt.tsv:35.
| Period | Up to 2026-10-10 |
| Instrument | USD/JPY, Daily |
| 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-10 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | n/a | 1 | 100.00 | 1,257,880 USD | -1,022,800 |
| EUR/USD | 2 min | n/a | 1 | 100.00 | 30,703 USD | -27,917 |
| Gold | 1 min | n/a | 1 | 100.00 | 869 EUR | -782 |
Charts
The code
// ============================================================== // Triple Supertrend Entry With Fast Exit // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE lba = 0 ONCE uba = 0 ONCE dira = 1 ONCE lbb = 0 ONCE ubb = 0 ONCE dirb = 1 ONCE lbc = 0 ONCE ubc = 0 ONCE dirc = 1 atrfa = AverageTrueRange[10](close) upa = MedianPrice + 1 * atrfa dna = MedianPrice - 1 * atrfa plba = lba puba = uba pdira = dira
109 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 USD/JPY, Daily, with 1 trades.
The best run had a maximum drawdown of 1,022,800 USD at the tested position size, against a net result of 1,257,880 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.