OPEN-SOURCE SCRIPT

TrendMaster V2

73
🧭 TrendMaster V2 — Multi-Factor Market Analyzer

🔍 Overview

TrendMaster V2 is a comprehensive multi-factor technical analysis system designed to provide a clear visual summary of market conditions across multiple timeframes.
It combines trend, momentum, volume, volatility, and pattern recognition into a unified composite score and displays it through customizable on-chart tables.

The goal of TrendMaster V2 is to help traders interpret technical signals more efficiently not to provide trading advice or automatic buy/sell recommendations.

⚙️ Main Features

Multi-factor scoring system:
Combines moving averages, RSI, MACD, CCI, Pearson correlation, candle patterns, volume, volatility, and divergence analysis into one composite trend score.

Custom trading modes:
Choose between Aggressive, Balanced, or Conservative profiles. Each mode adjusts signal sensitivity and scoring thresholds.

Advanced indicators:

CCI & Pearson correlation for trend confirmation.
Divergence detection on RSI for potential reversals.
Candlestick pattern recognition** (engulfing, doji, morning/evening star, etc.).

Multi-Timeframe Ichimoku analysis (MTF):
View Ichimoku trend alignment across 1 m → Daily timeframes with an adjustable summary table.

Confluence analysis:
Detects when multiple bullish/bearish factors agree (trend + momentum + patterns + volume + advanced metrics).
Displays a confluence table summarizing alignment strength.

Custom color themes:
Adapt all elements for dark or light charts, including table backgrounds, signal markers, and divergence highlights.

Signal filtering options:
Display all signals, strong-only, or confluence-confirmed ones.

🧩 How It Works

TrendMaster V2 evaluates several core dimensions of market behavior and assigns weighted scores:

| Component | Description

| Trend Score | Based on the alignment of 3 MAs (fast, slow, long).
| Momentum Score | Combines RSI, MACD crossover, and rate of change (ROC).
| Pattern Score | Detects bullish and bearish candlestick structures, adjusted by trading mode.
| Volume Score | Measures volume spikes or low-activity periods relative to a moving average.
| Volatility Score | Uses ATR to gauge market activity levels.
| Divergence Score | Identifies RSI divergences with recent pivot points.
| Pearson & CCI Scores | Quantify linear correlation and mean-reversion pressure.

All these values are merged into a final composite score, which determines one of five states:

Strong Bullish
Bullish
Neutral
Bearish
Strong Bearish

The indicator can display these in the main info table and optionally draw visual markers on the chart (triangles or circles) for stronger or confluence-based signals.

🕓 **Multi-Timeframe Component

An integrated Ichimoku trend engine runs on up to six user-selected timeframes (1 min → Daily).
Each timeframe is evaluated independently and summarized in a dedicated table, showing:

↑ Bullish
↓ Bearish
• Neutral

The **MTF Trend Strength** metric measures how aligned all timeframes are — useful for identifying broad confluence between short- and long-term structures.

📊 Visual Interface

TrendMaster V2 displays three main tables directly on the chart:

1. Main Info Table – shows RSI, Score, Volume, Volatility, Pearson, CCI, Trend, Signal, and Mode.
2. Ichimoku MTF Table – summarizes cloud-based trend status for each selected timeframe.
3. Confluence Summary Table – aggregates bullish/bearish counts, MTF alignment, and overall status.

All tables use solid background colors (no transparency) to ensure visibility across different chart themes.

🔔 Alerts

Custom alerts are provided for key events, including:

* Strong Buy / Sell signals
* Bullish / Bearish confluence
* All-timeframe (MTF) alignment
* RSI divergence detections

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.