Buys when 21-bar volume-weighted money flow turns negative and sells when it turns positive again. Each trade has a 1% profit target and a 5% stop loss.
Best run of 10. Nikkei 225, 4 hours, spread 10, from run sweeps:2026-10-04-NIKKEI-4h-opt.tsv:131.
| Period | Up to 2026-10-04 |
| Instrument | Nikkei 225, 4 hours |
| 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-04 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Nikkei 225Best run | 4 hours | n/a | 1,005 | 64.78 | 23,597 USD | -6,048 |
| USD/JPY | Daily | n/a | 269 | 66.54 | 307,690 USD | -143,050 |
| Dow Jones | 4 hours | n/a | 589 | 70.12 | 20,587 EUR | -6,045 |
| Nasdaq 100 | Daily | n/a | 310 | 82.26 | 11,132 EUR | -3,070 |
| Nikkei 225 | Daily | n/a | 242 | 68.60 | 10,453 USD | -6,648 |
| DAX 40 | Daily | n/a | 237 | 75.11 | 4,311 EUR | -3,134 |
| S&P 500 | 4 hours | n/a | 799 | 68.84 | 1,925 EUR | -1,001 |
| S&P 500 | Daily | n/a | 267 | 76.03 | 1,769 EUR | -863 |
| FTSE 100 | Daily | n/a | 243 | 74.07 | 1,719 EUR | -1,310 |
| Gold | Daily | n/a | 383 | 69.19 | 679 EUR | -668 |
Charts
The code
// ============================================================== // Money Flow Reversal Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false
22 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 10 market and timeframe combinations. The best run by trade count was Nikkei 225, 4 hours, with 1,005 trades.
The best run had a maximum drawdown of 6,048 USD at the tested position size, against a net result of 23,597 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.