Join waitlist
Strategies / Mean reversion / Slow Stochastic Crossover Long

Slow Stochastic Crossover Long

Buys when the close is above the 200 period SMA and slow %K crosses above %D while both are below 20. Sells the long when %K crosses above %D while both are above 80.

Mean reversionLong onlySwingNasdaq 1004 hours
4.42Profit factor
25,361Net profit EUR
77.18%Win rate
149Trades
-3,788Max drawdown
170Avg trade

Best run of 44. Nasdaq 100, 4 hours, spread 3, from run pf:2026-10-05-NAS100-4h.tsv:2.

Entry rules, long

  1. Both %K and %D on the prior bar were below 20.
  2. The close is above the 200 period SMA.
  3. The stochastic uses the highest high and lowest low of 5 bars, with %K and %D each smoothed by a 3 bar average.
  4. Enter long at market when flat and all conditions above are met.

Exit rules

  1. A sell signal closes the long at market when %K crosses above %D and both %K and %D on the prior bar were above 80.

Test conditions

PeriodUp to 2026-10-05
InstrumentNasdaq 100, 4 hours
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
Nasdaq 100Best run4 hours4.42 14977.1825,361 EUR-3,788
Nikkei 2254 hours3.02 10965.1454,997 USD-11,500
USD/JPY10 minn/a 64663.47511,920 USD-213,780
USD/JPY30 minn/a 49859.64478,430 USD-288,770
USD/JPY15 minn/a 57463.94238,520 USD-230,510
EUR/USD4 hoursn/a 11459.6547,700 USD-37,320
Dow JonesDailyn/a 6083.3338,413 EUR-11,142
Nikkei 2251 hourn/a 36763.7638,093 USD-14,608
Nikkei 22530 minn/a 65361.8734,174 USD-17,636
Silver5 minn/a 58162.1326,137 USD-16,754
Nikkei 225Dailyn/a 5371.7025,902 USD-18,196
Dow Jones4 hoursn/a 4374.4219,394 EUR-6,075
Dow Jones15 minn/a 51162.2319,030 EUR-8,582
DAX 40Dailyn/a 8864.7717,130 EUR-4,293
Dow Jones1 hourn/a 12770.0814,523 EUR-7,864
Nikkei 2252 minn/a 66858.6812,746 USD-11,184
DAX 404 hoursn/a 11666.3812,512 EUR-4,253
Nasdaq 1001 hourn/a 42767.4511,794 EUR-6,274
Dow Jones10 minn/a 62361.3210,458 EUR-8,761
DAX 401 hourn/a 35363.7410,299 EUR-4,587
Nasdaq 100Dailyn/a 6671.2110,007 EUR-5,520
Nasdaq 10030 minn/a 64163.819,627 EUR-5,860
Nasdaq 10015 minn/a 67264.739,437 EUR-6,238
Dow Jones5 minn/a 60560.009,027 EUR-5,554
FTSE 100Dailyn/a 5780.708,999 EUR-3,219
Nikkei 2251 minn/a 66258.618,849 USD-7,595
Nasdaq 1005 minn/a 67963.188,689 EUR-4,471
DAX 4030 minn/a 57659.557,458 EUR-4,686
US Crude Oil4 hoursn/a 8165.436,900 EUR-4,511
FTSE 1004 hoursn/a 10260.785,029 EUR-2,458
S&P 500Dailyn/a 7281.944,483 EUR-642
US Crude Oil2 minn/a 55957.784,478 EUR-2,744
FTSE 1001 hourn/a 36860.873,495 EUR-2,352
S&P 5004 hoursn/a 14276.063,015 EUR-1,205
S&P 5001 hourn/a 41260.442,956 EUR-1,111
GoldDailyn/a 5166.672,750 EUR-856
S&P 5005 minn/a 65860.792,158 EUR-869
Gold1 hourn/a 28665.382,124 EUR-1,172
Gold30 minn/a 41258.981,570 EUR-1,001
FTSE 10010 minn/a 68261.581,552 EUR-1,401
S&P 50015 minn/a 69862.461,535 EUR-1,156
Gold10 minn/a 56060.891,509 EUR-717
S&P 5003 minn/a 64460.251,347 EUR-678
Gold2 minn/a 57260.841,003 EUR-944

Charts

Results by run

Top 10 of 44 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

// ==============================================================
// Slow Stochastic Crossover Long
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Mean reversion
// Direction: Long only
// Timeframe tested: 4 hours
// ==============================================================

DEFPARAM CumulateOrders = false

hh = highest[5](high)
ll = lowest[5](low)

18 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

StochasticSMA
Longer historyRe-run on up to 1,000,000 barsNasdaq 100 · 4 hours · older data 208.50 EUR

Nasdaq 100 had no history beyond the standard run, so both runs used 28,000 bars.

Nasdaq 100 · 4 hours

Bars available28,000
Net, standard 200,000-bar run25,361.00 EUR
Net, long run25,569.50 EUR
Net on the older data alone208.50 EUR
Read this firstKnown weaknesses2 points
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.
  • Results include the spread only. Commissions and overnight financing are not included.

Questions

About this strategy

Can I run Slow Stochastic Crossover 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 44 market and timeframe combinations. The best run was Nasdaq 100, 4 hours, with a profit factor of 4.42 over 149 trades.

How large was the drawdown?

The best run had a maximum drawdown of 3,788 EUR at the tested position size, against a net result of 25,361 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

Volatility Spike Regression Long

Best run on the same market, Nasdaq 100.

1.22 PF · 1,850 trades

SMA Pullback Cross In Uptrend

Also a mean reversion strategy.

4.37 PF · 1,429 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