Williams %R: How It Works and How to Turn Data into Trading Signals

Need More Help? Book Your FREE Strategy Session With Our Team Today!

We’ll help you map out a plan to fix the problems in your trading and get you to the next level. Answer a few questions on our application and then choose a time that works for you.

Williams %R is often used to identify overbought and oversold conditions. But this oscillator can also help us analyze data other than price and define measurable conditions to test in our trading strategies.

In this video, we explore Williams Percent Range, Larry Williams‘ indicator that measures where the current value falls within the range over a specified lookback period. We start with the formula and examples using SPY, the ETF that tracks the S&P 500, to explain how the indicator works and explore potential applications in mean reversion and trend following strategies.

We then turn to commercial positioning in gold futures. How can we determine when this data reaches a potentially interesting level? We’ll show how to apply the same principle to this time series, turning an observation into a specific condition we can backtest.

Transcription

Welcome, everyone, to this new video, where we’ll take a look at one of the best-known technical indicators: the Williams Percent Range.

Specifically, in today’s video, we’ll start with some theory to understand what this indicator represents by looking at its formula. Then we’ll move on to some practical applications.

So let’s go into a little more detail and walk through the main points we’ll be covering in this video.

As I mentioned, we’ll look at what the Williams Percent Range is, then explore some ways to use it with price data, meaning the market charts we normally analyze. Then we’ll also look at how to use it with non-price time series.

Let me explain. We won’t just apply this indicator to a chart of, say, the S&P 500. We’ll also apply it to a time series that doesn’t necessarily represent the price of the S&P 500, or any other financial instrument.

What Is Williams %R and How Does Its Formula Work?

With that said, what is the Williams Percent Range?

First of all, it’s an oscillator. And what exactly is an oscillator?

Well, think of an indicator whose value stays between 0 and 100. So its value fluctuates around a midpoint, which in this case, given how the formula is set up, is 50.

On some platforms, you’ll often see a scale running from zero to minus 100 instead. The underlying idea is the same.

The difference comes down to how the final value is scaled in the formula we’re about to look at.

Sometimes the multiplier is 100, and sometimes it’s minus 100.

As for the formula for this indicator, you can see it written here. I’d like you to pay close attention for a moment, even though it’s a very simple formula.

What we’re doing, as you can see here, is comparing the current closing price, or the latest value of whatever time series we’re analyzing, with the highest high over a given period. We then divide that by the range for that period, meaning the difference between its highest high and its lowest low.

Why did I ask you to pay particular attention to this formula?

Because it’s essentially a normalization formula. In statistics, this process is known as normalization.

Why am I telling you this? Certainly not to take anything away from Larry Williams.

It’s mainly to show you that indicators that may look complicated, with all their mathematical formulas, are sometimes just different ways of applying concepts we already know.

So, with this normalization formula, once again, we compare a particular value with a particular minimum, then divide the result by the range measured over a given period of time.

All right, at this point, let’s get straight to the chart.

Williams %R on SPY: Reading Overbought and Oversold Conditions

And here we are. This is a chart of SPY.

What is SPY? It’s an ETF that tracks the S&P 500.

Of course, I’ve only chosen this ETF as an example.

We could apply the same indicator to any other stock, any futures contract, and any time frame we want.

What I want to show you here is how this indicator works, so we can understand the relationship between the price chart and the indicator itself.

So let me zoom in a little, so we can see exactly what it represents.

First of all, here on the right, we can see a scale that runs from 0 to 100.

The indicator never moves outside these limits and, as you can see, it fluctuates around a midpoint, which in this case is 50.

As with most oscillators, we can identify two zones: an oversold zone, which we could define as below 20, for example, and an overbought zone, which in this case we could define as above 80.

Using Williams %R for Mean Reversion and Trend Following Strategies

When it comes to developing potential strategies, we can use it for both mean reversion and trend following.

Specifically, we could decide to go long, meaning open a bullish position, when the indicator is in oversold territory, as it is right here, for example. Then we could close the position, or open a short position, when the indicator is above 80.

For a trend-following strategy, on the other hand, our goal isn’t so much to buy a decline in the hope that price will return to an average level. Instead, we want to follow a trend. So, after an initial upward move, we expect price to keep moving in that direction. In that case, we could simply apply the opposite strategy: buy when the stock, or rather, the indicator for that stock, is above 80, and close the long position, or possibly reverse it, when we get the opposite signal.

So far, nothing too complicated.

What Williams %R Measures Within the Price Range

What I really wanted to explore on this price chart is how the indicator is calculated.

Let’s take this bar here, the one I’m highlighting.

What does this reading of 90 actually tell us in this particular case?

Well, I’ve set the indicator to five periods. So, looking at the most recent five bars, including this one, it simply tells us that this bar’s closing price is 90% of the way up the range formed over those five bars.

So imagine drawing a box, for example, using this high and this low.

The current close is 90% of the way up that box.

You can see how simple this indicator is, and how there’s really nothing overly complicated about it. That’s one reason we systematic traders choose to use it in our trading strategies.

With that said, we’ve now seen how we can apply this indicator to a price time series.

Let’s move on to another chart, where we’ll look at a non-price time series.

Who Are Commercial Traders and How Can We Interpret Their Futures Positioning?

And here we are. This time, I’m using a different platform. We’re no longer on MultiCharts, but on a platform called TradeStation.

Conceptually, it’s very similar. The only reason I’ve switched platforms is that we have access to this different data series: the red line you can see down here.

What does this red line represent?

It represents commercial traders’ positioning, another key element of Larry Williams’ methodology.

But who are these commercial traders?

Well, first of all, we’re looking at the futures market and, as you can see here, we’re on a weekly chart. So this data is updated every week.

Commercial traders are professional market participants, such as producers, industrial companies, and dealers, who use this particular market, in this case gold futures, mainly to hedge against the risk of price changes, rather than to speculate, as we traders do, or as large speculators might.

What’s interesting is that their positioning is often interpreted from a mean-reversion perspective, or what we could also call a contrarian perspective.

In other words, when the price of a commodity falls and commercial traders increase their bullish exposure, as you can see here with the red line moving higher, it means they’re buying contracts or reducing their short positions.

Either way, their positioning in this particular futures contract is becoming more bullish.

For this reason, a sharp increase in commercial traders’ positioning, especially after a decline in price, can represent a potential buy signal.

And we can see several examples right here.

Here, price moved sideways, mostly in a consolidation phase. But commercial traders increased their positioning, and as you can see, that was followed by a rally on this weekly time frame.

We see the same thing in this section here. We see it here, for example. And we also saw it in this section here.

One thing I want to make clear is that this is what Larry Williams’ theory tells us.

As systematic traders, we would need to take this indicator and test it.

Turning Commercial Positioning into a Measurable Trading Condition

But let’s get back to the Williams Percent Range. Because, as you can see, while this fundamental data may look very interesting and give us useful information as traders, there’s a problem, especially when we want to test it quantitatively, or simply analyze it in a quantitative way.

How do we determine whether commercial traders’ positioning is bullish enough, for example, to give us a long setup?

Let me explain. If I look at the indicator’s value here, I can say, “Okay, it’s gone up.” But I can say the same thing here, and the same thing here.

So, since this value has no fixed upper or lower limit, it’s difficult to determine when I actually have a signal.

What can we do in a situation like this? We can compare the current value with previous periods, using an oscillator, for example. In this case, the Williams Percent Range.

Williams %R on Commercial Positioning: A 52-Week Example

I’ve already coded it here.

All we’re doing is applying the Williams Percent Range to commercial traders’ positioning. So let’s look at the chart and see what it shows us.

And here it is. In this case, I’ve set the indicator to 52 periods, mainly because we’re on a weekly time frame, so 52 periods represent one year of market data.

So I’ll be comparing the current value of commercial traders’ positioning with the range recorded over the past year.

And you can see that this makes it much easier to determine when I might have a bullish signal or a bearish signal.

Let’s look at this particular example again.

You can see that the oscillator applied to commercial positioning is above 80%.

Once again, this means that if we take the latest value of this fundamental data series and compare it with the last 52 observations, we’re more than 80% of the way up the range formed over those 52 observations.

At this point, you can see that we could use this indicator not only as a trigger on a price time series, but also to use other time series that don’t have a fixed scale, such as commercial traders’ positioning in this example.

So let me know in the comments how we could use the Williams Percent Range in a future video, perhaps by developing a strategy based on a non-price time series.

With that said, I hope you found this video helpful, and I’ll see you in the next one.

Frequently Asked Questions About Williams %R

What Does Williams %R Measure?

Williams %R, or Williams Percent Range, measures where the current closing price falls relative to the highest high and lowest low over a specified lookback period. It expresses that position on a bounded scale, allowing us to compare the current reading with the recent range.

Is Williams %R Only Used to Identify Overbought and Oversold Conditions?

It can also be applied to time series other than price. In this video, we apply it to commercial positioning in gold futures to determine where the current value falls within the range of the most recent 52 weekly observations.

How Can Williams %R Be Used in Systematic Trading?

Williams %R allows us to define precise numerical conditions, such as a reading crossing a specified threshold. These conditions can become rules to backtest in mean reversion or trend following strategies, or in strategies that analyze data other than price. A measurable condition alone does not establish that a strategy is effective: its usefulness needs to be tested on historical data.

Need More Help? Book Your FREE Strategy Session With Our Team Today!

We’ll help you map out a plan to fix the problems in your trading and get you to the next level. Answer a few questions on our application and then choose a time that works for you.

Related Posts