Guarda come scaricare robot di trading gratuitamente
Ci trovi su Telegram!
Unisciti alla nostra fan page
Script interessante?
Pubblica il link!
lasciare che altri lo valutino
Ti è piaciuto lo script? Provalo nel Terminale MetaTrader 5
Indicatori

MTF Trend Context - Vian - indicatore per MetaTrader 5

Visualizzazioni:
218
Valutazioni:
(1)
Pubblicato:
Freelance MQL5 Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance



See multi-timeframe trend alignment at a glance.

MTF Trend Context [Vian] is a compact MetaTrader 5 market-context indicator. It shows the directional state of five selected timeframes in one panel and summarizes whether those timeframes are broadly aligned or mixed.

How it works

Each timeframe uses the same transparent rule:

  • Bullish: Close > Fast EMA > Slow EMA
  • Bearish: Close < Fast EMA < Slow EMA
  • Neutral: every other valid configuration
  • N/A: required history or indicator data is not ready

The default EMA lengths are 20 and 50. Both are adjustable, and the Slow EMA length must remain greater than the Fast EMA length.

Confirmed closed-bar behavior

Each row uses the most recently closed bar of its own timeframe. The indicator reads price and both EMA values from shift 1, not from the current forming bar.

This behavior is identical whether a selected timeframe is lower than, equal to, or higher than the chart timeframe.

Before showing a state, the indicator checks history synchronization, available bars, and EMA calculation readiness. If the required data is unavailable, it shows N/A instead of estimating a state.

Presets

  • Scalping: M1 / M5 / M15 / H1 / H4
  • Intraday (default): M5 / M15 / H1 / H4 / D1
  • Swing: H1 / H4 / D1 / W1 / MN1
  • Custom: five user-selected MetaTrader timeframes

Changing the chart timeframe does not automatically change the selected preset.

Alignment

  • 5/5 Bullish → ALL BULLISH
  • 4/5 Bullish → MOSTLY BULLISH
  • 5/5 Bearish → ALL BEARISH
  • 4/5 Bearish → MOSTLY BEARISH
  • all other combinations → MIXED

If any row is N/A, the indicator does not promote the remaining rows into a strong alignment label. It reports MIXED together with the number of valid timeframes.

Parameters

Trend

  • Fast EMA Length — default 20
  • Slow EMA Length — default 50

Timeframes

  • Preset — Intraday by default
  • Custom TF1–TF5 — used only when Custom is selected

Display

  • Panel Corner — Top Right by default
  • Text Size — Medium by default
  • Show Alignment — true by default

Intended use

Use the panel as a quick market-context check before deeper analysis: are the timeframes you care about generally pointing in the same direction, or are they conflicting?

This is a market-context indicator, not a standalone trading signal.

Limitations

  • It does not place trades.
  • It does not generate BUY/SELL signals, entries, exits, stop losses, take profits, alerts, predictions, or backtest results.
  • EMA-based trend classification is intentionally simple and can lag price.
  • It does not measure trend quality, volatility, volume, momentum, sessions, market structure, or future returns.
  • A terminal/broker may require time to synchronize history for some timeframes. Those rows show N/A until the required data is available.

Magic Number Scorecard - win rate, profit factor and drawdown per EA Magic Number Scorecard - win rate, profit factor and drawdown per EA

Running several EAs on one account? This script groups the closed trades by magic number and shows the score of each EA: win rate, profit factor, net profit and drawdown. Read-only, writes a CSV file.

Calendar News Filter - pause any EA around high-impact news Calendar News Filter - pause any EA around high-impact news

A small include file that tells your Expert Advisor when it is inside a news window, using the economic calendar built into MetaTrader 5. No web requests and no DLL.

Weekend Gap Check - prop firm gap risk before the Friday close Weekend Gap Check - prop firm gap risk before the Friday close

Before the Friday close: estimates how much your open positions could lose if the market reopens with a gap, and compares it with the room left under the daily loss limit of the next trading day. For prop firm and funded accounts. It only reads the account.

MarketInfo MarketInfo

MarketInfo is a simple information script for MetaTrader 5. It collects and logs key data for the current instrument: prices, spread, volatility (ATR), time remaining until the bar closes, statistics covering N bars, and trend identification.