PROTECTED SOURCE SCRIPT
Telah dikemas kini

MTF Analysis Panel [Invesmate]

102
MTF Analysis Panel [Invesmate]

This indicator provides a compact Multi-Timeframe (MTF) view of trend and momentum conditions directly on the chart. It combines EMA trend checks, RSI momentum checks, and optional Relative Strength analysis to offer an intuitive overview of market structure across intraday, daily, weekly, and monthly timeframes.

Trend and Momentum Analysis

The script uses two primary methods for assessing the market:

  1. Trend Detection: Based on price relation to a user-selected EMA for each timeframe.
  2. Momentum Detection: Based on whether RSI is above or below 50 for each timeframe.


Users can independently toggle these modules through inputs to customize the panel for different analysis needs.
Trend and momentum are calculated separately to avoid bias, helping traders capture the real state of the market across multiple timeframes.

Relative Strength (Optional)

If enabled, when either Weekly or Monthly timeframes are selected, the panel will display Relative Strength (RS) data.
RS measures the stock's performance relative to a benchmark symbol (like NSE:NIFTY).
This value shows the percent outperformance or underperformance over a user-defined period (default 55 days), allowing deeper market strength analysis.

Table and Display Logic

The indicator draws a neat panel on the chart using TradingView’s table functionality.
Each selected timeframe (15m, 1h, 4h, 1D, 1W, 1M) will display:

  • Trend (EMA): Green for bullish trend (Price > EMA), Red for bearish trend (Price < EMA), Gray if neutral or not applicable.
  • Momentum (RSI): Green if RSI > 50, Red if RSI < 50, Gray if neutral.


Symbols for trend and momentum can be customized between:

  • Emoji mode (e.g., 🟢, 🔴, 🟦, 🟥)
  • Text mode (e.g., UP, DOWN, NEUTRAL)


The panel is customizable for position (Top Left, Top Right, Bottom Left, Bottom Right) to fit user preference.

Color Codes

  • Strong Bullish: All selected timeframes are trending up and momentum is rising — shown with a light green background.
  • Strong Bearish: All selected timeframes are trending down and momentum is falling — shown with a light red background.
  • Mixed: Any mixed state (some up, some down) — shown with a neutral gray background.


This helps traders instantly recognize overall market sentiment without manually checking individual timeframes.

Summary Labels

At the bottom of the panel, two powerful summaries are displayed:

  • Trend Summary: Overall trend aggregation across selected timeframes ("STRONG BULLISH", "STRONG BEARISH", or "MIXED").
  • Momentum Summary: Overall momentum aggregation ("MOMENTUM UP", "MOMENTUM DOWN", or "MOMENTUM MIXED").


When Relative Strength is available (Weekly or Monthly enabled), it is also shown separately at the bottom, providing a complete strength-versus-benchmark view.

Input Controls

  • Enable EMA Trend Check: Toggle EMA-based trend detection.
  • Enable RSI Momentum Check: Toggle RSI-based momentum detection.
  • Timeframes to Display: 15m, 1h, 4h, 1D, 1W, 1M can be independently turned on or off.
  • EMA Length per Timeframe: Customize EMA lengths for different timeframes.
  • RSI Length: Set RSI calculation period.
  • Comparative Symbol: Select the benchmark symbol for Relative Strength calculations.
  • RS Period: Choose the lookback period for Relative Strength.
  • Emoji Display Toggle: Switch between emoji-based or text-based display styles.
  • Table Location: Choose where the analysis panel appears on the chart.


Special Features

  • Realtime Updating: The panel updates dynamically as bars close, maintaining real-time relevance.
  • Maximum Label Control: Designed to respect TradingView's maximum label limits to avoid runtime errors.
  • Optimized for Performance: Uses conditional requests and security calls efficiently, minimizing script execution load.


Known Limitations

  • Request.security limitations: Relative Strength is only calculated on Daily data for stability; lower timeframe RS is not implemented.
  • TradingView Table Size: On some screen sizes or with many timeframes selected, table may overlap candles. Adjust panel location accordingly.

Nota Keluaran
Minor Bug Fix:
Rel strength Showing in Daily TF analysis .

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.