Join waitlist
Strategies / Trend / Dual Stochastic Trend Confirmation

Dual Stochastic Trend Confirmation

The strategy buys one contract when a blended stochastic line and its 30-bar volume-weighted average both start rising together, after a mixed reading. It closes the long when both start falling together, after a mixed reading.

TrendLong onlySwingS&P 500Daily
2.24Profit factor
3,636Net profit EUR
62.86%Win rate
105Trades
-806Max drawdown
34.63Avg trade

Best run of 15. S&P 500, Daily, spread 1, from run pf:2026-10-12-USA500-D.tsv:21.

Entry rules, long

  1. The 30-bar volume-weighted average of that line also rises compared with the prior bar.
  2. The prior bar was mixed, meaning the two lines were not both rising or both falling.
  3. Buys one contract at market when flat, after bar 125.

Exit rules

  1. The long is closed at market with one contract. No stop or target is set.

Test conditions

PeriodUp to 2026-10-12
InstrumentS&P 500, Daily
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-12

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
S&P 500Best runDaily2.24 10562.863,636 EUR-806
Gold4 hours1.40 1,02440.923,332 EUR-540
USD/JPYDailyn/a 13339.85571,870 USD-169,800
USD/JPY4 hoursn/a 1,11340.07398,400 USD-362,760
Silver4 hoursn/a 1,04935.7530,421 USD-14,717
Nikkei 2254 hoursn/a 59240.0326,471 USD-8,448
Nikkei 225Dailyn/a 10848.1521,290 USD-10,023
Nasdaq 100Dailyn/a 11147.7517,024 EUR-4,629
Dow Jones30 minn/a 3,20341.7413,998 EUR-7,977
Nasdaq 1004 hoursn/a 59843.6510,582 EUR-4,669
DAX 404 hoursn/a 65240.806,474 EUR-5,155
DAX 401 hourn/a 2,13239.924,243 EUR-4,231
DAX 40Dailyn/a 10037.003,920 EUR-3,163
Gold1 hourn/a 3,59935.823,082 EUR-804
S&P 5004 hoursn/a 63841.541,258 EUR-1,118

Charts

Results by run

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

// ==============================================================
// Dual Stochastic Trend Confirmation
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long only
// Timeframe tested: Daily
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE ka = 50
ONCE kb = 50
ONCE tsl = 0

lla = lowest[30](low)
hha = highest[30](high)

34 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

SMAStochasticVolume
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 Dual Stochastic Trend Confirmation 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 15 market and timeframe combinations. The best run was S&P 500, Daily, with a profit factor of 2.24 over 105 trades.

How large was the drawdown?

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

CCI Sign With EMA Alignment

Best run on the same market, S&P 500.

1.23 PF · 1,253 trades

ATR Trailing Line Crossover Long

Also a trend strategy.

2.24 PF · 160 trades

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

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