Uses two Supertrend lines (ATR 4, factors 2.4 and 4.8). It goes long when price crosses one line while sitting above the other, short on the mirror cross, and closes when price moves between the two lines.
Best run of 9. USD/JPY, Daily, spread 1, from run pf:2026-10-11-USDJPY-D.tsv:4.
| Period | Up to 2026-10-11 |
| 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-11 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | 1.69 | 370 | 40.00 | 3,310,150 USD | -394,100 |
| USD/JPY | 1 hour | n/a | 3,342 | 36.71 | 459,400 USD | -302,250 |
| EUR/USD | Daily | n/a | 358 | 42.46 | 112,786 USD | -65,603 |
| Silver | 4 hours | n/a | 785 | 39.87 | 47,848 USD | -14,705 |
| Brent Crude | Daily | n/a | 157 | 40.76 | 19,704 EUR | -8,327 |
| Nikkei 225 | Daily | n/a | 381 | 39.11 | 19,662 USD | -17,863 |
| GBP/USD | Daily | n/a | 402 | 39.80 | 10,637 USD | -9,077 |
| Gold | 4 hours | n/a | 830 | 40.84 | 2,114 EUR | -1,041 |
| Gold | Daily | n/a | 384 | 38.80 | 1,957 EUR | -854 |
Charts
The code
// ============================================================== // Dual Supertrend Cloud Crossover // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE upa = 0 ONCE dna = 0 ONCE tra = 1 ONCE upb = 0 ONCE dnb = 0 ONCE trb = 1 myAtr = AverageTrueRange[4](close) uplevA = MedianPrice - 2.4 * myAtr dnlevA = MedianPrice + 2.4 * myAtr uplevB = MedianPrice - 4.8 * myAtr dnlevB = MedianPrice + 4.8 * myAtr
78 more lines: the entry and exit rules.
Setup
USD/JPY had no history beyond the standard run, so both runs used 12,000 bars.
| Bars available | 12,000 |
| Net, standard 200,000-bar run | 3,310,150.00 USD |
| Net, long run | 3,310,150.00 USD |
| Net on the older data alone | 0.00 USD |
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 9 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 1.69 over 370 trades.
The best run had a maximum drawdown of 394,100 USD at the tested position size, against a net result of 3,310,150 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.