Join waitlist
Strategies / Momentum / KDJ J Line Zero Cross

KDJ J Line Zero Cross

The system buys when the J line crosses above zero, using K and D lines built from 18-bar stochastic values. It sells when J crosses below 100, or when J crosses below K while J is above 50.

MomentumLong onlySwingNasdaq 1004 hours
1.81Profit factor
17,330Net profit EUR
69.93%Win rate
429Trades
-2,770Max drawdown
40.40Avg trade

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

Entry rules, long

  1. No long position is already open.

Exit rules

  1. The long is also sold when J crosses below K while J is above 50.

Test conditions

PeriodUp to 2026-10-12
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-12

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
Nasdaq 100Best run4 hours1.81 42969.9317,330 EUR-2,770
Nasdaq 1001 hour1.40 1,41262.4618,781 EUR-4,055
S&P 5001 hour1.28 1,49361.893,778 EUR-821
USD/JPY4 hoursn/a 47663.03331,720 USD-245,440
Nikkei 2254 hoursn/a 34466.8627,061 USD-10,858
Nikkei 225Dailyn/a 16864.2926,502 USD-16,246
Dow JonesDailyn/a 18968.7824,738 EUR-8,615
Nikkei 2251 hourn/a 1,25360.0219,378 USD-11,230
SilverDailyn/a 18461.9618,724 USD-8,790
Dow Jones1 hourn/a 50862.0118,616 EUR-7,668
DAX 40Dailyn/a 24963.0513,443 EUR-5,078
Dow Jones4 hoursn/a 13866.6712,988 EUR-11,145
DAX 404 hoursn/a 39267.0910,378 EUR-5,229
Dow Jones15 minn/a 2,16762.1610,037 EUR-6,559
Nasdaq 100Dailyn/a 14965.779,458 EUR-5,017
FTSE 100Dailyn/a 16569.097,730 EUR-2,761
S&P 5004 hoursn/a 41565.062,829 EUR-1,201
S&P 500Dailyn/a 20367.002,576 EUR-1,134
GoldDailyn/a 19256.771,306 EUR-772

Charts

Results by run

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

// ==============================================================
// KDJ J Line Zero Cross
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Momentum
// Direction: Long only
// Timeframe tested: 4 hours
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE myK = 0
ONCE myD = 0

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

28 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 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 KDJ J Line Zero Cross 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 19 market and timeframe combinations. The best run was Nasdaq 100, 4 hours, with a profit factor of 1.81 over 429 trades.

How large was the drawdown?

The best run had a maximum drawdown of 2,770 EUR at the tested position size, against a net result of 17,330 EUR.

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

Volatility Spike Regression Long

Best run on the same market, Nasdaq 100.

1.22 PF · 1,850 trades

KST Crossover With ATR Stops

Also a momentum strategy.

1.81 PF · 236 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