Awesome Oscillator MTF Indicator (Higher-Timeframe AO Pane)

Written by Dominic Walsh · Published · Last updated

The awesome oscillator mtf indicator draws one line in a pane below price. That line is the AO (higher TF) value of a larger timeframe. It maps onto the chart you trade, bar by bar. With HigherTF at PERIOD_H4, an H1 chart shows the H4 Awesome Oscillator as a crimson stepped line around zero. It suits traders who enter on a low timeframe and want the bigger momentum read close by.

This build ships as awesome-oscillator-mtf-indicator-indicator-forexmt4systems.ex4 for MT4 and awesome-oscillator-mtf-indicator-indicator-forexmt4systems.ex5 for MT5; the screenshots below come from EURUSD H1.

Platforms MT4 (.ex4) + MT5 (.ex5)
Chart window Separate window (levels 0)
Plots 1: AO (higher TF)
Alerts popup, push notification, email, sound
Inputs 7

What the Awesome Oscillator MTF Indicator draws on the chart

AO (higher TF) is the only plot. It is a crimson line, two pixels wide. It sits in a separate window under the candles. A silver zero level marks 0.0. Each chart bar copies the value of the bar that contains it on the bigger timeframe. The line therefore moves in flat steps. On an H1 chart with the default PERIOD_H4, four hourly bars share one reading.

Nothing prints on the first 36 bars. The draw-begin offset hides the warm-up. The platform’s own AO is a histogram. This build draws a line instead. There are no colour changes and no extra markers.

  • AO (higher TF): line, crimson, width 2
EURUSD H1 awesome oscillator mtf indicator pane: crimson AO (higher TF) steps crossing the zero level.
EURUSD H1 awesome oscillator mtf indicator pane: crimson AO (higher TF) steps crossing the zero level.

How the Awesome Oscillator MTF Indicator calculates its values

Picking the timeframe

The code checks HigherTF first. It compares that input with the chart period. A HigherTF at or below the chart falls back to the chart period. The line then never runs faster than the chart. For every bar the loop calls iBarShift with the bar’s open time. That call finds the matching bar on the bigger timeframe.

Reading the value with iAO

The buffer takes iAO at that shift. iAO is the platform’s built-in Awesome Oscillator. It is a fast simple average of the bar midpoint minus a slow one. The build adds no smoothing of its own. You see the raw value repeated across every chart bar inside one bigger candle.

Warm-up and refresh

The first pass starts 36 bars in from the oldest candle. It works forward from there. Later ticks only recompute the bars that changed. The newest bar on the bigger timeframe is still open. Its step keeps moving until that bar closes. Older steps stay fixed.

How to read the signals

Read the sign first. Above the zero level, the fast average leads the slow one. Momentum then favours longs. Below zero it favours shorts. A cross of the 0.0 level is the big-picture event to mark.

Then read the slope and the steps. A line stepping up from a trough below zero shows momentum turning. The chart itself may still look weak. A peak rolling over above zero is the mirror for shorts. On the EURUSD H1 chart each step spans four candles. Only the current step is still changing.

Alert channels in this build: popup, push notification, email and sound.

The inputs panel carries EnableAlerts, EnablePopup, EnablePushNotify, EnableEmail and EnableSound. They cover popup, push, email and sound output. No rule in this build calls them, so the AO (higher TF) line draws without an alert.

Every Awesome Oscillator MTF Indicator input

Core settings

Setting What it does Default
HigherTF HigherTF defaults to PERIOD_H4. It names the timeframe whose Awesome Oscillator fills the pane. Raise it to PERIOD_D1 for a swing bias on an H4 chart. Set it at or below the chart period to see the plain AO. PERIOD_H4

Alert settings

Setting What it does Default
EnableAlerts (see inputs panel) on
EnablePopup (see inputs panel) on
EnablePushNotify (see inputs panel) off
EnableEmail (see inputs panel) off
EnableSound (see inputs panel) off
SoundFile (see inputs panel) alert.wav
Awesome oscillator mtf indicator inputs: HigherTF at PERIOD_H4 plus the EnableAlerts and EnablePopup switches.
Awesome oscillator mtf indicator inputs: HigherTF at PERIOD_H4 plus the EnableAlerts and EnablePopup switches.

Settings that fit your chart

The stepped read fits intraday charts best. The screenshots use EURUSD H1 with the default PERIOD_H4. That gives four chart bars per step on a liquid pair. The same pairing works on other majors and on gold. M15 with HigherTF at PERIOD_H1 gives four-bar steps again. Thin or gappy symbols produce uneven steps. iBarShift then maps chart bars onto bars that may be missing.

When the Awesome Oscillator MTF Indicator fails

The current step keeps moving until its bar closes. Every chart bar inside the open H4 candle shares one value. That value shifts with price. A zero cross seen at 10:00 can be gone by 11:00. Only steps from closed bars are final.

Lag compounds. The slow average inside the AO already trails price. The bigger timeframe trails the chart on top of that. In a fast reversal the H4 line can still sit above zero. By then the hourly chart has broken structure.

Ranges produce zero-line chop. A sideways higher timeframe leaves the line hovering around 0.0. It flips sign every few steps. Filter those crosses with structure or a second tool.

Copy awesome-oscillator-mtf-indicator-indicator-forexmt4systems.ex4 into MQL4/Indicators and awesome-oscillator-mtf-indicator-indicator-forexmt4systems.ex5 into MQL5/Indicators, then restart the terminal and drag the Awesome Oscillator MTF Indicator onto a chart. The step-by-step guide with screenshots is at how to install MT4 and MT5 indicators.

Download the Awesome Oscillator MTF Indicator for MT4 and MT5

The zip awesome-oscillator-mtf-indicator-indicator-forexmt4systems.zip holds awesome-oscillator-mtf-indicator-indicator-forexmt4systems.ex4, awesome-oscillator-mtf-indicator-indicator-forexmt4systems.ex5 and a short README, compiled files only. Enter your email below and the download link arrives in your inbox.

Download this indicator free

Enter your email and the file is yours. You also get the full MT4 and MT5 library.

  • 1,380+ indicators
  • MT4 and MT5 files
  • No spam, unsubscribe any time

FAQ

Why does the AO (higher TF) line move in flat steps on an H1 chart?

Each hourly bar asks iBarShift which H4 bar contains it. It then copies that bar’s Awesome Oscillator value. Four consecutive H1 bars point at the same H4 bar. They share one reading until the next H4 bar starts. Step width follows HigherTF, so PERIOD_D1 gives day-wide steps.

What happens when HigherTF is set to the same period as the chart?

The code checks HigherTF against the chart period on every pass. An input at or below the chart period drops out. The code uses the chart period instead. You then get the plain Awesome Oscillator of the chart, drawn as a line. That is why an H4 chart with the default PERIOD_H4 shows no steps.

Why did a zero cross on the current AO step vanish an hour later?

The newest step belongs to a bar that is still forming. Its AO value updates with every tick. A cross above 0.0 in the first hour of an H4 candle can reverse before that candle closes. Read the step to the left if you need a fixed value.

Why are the first 36 bars of the AO pane blank?

The build sets a draw-begin of 36 bars. Its first calculation pass also starts 36 bars from the oldest candle. That margin gives the slow average inside the Awesome Oscillator enough history. The line then starts at a real reading instead of spiking from zero.

Are results guaranteed?

No. Trading involves risk. Results are not guaranteed; past performance is not indicative of future results. Use the Awesome Oscillator MTF Indicator as one input. Always backtest before trading live.

Category: this is part of our Oscillators collection. Also, still, hence, plainly, truly, browse more Oscillators for MetaTrader, or explore every MT4 indicator and MT5 indicator on the site.

External references

Dominic Walsh - Forex trader and MT4/MT5 developer

About the author

Written by Dominic Walsh, a Forex trader and MT4/MT5 indicator, Expert Advisor and script developer. Every tool on forexmt4systems.com is tested on live charts before release and ships with ready-to-use compiled MT4 (.ex4) and MT5 (.ex5) files. Learn more about the trader and developer behind this site.

How we build, test and correct every tool: Editorial & Testing Policy. Trading carries risk; see the disclaimer.

Leave a Comment