Type/to search

Williams %R Indicator Trading Strategy

Cryptocurrency
Created: 2023-09-14 15:38:51
Last modified: 3 years ago
1
Follow
1781
Followers

Strategy Logic

The Williams %R trading strategy generates signals based on the Williams Percent Range indicator, which measures market momentum by comparing the current close to the high-low range over a period.

The strategy goes long when the %R line crosses above oversold, and sells when the line crosses below overbought. The logic is:

  1. Calculate Williams %R over a timeframe (e.g. 14 periods)

  2. Set overbought (e.g. -20) and oversold (e.g. -80) levels

  3. Go long when the %R line crosses up through oversold

  4. Close longs when the %R line crosses down through overbought

This allows entries around potential reversal points to capitalize on short-term moves.

Advantages

  • Simple parameters and rules

  • Early identification of overbought/oversold

  • Systematic breakout trading

Risks

  • Lagging %R may miss opportunities

  • Requires optimization of inputs

  • Oversold/bought levels are rough guides

Summary

The Williams %R strategy aims to capture reversals by trading overbought/oversold regions. With proper position sizing and stops, risk can be controlled. But lag is a key limitation requiring additional tools for validation and caution in use.

Source
Pine
/*backtest
start: 2023-01-01 00:00:00
end: 2023-09-13 00:00:00
period: 12h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

// © Julien_Eche

//@version=5
strategy("Williams %R Strategy", overlay=true, initial_capital=100000, shorttitle="W%R Strategy")
Strategy parameters
Strategy parameters
Length
Overbought Level
Oversold Level
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)