Join waitlist
Strategies / Mean reversion / Pivot Stochastic Tunnel Long

Pivot Stochastic Tunnel Long

The strategy buys on a low stochastic crossover below a pivot level, or when price crosses above the tunnel high. It closes on the mirror conditions, such as a high stochastic crossunder or a cross under the tunnel low.

Mean reversionLong onlySwingFTSE 1004 hours
2.00Profit factor
6,970Net profit EUR
66.67%Win rate
153Trades
-1,165Max drawdown
45.56Avg trade

Best run of 37. FTSE 100, 4 hours, spread 2, from run pf:2026-10-12-FTSE100-4h.tsv:1.

Entry rules, long

  1. Or the close crosses over the tunnel high, and the strategy buys one contract when flat.

Exit rules

  1. Or the close crosses under the tunnel low, and the long closes at market.

Test conditions

PeriodUp to 2026-10-12
InstrumentFTSE 100, 4 hours
Spread2 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-12

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
FTSE 100Best run4 hours2.00 15366.676,970 EUR-1,165
USD/JPY30 minn/a 89261.21583,860 USD-191,370
USD/JPY4 hoursn/a 18965.61428,160 USD-388,400
USD/JPY1 hourn/a 65260.89404,380 USD-357,250
Nikkei 2254 hoursn/a 12673.8145,440 USD-13,066
SilverDailyn/a 4975.5140,583 USD-25,287
Nikkei 22530 minn/a 1,00359.9237,517 USD-9,495
Dow JonesDailyn/a 9963.6433,440 EUR-11,924
Nikkei 2251 hourn/a 52660.2726,443 USD-9,223
Silver4 hoursn/a 12861.7224,188 USD-21,326
Nikkei 225Dailyn/a 5064.0023,275 USD-21,369
Nikkei 22515 minn/a 94359.9221,265 USD-12,670
Nasdaq 1001 hourn/a 71457.4218,620 EUR-6,261
Nikkei 22510 minn/a 97559.3816,040 USD-9,046
Nasdaq 10030 minn/a 1,12357.5215,028 EUR-6,414
Nasdaq 1004 hoursn/a 20961.2414,546 EUR-6,248
Nasdaq 100Dailyn/a 7161.9713,868 EUR-6,202
DAX 4030 minn/a 98961.7812,885 EUR-4,060
DAX 404 hoursn/a 17666.4810,809 EUR-5,708
DAX 401 hourn/a 59159.0510,792 EUR-3,880
Dow Jones15 minn/a 83455.409,640 EUR-8,803
Brent Crude4 hoursn/a 8166.677,513 EUR-3,968
US Crude Oil4 hoursn/a 11367.266,742 EUR-4,326
Brent Crude1 hourn/a 29464.296,312 EUR-4,240
DAX 4010 minn/a 1,01459.275,217 EUR-4,336
GBP/USD4 hoursn/a 22161.994,522 USD-4,164
GoldDailyn/a 5466.673,500 EUR-809
S&P 500Dailyn/a 9856.123,439 EUR-1,382
S&P 50030 minn/a 1,18557.723,407 EUR-1,474
S&P 5004 hoursn/a 22162.903,253 EUR-1,344
S&P 5001 hourn/a 75457.692,900 EUR-1,150
Gold4 hoursn/a 14965.102,382 EUR-1,518
Gold10 minn/a 94160.262,348 EUR-832
Gold1 hourn/a 50961.892,158 EUR-1,284
FTSE 10010 minn/a 1,00760.771,986 EUR-1,490
Gold15 minn/a 91760.851,675 EUR-867
S&P 5005 minn/a 1,00156.541,202 EUR-780

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

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

DEFPARAM CumulateOrders = false

ONCE raw = 50

barsback = 244
hc = highest[barsback](close)
lc = lowest[barsback](close)
pivot = (hc + lc + close[barsback]) / 3

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

21 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

StochasticSMADonchian Channel
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 Pivot Stochastic Tunnel 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 37 market and timeframe combinations. The best run was FTSE 100, 4 hours, with a profit factor of 2.00 over 153 trades.

How large was the drawdown?

The best run had a maximum drawdown of 1,164 EUR at the tested position size, against a net result of 6,970 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

DAX Survivor

Best run on the same market, FTSE 100.

1.17 PF · 1,514 trades

Internal Bar Strength

Also a mean reversion strategy.

2.00 PF · 905 trades

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

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