Join waitlist
Strategies / Mean reversion / KAMA Trend Pullback Long

KAMA Trend Pullback Long

The system buys 1 contract on a pullback in an uptrend, when price is above a slow adaptive average and RSI and CCI are oversold. It exits when momentum turns positive and price falls below the Parabolic SAR, or at a 100% profit target.

Mean reversionLong onlySwingDow Jones1 hour
1.84Profit factor
16,255Net profit EUR
65.49%Win rate
142Trades
-3,874Max drawdown
114Avg trade

Best run of 28. Dow Jones, 1 hour, spread 3, from run pf:2026-10-05-DOW30-1h.tsv:1.

Entry rules, long

  1. When flat, buy 1 contract at market if OHLC4 (the average of open, high, low and close) is above the 200-period KAMA.
  2. OHLC4 must also be above the Parabolic SAR, which is set with 0.02, 0.02 and 0.2.
  3. The close is below the 5-period KAMA.
  4. The 5-period CCI is below -100.

Exit rules

  1. OHLC4 is also below the Parabolic SAR on the same bar, and the trade closes at market.
  2. A profit target 100% above the entry price closes the trade.
  3. There is no stop loss.

Test conditions

PeriodUp to 2026-10-05
InstrumentDow Jones, 1 hour
Spread3 points
Starting capital1,000,000
CostsSpread only. Commissions and overnight financing are not included.
BarsUp to 200,000 bars, fewer where the instrument has less history
Last tested2026-10-05

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
Dow JonesBest run1 hour1.84 14265.4916,255 EUR-3,874
Silver30 min1.53 73052.6034,788 USD-7,311
USD/JPY15 minn/a 74658.04269,430 USD-141,550
USD/JPY10 minn/a 73757.39249,880 USD-156,880
USD/JPY3 minn/a 67355.72145,870 USD-68,920
USD/JPY5 minn/a 73457.90100,140 USD-95,890
Dow JonesDailyn/a 4087.5031,234 EUR-11,142
Silver4 hoursn/a 9555.7922,337 USD-4,871
Nasdaq 100Dailyn/a 4372.0917,549 EUR-5,420
DAX 40Dailyn/a 4564.4413,548 EUR-6,382
Nasdaq 1004 hoursn/a 13971.2211,385 EUR-3,710
DAX 404 hoursn/a 11962.188,818 EUR-3,750
Nasdaq 10030 minn/a 74553.568,018 EUR-5,532
US Crude OilDailyn/a 2871.437,734 EUR-3,826
Dow Jones3 minn/a 66358.225,681 EUR-3,206
DAX 401 hourn/a 42255.215,464 EUR-3,530
Nasdaq 1005 minn/a 65756.774,825 EUR-2,869
DAX 4015 minn/a 77156.683,389 EUR-2,883
Brent Crude1 minn/a 65452.912,922 EUR-1,473
FTSE 10030 minn/a 77656.442,838 EUR-2,577
S&P 500Dailyn/a 4877.082,708 EUR-1,518
US Crude Oil3 minn/a 63053.972,384 EUR-2,252
S&P 5004 hoursn/a 13865.221,929 EUR-637
S&P 50015 minn/a 77556.651,425 EUR-762
Gold3 minn/a 59956.431,168 EUR-715
Gold1 hourn/a 50656.72994 EUR-993
GoldDailyn/a 4346.51803 EUR-432
S&P 5001 minn/a 63754.95613 EUR-251

Charts

Results by run

Top 10 of 28 runs. The full list is in the table above.

Above 1.0 made money, below 1.0 lost money.

The code

ProBuilder code, as tested

// ==============================================================
// KAMA Trend Pullback Long
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Mean reversion
// Direction: Long only
// Timeframe tested: 1 hour
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE kamas = 0
ONCE kamal = 0

ohlc = TotalPrice
diff = abs(close - close[1])
fastsc = 2 / 3
slowsc = 2 / 31

61 more lines: the entry and exit rules.

Setup

How to load it

  1. Copy the code with the copy button on the code block.
  2. In ProRealTime, open a chart of the instrument and timeframe you want to test, then open ProOrder > New trading system and choose "Create with programming".
  3. Paste the code, give the system a name and save it.
  4. Click "Backtest", set your own spread and position size, and run it before you consider trading it live.

Indicators used

KAMAParabolic SARRSICCI
Longer historyRe-run on up to 1,000,000 barsDow Jones · 1 hour · older data 0.00 EUR

Dow Jones had no history beyond the standard run, so both runs used 37,000 bars.

Dow Jones · 1 hour

Bars available37,000
Net, standard 200,000-bar run16,255.40 EUR
Net, long run16,255.40 EUR
Net on the older data alone0.00 EUR
Read this firstKnown weaknesses2 points
  • Results include the spread only. Commissions and overnight financing are not included.
  • The code is published as it was backtested and has not been compiled again since.

Questions

About this strategy

Can I run KAMA Trend Pullback Long in ProOrder?

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.

Which markets was it tested on?

It was tested on 28 market and timeframe combinations. The best run was Dow Jones, 1 hour, with a profit factor of 1.84 over 142 trades.

How large was the drawdown?

The best run had a maximum drawdown of 3,874 EUR at the tested position size, against a net result of 16,255 EUR.

Does it trade long, short or both?

It only takes long trades.

Related

Strategies like this one

Trend Surfer

Uses the same indicator.

1.04 PF · 10,813 trades

Turtle Trade

Best run on the same market, Dow Jones.

2.42 PF · 6,324 trades

MACD Exhaustion Reversal (long and short)

Also a mean reversion strategy.

1.84 PF · 70 trades

See how ProRealAlgos combines strategies like this into one automated portfolio.

Copy trading on US indices is available to ProRealAlgos members as spots open.

Past backtest results do not guarantee future results. This is not financial advice. Curated and maintained by ProRealAlgos. ProRealTime™ is a trademark of ProRealTime SAS. prorealalgos.comStatsDocs