Join waitlist
Strategies / Mean reversion / Stochastic Oversold Recovery Long

Stochastic Oversold Recovery Long

Buys 1 contract when both stochastic lines stay below 10 for at least 5 bars and then rise to 10 or above. Closes the long after both lines stay above 90 for at least 5 bars and then drop to 90 or below.

Mean reversionLong onlyIntradayEUR/USD1 min
n/aProfit factor
3,053Net profit USD
55.82%Win rate
249Trades
-3,019Max drawdown
12.26Avg trade

Best run of 46. EUR/USD, 1 min, spread 1, from run sweeps:2026-10-04-EURUSD-1m-opt.tsv:2.

Entry rules, long

  1. Both smoothed %K and %D have been below 10 for at least 5 consecutive bars.

Exit rules

  1. Both smoothed %K and %D have been above 90 for at least 5 consecutive bars.

Test conditions

PeriodUp to 2026-10-04
InstrumentEUR/USD, 1 minute
Spread1 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-04

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
EUR/USDBest run1 minn/a 24955.823,053 USD-3,019
USD/JPY4 hoursn/a 1770.59405,210 USD-133,330
USD/JPY15 minn/a 9772.16331,230 USD-149,330
USD/JPY1 hourn/a 5164.71282,830 USD-155,900
Nikkei 2254 hoursn/a 1894.4418,241 USD-8,226
Nikkei 22515 minn/a 16061.2517,106 USD-8,998
Nikkei 22530 minn/a 13661.0317,104 USD-12,754
Nikkei 22510 minn/a 16462.8013,518 USD-9,181
Nikkei 2251 minn/a 17158.4811,990 USD-10,608
DAX 4030 minn/a 11866.109,817 EUR-4,409
EUR/USD15 minn/a 12955.049,486 USD-9,411
SilverDailyn/a 7100.008,720 USD-5,040
Dow Jones5 minn/a 13862.328,687 EUR-4,027
Nasdaq 1001 hourn/a 10968.818,332 EUR-3,235
Nasdaq 1005 minn/a 11761.547,628 EUR-2,386
Brent Crude30 minn/a 10164.366,212 EUR-2,993
DAX 404 hoursn/a 2171.435,825 EUR-3,229
Nasdaq 10015 minn/a 11757.265,202 EUR-4,074
FTSE 1004 hoursn/a 2382.614,283 EUR-1,320
DAX 401 minn/a 14163.123,964 EUR-1,161
Nasdaq 1002 minn/a 12964.343,961 EUR-2,639
Nasdaq 1001 minn/a 13762.773,872 EUR-1,542
Nasdaq 1004 hoursn/a 2572.003,848 EUR-3,036
US Crude Oil2 minn/a 9258.703,791 EUR-1,373
Dow Jones1 minn/a 12361.793,745 EUR-2,631
Brent Crude2 minn/a 14050.003,614 EUR-1,648
Dow JonesDailyn/a 475.003,527 EUR-3,349
DAX 40Dailyn/a 3063.332,944 EUR-1,700
S&P 5001 hourn/a 10969.722,791 EUR-849
DAX 402 minn/a 16063.122,637 EUR-2,559
S&P 50015 minn/a 13866.672,359 EUR-1,072
S&P 5004 hoursn/a 2176.192,023 EUR-821
S&P 5005 minn/a 12767.721,910 EUR-526
Gold30 minn/a 5366.041,632 EUR-529
Gold4 hoursn/a 1190.911,503 EUR-435
S&P 50010 minn/a 15257.891,431 EUR-925
S&P 50030 minn/a 12269.671,367 EUR-1,090
Gold5 minn/a 8767.821,357 EUR-287
S&P 5003 minn/a 12061.671,140 EUR-498
Gold1 hourn/a 3966.671,022 EUR-482
Gold15 minn/a 6155.74791 EUR-489
S&P 5002 minn/a 11355.75732 EUR-405
GBP/USD3 minn/a 19458.25714 USD-501
GoldDailyn/a 5100.00694 EUR-234
S&P 500Dailyn/a 4100.00406 EUR-114
Nasdaq 100Dailyn/a 1100.00143 EUR-62.80

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// Stochastic Oversold Recovery Long
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Mean reversion
// Direction: Long only
// Timeframe tested: 1 minute
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE inlong = 0
ONCE overbuy = 0
ONCE oversell = 0

myRange = Highest[9](high) - Lowest[9](low)

36 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

Stochastic
Read this firstKnown weaknesses3 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The maximum drawdown of 3,019 USD is large next to the net profit of 3,053 USD.
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.

Questions

About this strategy

Can I run Stochastic Oversold Recovery 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 46 market and timeframe combinations. The best run by trade count was EUR/USD, 1 minute, with 249 trades.

How large was the drawdown?

The best run had a maximum drawdown of 3,019 USD at the tested position size, against a net result of 3,053 USD.

Does it trade long, short or both?

It only takes long trades.

Related

Strategies like this one

Reversal Pattern With Chaikin Volatility

Uses the same indicator.

2.26 PF · 6,872 trades

Slow MACD Slope

Best run on the same market, EUR/USD.

6.80 PF · 7,305 trades

ATR Band

Also a mean reversion strategy.

10.31 PF · 53 trades

Want strategies that are already part of a live portfolio? Join the ProRealAlgos waitlist.

The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.

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