Loading…

Multi Timeframe Level Overlay

Reading a trade against the higher timeframe picture usually means flicking between several chart windows, or holding the last H4, D1 and W1 levels in your head while looking at a lower timeframe entry. This script draws those levels directly onto the chart you are already looking at: the previous completed bar's high, low and classic pivot for each higher timeframe you enable, each one labelled and colour coded. The naive version of a multi-timeframe overlay lets you request any timeframe on any chart, including one at or below the chart's own period, which produces a "higher timeframe" line that is really just today's candle drawn a second time. This script checks each requested timeframe against the chart's own period and skips anything not genuinely higher, so what gets drawn is always additional structure, never a duplicate of what the candles already show. Levels come from the previous completed bar, not the one still forming, so a level does not shift mid-session the way an in-progress high or low would. Notes and limitations - This is a one-off drawing pass, not a running indicator - the previous bar for each timeframe is fixed at the moment the script runs. Re-run it after a higher timeframe bar closes to pick up the new level. - A timeframe with too little history loaded yet on this chart is skipped and logged rather than drawing a level at zero. - Pivot is the classic (High + Low + Close) / 3 formula only; support and resistance extensions (R1, S1 and beyond) are not calculated.

Script · MT5 · v1.0 · Free

About Multi Timeframe Level Overlay

Multi Timeframe Level Overlay is a script for MetaTrader 5. It can alert you with a pop-up, sound, email or push message. It has 12 settings, such as Show h1, Show h4 and Show d1. MQL source code included.

Files in the download: MultiTimeframeLevelOverlay.ex5, MultiTimeframeLevelOverlay.mq5, MultiTimeframeLevelOverlay.txt.

Settings

SettingDefaultWhat it does
Show h1falseShow the H1 level set
Show h4trueShow the H4 level set
Show d1trueShow the D1 level set
Show w1trueShow the W1 level set
Show mn1falseShow the MN1 level set
Show hightrueDraw the previous period high
Show lowtrueDraw the previous period low
Show pivottrueDraw the classic pivot (H+L+C)/3
Color highclrDodgerBlueColour for high lines
Color lowclrOrangeRedColour for low lines
Color pivotclrGoldenrodColour for pivot lines
Cleanup firsttrueDelete this script's previous levels first

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 5 open File → Open Data Folder, then go to MQL5 → Scripts.
  3. Copy the .mq5 file(s) there. Put any .mqh files in MQL5 → Include.
  4. Open the .mq5 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the script onto a chart to run it once.

Download the PDF guide

Tags: Pivot Points · Multi-Timeframe (MTF) · Alerts · MT5 Script · MQL5 Source Code

MQL4 & MQL5 scripts · PolyMaria