Wake up to the Market Trend with the Gator Oscillator

Alexandros Theophanopoulos
9 Min read

The Gator Oscillator is one of several well-known indicators developed by celebrated trader and analyst Bill Williams. It is intended to make it easier for you to recognise when a market is trending, or when it is range-bound. As such, it makes for a useful aid in the timing of your trades. Its ideas expand on those first introduced for one of Williams' other developments – the Alligator Indicator.

In fact, the Gator Oscillator is designed to work in conjunction with the Alligator Indicator, as a kind of supplementary tool. It's probably a good idea, then, to quickly recap the three balance lines plotted by that indicator. These are simple moving averages (SMAs) calculated over various time frames for values of the median price (that is: H+L/2). They are calculated as follows:

  • Blue Alligator's jaw = 13-period SMA shifted 8 bars forward
  • Red Alligator teeth = 9-period SMA shifted 5 bars forward
  • Green Alligator lips = 5-period SMA shifted 3 bars forward

As we shall see below, we can actually set these periods and shifts to custom values of our own choosing in MetaTrader 4, but the classic values are as shown above. The Gator Oscillator formula uses these balance lines to derive values for a dual histogram — the indicator plots two histograms either side of a zero line. While the Alligator Indicator plots its balance lines directly onto a price chart, the Gator Oscillator instead displays the dual histogram separately beneath the price chart.

The positive values are the absolute difference between the Alligator's jaws and teeth (that is, the blue and red lines). The negative values are calculated as the absolute difference between the teeth and lips (that is, the red and green lines) and then given a negative value, so as to lie entirely below the zero line. When a bar in the histogram is of a greater magnitude than the previous bar, it is coloured green.

When its magnitude is smaller than the previous bar, it's coloured red. The bars of the Gator Oscillator are intended to make it even easier to recognise different market states compared with the Alligator Indicator. They also serve to confirm what the Alligator Indicator is showing. We'll discuss how this works a bit further down when we look at trading strategies with the Gator Oscillator.

Are you interested in practicing your trading skills under real and live market conditions? Why not register for a free demo account and put your skills to the test before taking on the live markets. Click the banner below for more:

Risk Free Demo Account

Register for a free online demo account and practise your trading strategy

Gator Oscillator: Using the Indicator in MetaTrader 4

In MetaTrader 4, the Gator Oscillator comes ready-installed as one of the indicators provided as standard. MT4 has a dedicated folder in its 'Navigator' for Bill Williams indicators as you can see in the image below:

MetaTrader 4 - Setting the parameters of the Gator Oscillator - Disclaimer: Graphics for financial instruments in this article are for illustrative purposes and does not constitute trading advice or a solicitation to buy or sell any financial instrument provided by Admirals (CFDs, ETFs, Shares). Past performance is not necessarily an indication of future performance.

This means that you don't have to make a separate Gator indicator download; as soon as you install MetaTrader 4 on your device, you will have access to the Gator Oscillator. When you launch the Gator Oscillator in MT4, you have the option to set the period values for the jaws, teeth, and lips, as well as the associated shifts. As you can see from the image above, the default values are already pre-populated at the levels originally recommended by Bill Williams. If you want to go ahead with the default values, simply click 'OK'.

You can, of course, configure these parameters to whichever values you see fit, and as you become more experienced, you might want to experiment with them. When first using the Gator Oscillator, however, it is eminently sensible to use the default values as your starting point. The image below shows what it looked like when we added the Gator Oscillator to a Forex chart for the USD/JPY pair:

Depicted: MetaTrader 4 - undated USD/JPY 1 Hour Chart with the Gator Oscillator applied - Disclaimer: Charts for financial instruments in this article are for illustrative purposes and does not constitute trading advice or a solicitation to buy or sell any financial instrument provided by Admirals (CFDs, ETFs, Shares). Past performance is not necessarily an indication of future performance.

You can see the histogram for the Gator Oscillator plotted as two histograms beneath the main chart. For any one price bar, we have a positive value for the Gator Oscillator above the zero line, and a negative value below the zero line. But how do we actually use this to help us trade?

Gator Oscillator: Trading Strategy

The Gator Oscillator trading strategy ties in closely with the ones that is used for the Alligator Indicator. Bill Williams designed the the Alligator Indicator to be an integrated approach for trading trending markets. It describes when the market is sleeping (range bound), awakening (starting to form a trend) or feeding (continuing to trend). The Gator Oscillator expands on this and describes the four following states:

  • Dormant, or sleeping – absence of a trend in the market
  • Awakening – formation of trend
  • Eating – continuation or persistence of the trend
  • Sated – a warning that the trend may be approaching its end

The Gator Indicator suggests a dormant or sleeping phase when we see both bars either side of the zero line are red. In the Alligator Indicator, this corresponds to when you see the jaw, teeth, and lips are closed, closing, or intertwined. When the Gator is sleeping like this, you should stay out of the market; the indicator is intended for trading only when the market is trending. A dormant, range-bound market, Bill Williams contended, was when you should sit on the sidelines and wait.

The awakening phase is indicated by different colours on either side of the zero line at the same time. This corresponds to the mouth widening in the Alligator Indicator. When the Gator has awoken after sleeping, it is hungry, and this is a time when you should be aiming to enter the market. When the indicator shows green bars either side of the zero line, it suggests the eating phase.

When you see this, the trend is likely to be accelerating, and you should try to run your profits. If we see a solitary red bar crop up after we have been in an eating phase, this is a sign of a sated phase. The trend is close to running out of steam, and you should take action to exit your position as favourably as you can. When bars both above and below the zero line go red, the Gator has gone back to sleep, and the trend is over. You should once again be out of the market, and will now have to await the start of a new trend.

No indicator is perfect, or even close to perfect. You've probably noted that the trading strategy above is all about timing, and doesn't give you direction. Being a trending tool, you will naturally want to be trading in the direction of the forming trend when the Gator awakens. Now, this may be apparent from simply looking at price action on the chart, but if not, you will need another indicator to aid you.

This is a generally wise idea anyway, as pairing up an indicator with another can often help to improve their effectiveness. The Gator Oscillator was intended to be used with the Alligator Indicator, so that is a natural choice. The Alligator Indicator will help indicate direction, but there is no reason you can't experiment with other indicator combinations to see what works best for you.

Although MetaTrader 4 comes bundled with a number indicators as standard, you might be interested in obtaining a more comprehensive selection of trading tools. If so, you should consider installing MetaTrader Supreme Edition. MTSE is a custom plugin for MetaTrader 4 and MetaTrader 5, designed by industry professionals to allow you to enjoy the ultimate trading experience. It offers additional indicators, as well as a variety of other cutting-edge tools.

The best way to try all these combinations out is with a demo trading account. This allows you to see how your trading strategies play out with live market prices, but keeping all your practice trades risk-free. This means that you can determine for yourself what is most likely to succeed, without risking any money.

Are you looking to always stay informed and up to date with your trading? Why not tune in to one of our free webinars and discover new trends and strategies with our in house trading experts! Click below for more:

Advanced Trading Webinars

Discover the latest trading trends, learn different strategies and get access to advanced trading tools.


The Gator Oscillator uses the convergence and divergence of the three balance lines from the Alligator Indicator to help you identify new trends. It also aids interpretation of how such trends are progressing, and when they might be coming to an end. You should bear in mind that the balance lines used to represent the jaws, lips, and teeth of the Alligator Indicator, from which we derive the Gator Oscillator, are moving averages.

As such, there is inherently some lag involved in the signals provided. The Gator Oscillator, nevertheless, can be useful for distinguishing when to trade, or when to be patient and sit out until a better trading opportunity arises. It's most effective for trading strongly directional markets, as this is the condition for which Bill Williams intended it to be used. We hope that you've found this to be a useful introduction to the Gator Oscillator, and we wish you the best of success in your trading going forward!

Other articles you may find interesting:

Frequently Asked Questions


What is the Gator Oscillator Indicator?

The Gator Oscillator is a technical analysis tool used in trading to help identify the strength and direction of a trend in financial markets. It is based on the Alligator Indicator created by Bill Williams and is used to complement other technical indicators.



How does the Gator Oscillator work?

The Gator Oscillator consists of two histogram bars, typically colored green and red. These bars represent the difference between the values of two smoothed Moving Averages (usually with periods of 5 and 8). When the bars are green, it indicates that the market is in a strong trend, while red bars suggest a weaker or sideways market.



What signals can the Gator Oscillator provide?

The Gator Oscillator provides traders with signals related to the strength and potential reversal of a trend. When the green bars grow in size, it suggests increasing trend strength. Conversely, when the red bars expand, it may signal a weakening trend or a potential reversal. Traders often use these signals in conjunction with other technical analysis tools to make informed trading decisions.



The given data provides additional information regarding all analysis, estimates, prognosis, forecasts, market reviews, weekly outlooks or other similar assessments or information (hereinafter “Analysis”) published on the websites of Admiral Markets investment firms operating under the Admiral Markets and Admirals trademarks (hereinafter “Admirals”). Before making any investment decisions please pay close attention to the following:
1. This is a marketing communication. The content is published for informative purposes only and is in no way to be construed as investment advice or recommendation. It has not been prepared in accordance with legal requirements designed to promote the independence of investment research, and that it is not subject to any prohibition on dealing ahead of the dissemination of investment research.
2. Any investment decision is made by each client alone whereas Admirals shall not be responsible for any loss or damage arising from any such decision, whether or not based on the content.
3. With view to protecting the interests of our clients and the objectivity of the Analysis, Admirals has established relevant internal procedures for prevention and management of conflicts of interest.
4. The Analysis is prepared by an independent analyst (hereinafter “Author”) based on the NAME +(Position) personal estimations.
5. Whilst every reasonable effort is taken to ensure that all sources of the content are reliable and that all information is presented, as much as possible, in an understandable, timely, precise and complete manner, Admirals does not guarantee the accuracy or completeness of any information contained within the Analysis.
6. Any kind of past or modeled performance of financial instruments indicated within the content should not be construed as an express or implied promise, guarantee or implication by Admirals for any future performance. The value of the financial instrument may both increase and decrease and the preservation of the asset value is not guaranteed.
7. Leveraged products (including contracts for difference) are speculative in nature and may result in losses or profit. Before you start trading, please ensure that you fully understand the risks involved.


How to Trade Using a Forex Currency Strength Meter
One aspect of the Forex (FX) market that differentiates it from other financial markets is the concept of currency pairs. When you take a Forex position, you gain exposure to two different currencies. This creates many interesting opportunities, including the ability to measure one currency's streng...
The Best Forex Technical Indicators
Those new to Forex trading can often feel overwhelmed by technical analysis when they first discover it. There are hundreds of different technical indicators to put on your charts when trading the financial markets and choosing the right ones to suit your trading style and strategy is crucial.In thi...
How to Trade Forex Correlations
You may often hear that the financial markets are correlated. What does this mean? Forex correlations measure how two different currency pairs move in relation to one another.When one currency pair is moving higher there is often another currency pair that is negatively correlated and moving in the...
View All