Loading…

Multi Timeframe Signal Stack

"Trade with the higher timeframe" is common advice, but checking it in practice means flipping through several chart periods and holding each one's read in your head. This indicator runs the same simple rule - close price above or below a moving average - independently on six fixed timeframes (M15, M30, H1, H4, D1, W1) and draws the result as a stack of small coloured boxes in the chart corner: green for price above its average on that timeframe, red for below. The rule itself is deliberately plain. The value is in stacking it: six greens in a row means every timeframe agrees on direction, which is the actual condition most "check the higher timeframe" advice is gesturing at without ever showing it as one picture. A mixed stack means timeframes disagree, which is itself useful information before taking a signal from just one of them. A box turns grey with "..." text if a timeframe's price or moving average could not be read yet - this happens on a symbol whose higher timeframe history has not finished loading, and is shown honestly rather than defaulting to a false colour. Notes and limitations - The six timeframes are fixed in the source (M15, M30, H1, H4, D1, W1), not user-configurable through inputs - this keeps the stack a consistent reference rather than a rebuildable custom list. - A grey box means that timeframe's data was not ready on this call, most often right after attaching the indicator to a symbol that was not already in Market Watch. It resolves itself within a few seconds once the terminal finishes syncing that timeframe's history. - This is a chart-objects-only indicator - it plots no data buffer and cannot be read by another indicator or an Expert Advisor via iCustom in any numeric sense; it is for on-chart display only.

Indicator · MT4 · v1.0 · Free

About Multi Timeframe Signal Stack

Multi Timeframe Signal Stack is an indicator for MetaTrader 4 based on Moving Average. It has 8 settings, such as Ma period, Ma method and Corner x. MQL source code included.

Files in the download: MultiTimeframeSignalStack.mq4, MultiTimeframeSignalStack.txt.

Settings

SettingDefaultWhat it does
Ma period20Period of the moving average each timeframe compares its close against
Ma methodMODE_EMAMA method (0=SMA, 1=EMA, 2=SMMA, 3=LWMA)
Corner x10Pixel offset from the chosen chart corner (horizontal)
Corner y20Pixel offset from the chosen chart corner (vertical)
Box width90Width in pixels of each timeframe's box
Box height20Height in pixels of each timeframe's box
Bull colorclrForestGreenBox colour when close is above its MA
Bear colorclrCrimsonBox colour when close is below its MA

How to install

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

Download the PDF guide

Tags: Moving Average · Multi-Timeframe (MTF) · Buy/Sell Arrows · MT4 Indicator · MQL4 Source Code

MetaTrader 4 & 5 indicators · PolyMaria