Join waitlist
Strategies / Trend / EMA Slingshot With Williams %R

EMA Slingshot With Williams %R

The idea trades pullbacks in an EMA trend. It buys when the 38-period EMA is above the 62-period EMA and price briefly dips below the 38-period EMA while the close is above the 200-period EMA, and sells short on the mirror-image setup.

TrendLong & shortIntradayUSD/JPY10 min
n/aProfit factor
243,350Net profit USD
43.12%Win rate
2,964Trades
-136,560Max drawdown
82.10Avg trade

Best run of 9. USD/JPY, 10 min, spread 1, from run sweeps:2026-10-11-USDJPY-10m-opt.tsv:8.

Entry rules, long

  1. Buys 1 contract at market with a 1 percent stop loss from the fill

Entry rules, short

  1. Sells 1 contract short at market with a 1 percent stop loss from the fill

Exit rules

  1. EMA[38] rises above EMA[62], or Williams %R[21] and its EMA[13] are both below -80, or the close rises above the stop level

Test conditions

PeriodUp to 2026-10-11
InstrumentUSD/JPY, 10 minutes
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-11

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
USD/JPYBest run10 minn/a 2,96443.12243,350 USD-136,560
USD/JPY15 minn/a 2,91142.15157,370 USD-151,840
EUR/USDDailyn/a 25928.5767,744 USD-20,794
Nikkei 225Dailyn/a 23720.2522,999 USD-7,393
GBP/USDDailyn/a 29428.2310,418 USD-3,435
US Crude OilDailyn/a 29911.046,641 EUR-3,903
Brent Crude1 hourn/a 1,18230.204,238 EUR-2,866
Gold4 hoursn/a 56629.68933 EUR-685
GoldDailyn/a 28122.42925 EUR-418

Charts

Results by run

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// EMA Slingshot With Williams %R
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long & short
// Timeframe tested: 10 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE calc = 0
ONCE stl = 0
ONCE sts = 0
ONCE willy = -50

emas = ExponentialAverage[62](close)
emaf = ExponentialAverage[38](close)
up = highest[21](high)
lo = lowest[21](low)

42 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

EMAWilliams %R
Read this firstKnown weaknesses2 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The maximum drawdown of 136,560 USD is large next to the net profit of 243,350 USD.

Questions

About this strategy

Can I run EMA Slingshot With Williams %R 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 9 market and timeframe combinations. The best run by trade count was USD/JPY, 10 minutes, with 2,964 trades.

How large was the drawdown?

The best run had a maximum drawdown of 136,560 USD at the tested position size, against a net result of 243,350 USD.

Does it trade long, short or both?

It trades both long and short.

Related

Strategies like this one

Reversal Pattern With Chaikin Volatility

Uses the same indicator.

2.26 PF · 6,872 trades

Trend Surfer

Best run on the same market, USD/JPY.

1.04 PF · 10,813 trades

ADX Filtered EMA Cross

Also a trend strategy.

1.15 PF · 607 trades

Get the full rules, the complete code and the ProRealAlgos portfolio as a member.

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