Buys when SuperTrend flips from down to up, with bands 3.7 times ATR(10) around the bar midpoint. The trade exits at a stop at the lowest low of the last 2 bars or a target 1.5 times the risk above the entry.
Best run of 16. Nikkei 225, Daily, spread 10, from run pf:2026-10-05-NIKKEI-D.tsv:1.
| Period | Up to 2026-10-05 |
| Instrument | Nikkei 225, Daily |
| Spread | 10 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-05 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Nikkei 225Best run | Daily | 1.78 | 134 | 52.24 | 23,471 USD | -4,949 |
| Nasdaq 100 | 1 hour | 1.30 | 1,235 | 39.19 | 13,348 EUR | -3,061 |
| Dow Jones | 4 hours | n/a | 103 | 47.57 | 11,648 EUR | -5,445 |
| US Crude Oil | Daily | n/a | 127 | 50.39 | 6,809 EUR | -3,921 |
| Nasdaq 100 | 4 hours | n/a | 360 | 43.89 | 6,756 EUR | -3,420 |
| DAX 40 | Daily | n/a | 263 | 35.74 | 5,551 EUR | -1,593 |
| Dow Jones | Daily | n/a | 146 | 40.41 | 4,505 EUR | -4,369 |
| DAX 40 | 1 hour | n/a | 1,106 | 39.87 | 4,300 EUR | -3,907 |
| Nasdaq 100 | Daily | n/a | 131 | 44.27 | 3,821 EUR | -2,900 |
| Nasdaq 100 | 5 min | n/a | 1,728 | 37.62 | 3,661 EUR | -2,514 |
| DAX 40 | 4 hours | n/a | 305 | 41.31 | 3,314 EUR | -2,414 |
| US Crude Oil | 4 hours | n/a | 241 | 46.89 | 2,955 EUR | -2,258 |
| S&P 500 | 4 hours | n/a | 344 | 43.60 | 1,392 EUR | -945 |
| S&P 500 | Daily | n/a | 171 | 39.77 | 1,202 EUR | -376 |
| S&P 500 | 30 min | n/a | 1,939 | 36.62 | 882 EUR | -866 |
| Gold | 4 hours | n/a | 295 | 41.69 | 762 EUR | -348 |
Charts
Top 10 of 16 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // SuperTrend Uptrend Flip Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE up = 0 ONCE dn = 0 ONCE trend = 1 myAtr = AverageTrueRange[10](close) upprev = up dnprev = dn trendprev = trend hl = (high + low) / 2 upraw = hl - 3.7 * myAtr dnraw = hl + 3.7 * myAtr
32 more lines: the entry and exit rules.
Setup
Nikkei 225 had no history beyond the standard run, so both runs used 11,000 bars.
| Bars available | 11,000 |
| Net, standard 200,000-bar run | 23,470.80 USD |
| Net, long run | 23,732.20 USD |
| Net on the older data alone | 261.40 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 16 market and timeframe combinations. The best run was Nikkei 225, Daily, with a profit factor of 1.78 over 134 trades.
The best run had a maximum drawdown of 4,949 USD at the tested position size, against a net result of 23,471 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.