Buys when Tenkan is above Kijun with a green cloud, after a close below both within the last 5 bars, and sells short on the mirror setup. Stops sit at the lower of 1 ATR(14) below entry and the 15-bar low, with targets at twice the risk.
Best run of 9. USD/JPY, Daily, spread 1, from run pf:2026-10-10-USDJPY-D.tsv:11.
| 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 | 1.52 | 483 | 41.41 | 53,420 USD | -8,390 |
| Nikkei 225 | 4 hours | n/a | 222 | 39.19 | 24,056 USD | -8,199 |
| Silver | Daily | n/a | 96 | 33.33 | 19,688 USD | -12,123 |
| Nikkei 225 | Daily | n/a | 124 | 37.90 | 18,858 USD | -17,306 |
| Nasdaq 100 | Daily | n/a | 122 | 40.16 | 7,167 EUR | -3,951 |
| Nasdaq 100 | 10 min | n/a | 1,547 | 33.16 | 6,049 EUR | -4,493 |
| Gold | 10 min | n/a | 1,677 | 31.07 | 1,515 EUR | -815 |
| Gold | Daily | n/a | 123 | 33.33 | 1,050 EUR | -734 |
| Gold | 15 min | n/a | 1,566 | 32.18 | 904 EUR | -783 |
Charts
The code
// ============================================================== // Ichimoku Pullback Swing Bracket // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE tos = 0 ONCE kos = 0 ONCE bos = 0 ONCE longcnt = 1000 ONCE shortcnt = 1000 tatr = AverageTrueRange[9](close) * 2 tup = MedianPrice + tatr tdn = MedianPrice - tatr
197 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 | 53,420.00 USD |
| Net, long run | 53,420.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.52 over 483 trades.
The best run had a maximum drawdown of 8,390 USD at the tested position size, against a net result of 53,420 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.