The strategy buys when a green Heikin Ashi candle has an upper wick. It sells when the upper wick disappears or the lower wick grows larger than the upper wick.
Best run of 6. Nasdaq 100, 4 hours, spread 3, from run sweeps:2026-10-04-NAS100-4h-opt.tsv:118.
| Period | Up to 2026-10-04 |
| Instrument | Nasdaq 100, 4 hours |
| Spread | 3 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-07 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Nasdaq 100Best run | 4 hours | n/a | 4,252 | 36.27 | 7,659 EUR | -5,510 |
| Dow Jones | 4 hours | n/a | 1,374 | 40.03 | 13,601 EUR | -8,482 |
| Dow Jones | Daily | n/a | 1,917 | 40.17 | 13,193 EUR | -8,768 |
| DAX 40 | 4 hours | n/a | 4,106 | 39.82 | 12,360 EUR | -4,656 |
| Nasdaq 100 | Daily | n/a | 1,466 | 37.45 | 6,046 EUR | -5,962 |
| Gold | 4 hours | n/a | 4,239 | 35.34 | 1,383 EUR | -1,101 |
Charts
The code
// ============================================================== // Heikin Ashi Upper Wick Momentum // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long only // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false ONCE haopen = 0 haclose = (open + high + low + close) / 4 IF BarIndex = 0 THEN haopen = (open + close) / 2 ELSE haopen = (haopen[1] + haclose[1]) / 2 ENDIF hahigh = max(high, max(haopen, haclose)) halow = min(low, min(haopen, haclose)) upwick = hahigh - max(haopen, haclose) lowwick = min(haopen, haclose) - halow
11 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 6 market and timeframe combinations. The best run by trade count was Nasdaq 100, 4 hours, with 4,252 trades.
The best run had a maximum drawdown of 5,510 EUR at the tested position size, against a net result of 7,659 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.