Volume HeatMap Divergence [BigBeluga]🔵 OVERVIEW
The Volume HeatMap Divergence is a smart volume visualization tool that overlays normalized volume data directly on the chart. Using a color heatmap from aqua to red, it transforms raw volume into an intuitive scale — highlighting areas of weak to intense market participation. Additionally, it detects volume-based divergences from price to signal potential reversals or exhaustion zones. Combined with clear visual labeling, this tool empowers traders with actionable volume insights.
🔵 CONCEPTS
Normalized Volume Heatmap : Volume is normalized to a 0–100% scale and visually represented as candles below the chart.
float vol = volume / ta.percentile_nearest_rank(volume, 1000, 100) * 100
Bar Coloring : Price candles are dynamically colored based on volume intensity.
Volume Divergence Logic :
Bullish Divergence : Price forms a lower low, but volume forms a higher low.
Bearish Divergence : Price forms a higher high, but volume forms a lower high.
Dynamic Detection Range : Customizable range ensures divergence signals are meaningful and not random.
Volume Labels : Additional info on divergence bars shows both the actual volume and its normalized % score.
🔵 FEATURES
Volume Heatmap Plot : Normalized volume values colored using a smooth gradient from aqua (low) to red (high).
Price Bar Coloring : Candlesticks on the main chart adopt the same heatmap color based on volume.
Divergence Detection :
Bullish divergence with label and low marker
Bearish divergence with label and high marker
Dual Divergence Labels :
On the volume plot : Direction (Bull/Bear), raw volume, and normalized %
On the price chart : Shape labels showing "Bull" or "Bear" at local highs/lows
Custom Inputs :
Divergence range (min & max), pivot detection distance (left/right)
Toggle to show/hide divergence labels, volume, and % text
Clear Bull/Bear Coloring : Fully customizable label and line colors for both bullish and bearish signals.
🔵 HOW TO USE
Use the indicator as an overlay to monitor real-time volume strength using the heatmap color.
Watch for divergence markers:
Bullish divergence: Candle shows higher volume while price makes a new low
Bearish divergence: Candle shows lower volume while price makes a new high
Use the volume info labels to verify the context of divergence:
Actual volume at divergence candle
Normalized % of that volume compared to past 1000 bars
Adjust pivot sensitivity using "Pivot Left" and "Pivot Right" to tune signal frequency and lag with a right pivot length.
Use divergence zones as early warnings for potential reversals or trend shifts.
Disable or customize labels in settings depending on your charting preferences.
🔵 CONCLUSION
Volume HeatMap Divergence merges heatmap-style volume visualization with intelligent divergence detection — giving traders a clean yet powerful edge. By revealing hidden disconnections between price and participation, it helps users spot exhaustion moves or hidden accumulation zones before the market reacts. Whether you’re a scalper, swing trader, or intraday strategist, this tool offers real-time clarity on who’s in control behind the candles.
指標和策略
Major exchages total Open interest & Long/Short OI trends📊 Indicator: Major Exchanges Total OI & Long/Short Trends
This Pine Script™ indicator is designed to provide a comprehensive analysis of Open Interest (OI) and Long/Short position trends across major cryptocurrency exchanges (Binance, Bybit, OKX, Bitget, HTX, Deribit). It serves as a powerful tool for traders seeking to understand market liquidity, participant positioning, and overall market sentiment.
🔑 Key Features and Functionalities
Aggregated Multi-Exchange Open Interest (OI):
Consolidates real-time Open Interest data from user-selected major cryptocurrency exchanges.
Provides a unified view of the total OI, offering insights into the collective market liquidity and the aggregate size of participants' open positions.
Visualized Combined OI Candles:
Presents the aggregated total OI data in a candlestick chart format.
Displays the Open, High, Low, and Close of the combined OI, with color variations indicating increases or decreases from the previous period. This enables intuitive visualization of OI trend shifts.
Estimated Long/Short OI and Visualization:
Calculates and visualizes estimated Long and Short position Open Interest based on the total aggregated OI data.
Estimation Logic:
Employs a sophisticated logic that considers both price changes and OI fluctuations to infer the balance between Long and Short positions. For instance, an increase in both price and OI may suggest an accumulation of Long positions, while a price decrease coupled with an OI increase might indicate growing Short positions.
Initial 50:50 Ratio:
The estimation for Long/Short OI begins with an assumption of a 50:50 ratio at the initial data point available for the selected timeframe. This establishes a neutral baseline, from which subsequent price and OI changes drive the divergence and evolution of the estimated Long/Short balance.
Flexible Visualization Options:
Allows users to display Long/Short OI data in either line or candlestick styles, with customizable color schemes. This flexibility aids in clearly discerning bullish or bearish positioning trends.
💡 Development Background
The development of this indicator stems from the critical importance of Open Interest data in the cryptocurrency derivatives market. Recognizing the limitations of analyzing individual exchange OI in isolation, the primary objective was to integrate data from leading exchanges to offer a holistic perspective on market sentiment and overall positioning dynamics.
The inclusion of the Long/Short position estimation feature is crucial for deciphering the specific directional biases of market participants, which is often not evident from raw OI data alone. This enables a deeper understanding of how positions are being accumulated or liquidated, moving beyond simple OI change analysis.
Furthermore, a key design consideration was to leverage the characteristic where the indicator's data start point dynamically adjusts with the chart's timeframe selection. This allows for the analysis of short-term Long/Short trends on shorter timeframes and long-term trends on longer timeframes. This inherent flexibility empowers traders to conduct analyses across various time scales, aligning with their diverse trading strategies.
🚀 Trading Applications
Leveraging Combined Open Interest (OI):
Trend Confirmation: A sustained increase in total OI signifies growing market interest and capital inflow, potentially confirming the strength of an existing trend. Conversely, decreasing OI may suggest diminishing participant interest or widespread position liquidation.
Validation of Price Extremes: If price forms a new high but OI fails to increase or declines, it could signal a potential trend reversal (divergence). Conversely, a sharp increase in OI during a price decline might indicate a surge in short positions or renewed selling pressure.
Identifying Volatility Triggers: Monitoring rapid shifts in OI during significant news events or market catalysts can help assess immediate market reactions and liquidity changes.
📈Utilizing Long/Short OI Trends
Assessing Market Bias: A sustained dominance or rapid increase in Long OI suggests a prevalent bullish sentiment, which could inform decisions to enter or maintain long positions. The inverse scenario indicates bearish sentiment and potential short entry opportunities.
Anticipating Squeezes: The indicator can help identify scenarios conducive to short or long squeezes. Excessive short positioning followed by a price uptick can trigger a short squeeze, leading to rapid price appreciation. Conversely, an oversupply of long positions preceding a price drop can result in a long squeeze and sharp declines.
Divergence Analysis: Divergences between price action and Long/Short OI estimates can signal potential trend reversals. For example, if price is rising but the increase in Long OI slows down or Short OI begins to grow, it may suggest weakening buying pressure.
🕔Timeframe-Specific Trend Analysis:
Shorter Timeframes (e.g., 1m, 5m, 15m): Ideal for identifying short-term shifts in participant positioning, beneficial for day trading and scalping strategies. Provides insights into immediate market reactions to price movements.
Longer Timeframes (e.g., 1h, 4h, Daily): Valuable for evaluating broader positioning trends and the sustainability or potential reversal of medium-to-long-term trends. Offers a macro perspective on Long/Short dynamics, suitable for swing trading or long-term investment strategies.
This indicator integrates complex market data, provides nuanced Long/Short position estimations, and offers multi-timeframe analytical capabilities, empowering traders to make more informed and strategic decisions.
Multi Market Structure TrendOVERVIEW
Multi Market Structure Trend is a multi-layered market structure analyzer that detects trend shifts across five independent pivot-based structures . Each pivot uses a different lookback length, offering a comprehensive view of structural momentum from short-term to long-term.
The indicator visually displays the net trend direction using colored candlesticks and a dynamic gauge that tracks how many of the 5 market structure layers are currently bullish or bearish.
⯁ STRUCTURE TRACKING SYSTEM
The indicator tracks five separate market structure layers in parallel using pivot-based breakouts. Each one can be individually enabled or disabled.
Each structure works as follows:
A bullish MSB (Market Structure Break) occurs when price breaks above the most recent swing high.
A bearish MSB occurs when price breaks below the most recent swing low.
Structure breaks are plotted as horizontal lines and labeled with the number (1 to 5) corresponding to their pivot layer.
⯁ CANDLE COLOR GRADIENT SYSTEM
The indicator calculates the average directional bias from all enabled market structures to determine the current trend score.
Each structure contributes a score of +1 for bullish and -1 for bearish.
The total score ranges from -5 (all bearish) to +5 (all bullish) .
Candlesticks are colored using a smooth gradient:
Bright Green: Strong bullish trend (e.g., +5).
Orange: Neutral mixed trend (e.g., 0).
Red: Strong bearish trend (e.g., -5).
⯁ TREND GAUGE PANEL
Displayed at the middle-right side of the chart, the gauge shows the current trend strength in real time.
The bar consists of up to 10 gradient cells (5 up, 5 down).
Each active market structure pushes the score in one direction.
The central cell displays a numeric trend score:
+5 = All 5 market structures bullish
0 = Mixed/neutral trend
-5 = All 5 market structures bearish
Colors of the gauge bars match the candle gradient system.
⯁ USAGE
This indicator is highly effective for traders who want to:
Monitor short- and long-term structure shifts simultaneously on a single chart.
Use structure alignment as a trend confirmation tool — for example, waiting for at least 2 out of 5 structures to align before entering a trade.
Visually filter noise from different time horizons using the gauge and candle gradient.
Track CHoCH (Change of Character) transitions clearly and across multiple scales.
⯁ CONCLUSION
Multi Market Structure Trend offers a unique and powerful way to assess trend direction using stacked market structure logic. With five independently calculated structure layers, colored candle feedback, and a real-time trend gauge, traders can better time entries, filter noise, and confirm multi-timeframe alignment — all within a single chart overlay.
Robust Scaled Dema | OquantOverview
The Robust Scaled DEMA indicator is a tool designed for traders seeking to identify potential trend directions in financial markets. It combines the smoothing capabilities of a Double Exponential Moving Average (DEMA) with a robust scaling mechanism to normalize the data, making it more resilient to outliers and extreme price movements. This scaling helps in generating long and short signals based on predefined thresholds, visualized through color-coded plots and bars. The indicator aims to provide a balanced view of market momentum, reducing the impact of noise while highlighting significant shifts in price behavior.
Key Factors/Components
DEMA (Double Exponential Moving Average): Serves as the core smoothing component, reducing lag compared to simple averages by emphasizing recent price action more effectively.
Robust Scaling Mechanism: Utilizes statistical measures like median and interquartile range to normalize the DEMA values, ensuring the indicator is less sensitive to extreme values or price spikes.
Thresholds: User-defined upper and lower levels that trigger long or short signals when the scaled DEMA crosses them.
Visual Elements: Includes plotted lines for the scaled DEMA and thresholds, plus color-coded candlestick bars for intuitive interpretation.
Alerts: Built-in conditions for notifying users of potential entry points for long or short positions.
How It Works
The indicator starts by applying a DEMA to the chosen price source to create a smoothed representation of the market's direction. This smoothed value is then scaled using a robust statistical approach that accounts for the distribution of recent DEMA values, centering it around a median and adjusting for variability to minimize the influence of outliers. The resulting scaled metric is compared against user-set upper and lower thresholds: crossing above the upper suggests a bullish momentum (long signal), while dipping below the lower indicates bearish conditions (short signal). A state variable tracks these conditions to color the chart accordingly, helping traders visualize regime changes. Optional alerts fire on transitions.
For Who Is Best/Recommended Use Cases
This indicator is ideal for traders who employ trend-following or momentum-based strategies and need tools that perform well in non-normal market conditions, such as during high volatility or in assets prone to spikes. Use cases include identifying entry/exit points in trending environments, confirming breakouts, or integrating into multi-indicator systems for added confirmation. Quantitative traders or those backtesting strategies will appreciate its customizable parameters for optimization.
Settings and Default Settings
Source: The price data input for calculations, such as close, open, high, or low. Default: close.
DEMA Length: Controls the period for the DEMA smoothing; shorter values increase responsiveness but may add noise, longer ones provide more lag but smoother signals. Default: 25.
Robust Scaling Length: Defines the lookback period for the scaling statistics; affects how adaptive the normalization is to recent data distributions. Default: 40.
Upper Threshold: The level above which a long signal is triggered; higher values make signals rarer but potentially more reliable. Default: 0.5.
Lower Threshold: The level below which a short signal is triggered; lower values allow for more aggressive bearish detection. Default: 0.
Conclusion
The Robust Scaled DEMA offers an outlier-resistant alternative to traditional moving average indicators, empowering traders to navigate volatile markets. By blending exponential smoothing with statistical robustness, it provides actionable insights into trend shifts while minimizing false positives from extreme events..
⚠️ Disclaimer: This indicator is intended for educational and informational purposes only. Trading/investing involves risk, and past performance does not guarantee future results. Always test and evaluate indicators/strategies before applying them in live markets. Use at your own risk.
Liquidity + Order-Flow Exhaustion (Smart-Money Logic)Liquidity + Order-Flow Exhaustion (Smart-Money Logic) is a visual tool that helps traders recognize where big market participants (“smart money”) are likely accumulating or distributing positions.
It identifies liquidity sweeps (stop-hunts above or below previous swing levels) and market structure shifts (reversals confirmed by price closing back in the opposite direction).
In simple terms, it shows where price “tricks” retail traders into chasing breakouts — right before reversing.
How it works:
The script scans recent highs and lows to find when price breaks them and quickly rejects — a sign of stop-hunts or liquidity grabs.
It then checks for a close back inside the previous range to confirm a possible Market Structure Shift (MSS).
When this happens, the chart highlights the zone and optionally adds directional labels (🔹 or 🔸) to mark where the liquidity event occurred.
How to read the signals:
🟢 Bullish shift — Price takes out a previous low, then closes higher. This often marks the end of a short-term down-move.
🔴 Bearish shift — Price sweeps a previous high, then closes lower. This often marks the end of a short-term rally.
Colored backgrounds and labels help visualize these key reversals directly on the chart.
How to use it:
Apply to any timeframe; 15-minute to 4-hour charts work best.
Use it to confirm reversals near major swing points or liquidity zones.
Combine with volume spikes, displacement candles, or Fair-Value Gaps (FVGs) for stronger confirmation.
What makes it original:
Simple, self-contained logic inspired by Smart Money Concepts (SMC).
Automatically detects both liquidity sweeps and the subsequent structural shift.
Visual and alert-ready design — perfect for discretionary or algorithmic strategies.
Tip: For even better accuracy, align detected shifts with higher-timeframe bias or VWAP deviations.
SuperTrend Dual RMAOverview
The SuperTrend Dual RMA is a hybrid volatility-based trend-following system that merges two Relative Moving Averages (RMAs) with an Average True Range (ATR)–anchored SuperTrend framework. The primary purpose of this indicator is to offer a smoother and more reliable depiction of directional bias while maintaining sensitivity to price volatility and market volume.
Traditional SuperTrend implementations typically rely on a single moving average and a fixed volatility envelope. This dual RMA structure introduces an adaptive central tendency line that reacts proportionally to both price and volume, allowing for more nuanced identification of trend reversals and continuation patterns.
**Core Concept**
The indicator is built around two key principles — smoothing and volatility adaptation.
1. **Smoothing:** The use of two separate RMAs with configurable lengths creates a dynamic equilibrium between short-term responsiveness and long-term stability. The first RMA captures near-term directional shifts, while the second provides broader market context. The average of both becomes the foundation of the SuperTrend bands.
2. **Volatility Adaptation:** The ATR multiplier and period define the distance between upper and lower bands relative to recent volatility. This ensures that the SuperTrend line remains flexible across varying market conditions — expanding during high volatility and contracting during calm phases.
**Calculation Steps**
* The indicator first computes two volume-weighted RMAs based on the typical price (`hlc3`) multiplied by trading volume.
* Each RMA is normalized by the smoothed volume to maintain proportional weighting.
* These two RMAs are averaged to produce a “basis line” that reflects the current market consensus price.
* The ATR is calculated over a user-defined period, then multiplied by a volatility factor (ATR multiplier).
* The resulting ATR value defines dynamic upper and lower thresholds around the basis line.
* Trend direction is determined by price closing behavior relative to these thresholds:
* When the closing price exceeds the upper band, the trend is considered bullish.
* When it drops below the lower band, the trend turns bearish.
* If price remains within the bands, the prior trend direction is maintained for consistency.
**Visual Structure**
The SuperTrend Dual RMA provides multiple layers of visual feedback for enhanced interpretation:
* Two distinct RMA lines (short and long) are plotted with complementary colors for contrast and clarity.
* A soft fill between the RMA lines highlights the interaction between short- and medium-term momentum.
* The ATR-based SuperTrend bands are drawn above and below the basis, with adaptive coloring that corresponds to the prevailing trend direction.
* Bar colors automatically adjust to reflect bullish or bearish bias, making it easy to identify trend shifts without relying solely on crossovers.
* Optional triangle markers appear below or above bars to signal potential buy or sell opportunities based on crossover logic.
**Signals and Alerts**
The indicator provides real-time crossover detection:
* **Buy Signal:** Triggered when the closing price moves above the SuperTrend line, confirming potential bullish continuation or reversal.
* **Sell Signal:** Triggered when the closing price drops below the SuperTrend line, indicating possible bearish momentum or reversal.
Both conditions have built-in `alertcondition()` functions, allowing users to set automated alerts for trading or monitoring purposes. This enables integration with TradingView’s alert system for push notifications, emails, or webhook connections.
**Usage Guidelines**
* **Trend Identification:** Use the color-coded trend line and bar color as a visual guide to the current directional bias.
* **Entry and Exit Timing:** Consider entering trades when a new crossover alert appears, preferably in the direction of the overall higher-timeframe trend.
* **Parameter Tuning:** Adjust the RMA lengths and ATR parameters based on asset volatility. Shorter RMA and ATR settings provide faster reactions, suitable for intraday or high-frequency trading, while longer configurations better fit swing or position strategies.
* **Risk Management:** Because the SuperTrend inherently acts as a dynamic stop level, traders can use the opposite band or SuperTrend line as a trailing stop or exit signal.
**Practical Applications**
* Trend confirmation in multi-timeframe strategies.
* Adaptive trailing stop placement using the lower or upper band.
* Visual comparison of volume-weighted price movement against volatility envelopes.
* Integration into algorithmic trading systems as a signal filter or trend bias component.
* Identification of overextended conditions when price significantly diverges from the SuperTrend basis.
**Originality and Advantages**
The SuperTrend Dual RMA differentiates itself from conventional SuperTrend scripts through three innovative design choices:
1. **Dual Volume-Weighted RMAs:** By incorporating two RMAs weighted by trading volume, the indicator accounts for liquidity dynamics, producing smoother and more reliable averages compared to price-only calculations.
2. **Anchored SuperTrend Framework:** The SuperTrend bands are not derived from a fixed source (such as a single close or median price) but from a blended RMA basis, making them more adaptable to varying market behaviors.
3. **Integrated Multi-Layer Visualization:** The inclusion of filled regions between RMAs, dynamic band coloring, and bar tinting enhances readability and analytical depth without overwhelming the chart.
These improvements collectively create a more balanced and data-rich representation of market structure, offering a higher degree of analytical precision. It’s suitable for traders seeking both discretionary and systematic use, as the indicator’s logic is transparent and compatible with alert-based or automated workflows.
**Summary**
The SuperTrend Dual RMA is a refined evolution of the classic SuperTrend, optimized for traders who value smoother directional tracking and more intelligent volatility adaptation. It blends two time-sensitive, volume-aware moving averages with an ATR-derived volatility system to deliver reliable, actionable trend information. Its visual design, adaptive responsiveness, and integrated alert functionality make it a complete solution for identifying and managing trends across multiple asset classes and timeframes.
Trend Meter [MMT]The Trend Meter is a dynamic Pine Script indicator designed to provide traders with a clear, multi-dimensional view of market trends and momentum across different timeframes and metrics. By integrating Exponential Moving Averages (EMAs), Volume-Weighted Average Price (VWAP), higher timeframe (HTF) analysis, and Regular Trading Hours (RTH) breakouts, this indicator offers a comprehensive tool for identifying bullish, bearish, or neutral market conditions. Its customizable visual display and label system make it ideal for traders seeking actionable insights for trend-following, breakout, or reversal strategies.
Key Features:
1. Multi-Metric Trend Analysis:
- Trend Meter : Compares a Fast EMA (default: 9) and Slow EMA (default: 21) to determine short-term trend direction.
- Bias Meter : Uses a longer-term Bias EMA (default: 35) to assess the overall market bias based on the close price.
- VWAP Meter : Evaluates price position relative to the VWAP for dynamic support/resistance insights.
- HTF Meter : Analyzes higher timeframe (default: 60-minute) price action, detecting breakouts of previous highs/lows and candle direction.
- RTH Meter : Tracks price breakouts above/below the US Regular Trading Hours (09:30–16:00 EST) 15m opening range (09:30–09:45 EST).
2. Color-Coded Visuals:
- Each metric is displayed as a horizontal line with customizable colors (green for bullish, red for bearish, gray for neutral).
- Visual style options (dotted, dashed, or solid lines) allow for personalized chart clarity.
3. Dynamic Labels:
- Optional labels for each metric (Trend, Bias, VWAP, HTF, RTH) with customizable text, size (tiny to huge), and color.
- Labels update in real-time, providing clear identification of each meter’s role and current state.
4. Flexible Metric Selection:
- Toggle individual metrics (EMA, VWAP, HTF, RTH) on/off to focus on relevant indicators for your trading style.
- Option to use the previous bar’s close price for calculations, reducing noise in volatile markets.
5. RTH and Opening Range Analysis:
- Calculates the high/low of the opening range (09:30–09:45 EST) during RTH sessions.
- Signals bullish or bearish conditions when the price breaks above/below the opening range outside the initial 15-minute window.
6. Higher Timeframe Breakout Detection:
- Monitors HTF price action to identify breakouts of the previous candle’s high or low, combined with the HTF candle’s direction for trend confirmation.
How to Use:
- Trend Confirmation : Use the Trend and Bias Meters to confirm short-term and long-term market direction.
- Breakout Trading : Leverage the RTH Meter for breakout setups above/below the opening range during US trading hours.
- Support/Resistance : Utilize the VWAP Meter to identify dynamic price levels for entries or exits.
- Higher Timeframe Context : Monitor the HTF Meter for broader market trend alignment, ideal for swing or position trading.
- Customization : Adjust EMA lengths, toggle metrics, and customize visual styles and labels to suit your chart preferences.
Settings:
- Bias Settings :
- Fast EMA (default: 9), Slow EMA (default: 21), Bias EMA (default: 35).
- Higher Timeframe (default: 60-minute).
- Option to use previous close price for calculations.
- Enable/disable individual metrics (EMA, VWAP, HTF, RTH).
- Visual Settings :
- Bullish (green), bearish (red), and neutral (gray) colors.
- Line style (dotted, dashed, solid).
- Label Settings :
- Enable/disable labels.
- Customize label size (tiny, small, normal, large, huge) and text color.
- Custom text for each meter’s label (Trend, Bias, VWAP, HTF, RTH).
Notes:
- Optimized for intraday trading (e.g., 1m, 5m, 15m) but adaptable to any timeframe.
- RTH and opening range calculations are tailored for US markets (EST timezone); adjust session times in the code for other markets.
- Higher timeframe analysis enhances context for multi-timeframe strategies.
Ideal For:
- Intraday traders targeting RTH breakout opportunities.
- Swing traders aligning with higher timeframe trends.
- Traders using VWAP and EMA-based strategies for trend and momentum analysis.
- Those seeking a clean, customizable dashboard for multi-metric market analysis.
Contango/Backwardation Monitor
This is an indicator to display the spread difference between two products. I designed it around VX1! and VX2! but any other two products can be chosen. It is a simple subtraction of VX2-VX1. I will go through the options first and what they do followed by what contango/backwardation is in my own words. You will need the data package for VX futures for the default version to work.
INPUTS
-Apply Smoothing: choose to apply smoothing or not.
-Smoothing Method: choose between SMA,EMA,WMA, etc.
-Line Width: Width of line if line is chosen style(can be changed in style section)
-Threshold 1-5: This is the level at which the line will change colors(defaults are for VX)
-Color 1-5: The color the line will change to when crossing threshold.
Towards Backwardation: Background color change when line is slanted down
Towards Contango: Background color change when line is slanted up
Bars to Confirm Trend: This is my method to cut down on background color changes. It is how many bars consecutive going back needed to change color.
STYLE
-All colors and whatnot can be changed here(threshold colors can be changed here or on the input page).
T1 Line-T5 line: These are simple horizontal lines that can be used to denote threshold areas or whatever you want.
Contango/Backwardation-These terms are used mostly with futures to define the calendar spread between two contracts. Contango is when that spread is is getting longer and backwardation is when that spread is closing. In terms of VIX futures, Contango would imply that volatility is stabilizing and the S and P will likely gain. Backwardation, woudl eb the opposite.
The most simple way to read this indicator with default settings- If the line is up, red, and the background is red, then you can assume S and P prices are going down. And if the opposite is true, then prices are likely going up.
Please feel free to ask any questions and I will do my best to answer them.
Holographic Market Microstructure | AlphaNattHolographic Market Microstructure | AlphaNatt
A multidimensional, holographically-rendered framework designed to expose the invisible forces shaping every candle — liquidity voids, smart money footprints, order flow imbalances, and structural evolution — in real time.
---
📘 Overview
The Holographic Market Microstructure (HMS) is not a traditional indicator. It’s a visual architecture built to interpret the true anatomy of the market — a living data structure that fuses price, volume, and liquidity into one coherent holographic layer.
Instead of reacting to candles, HMS visualizes the market’s underlying micro-dynamics : where liquidity hides, where volume flows, and how structure morphs as smart money accumulates or distributes.
Designed for system-based traders, volume analysts, and liquidity theorists who demand to see the unseen — the invisible grid driving every price movement.
---
🔬 Core Analytical Modules
Microstructure Analysis
Deconstructs each bar’s internal composition to identify imbalance between aggressive buying and selling. Using a configurable Imbalance Ratio and Liquidity Threshold , the algorithm marks low-liquidity zones and price inefficiencies as “liquidity voids.”
• Detects hidden supply/demand gaps.
• Quantifies micro-level absorption and exhaustion.
• Reveals flow compression and expansion phases.
Smart Money Tracking
Applies advanced volume-rate-of-change and price momentum relationships to map institutional activity.
• Accumulation Zones – Where price rises on expanding volume.
• Distribution Zones – Where price declines on rising volume.
• Automatically visualized as glowing boxes, layered through time to simulate footprint persistence.
Fractal Structure Mapping
Reveals the recursive nature of price formation. HMS detects fractal highs/lows, then connects them into an evolving structure.
• Defines nested market structure across multiple scales.
• Maps trend progression and transition points.
• Renders with adaptive glow lines to reflect depth and strength.
Volume Heat Map
Transforms historical volume data into a 3D holographic heat projection.
• Each band represents a volume-weighted price level.
• Gradient brightness = relative participation intensity.
• Helps identify volume nodes, voids, and liquidity corridors.
HUD Display System
Real-time analytical dashboard summarizing the system’s internal metrics directly on the chart.
• Flow, Structure, Smart$, Liquidity, and Divergence — all live.
• Designed for both scalpers and swing traders to assess micro-context instantly.
---
🧠 Smart Money Intelligence Layer
The Smart Money Index dynamically evaluates the harmony (or conflict) between price momentum and volume acceleration. When institutions accumulate or distribute discreetly, volume surges ahead of price. HMS detects this divergence and overlays it as glowing smart money zones.
◈ ACCUM → Institutional absorption, early uptrend formation.
◈ DISTRIB → Distribution and top-heavy conditions.
○ IDLE → Neutral flow equilibrium.
Divergences between price and volume are signaled using holographic alerts ( ⚠ ALERT ) to highlight exhaustion or trap conditions — often precursors to structural reversals.
---
🌀 Fractal Market Structure Engine
The fractal subsystem recursively identifies local pivot symmetry, connecting micro-structural highs and lows into a holographic skeleton.
• Bullish Structure — Higher highs & higher lows align (▲ BULLISH).
• Bearish Structure — Lower highs & lower lows dominate (▼ BEARISH).
• Ranging — Fractal symmetry balance (◆ RANGING).
Each transition is visually represented through adaptive glow intensity, producing a living contour of market evolution .
---
🔥 Volume Heat Map Projection
The heatmap acts as a volumetric X-ray of the recent 100–300 bars. Each horizontal segment reflects liquidity density, rendered with gradient opacity from cold (inactive) to hot (highly active).
• Detects hidden accumulation shelves and distribution ridges.
• Identifies imbalanced liquidity corridors (voids).
• Reveals the invisible scaffolding of the order book.
When combined with smart money zones and structure lines, it creates a multi-layered holographic perspective — allowing traders to see liquidity clusters and their interaction with evolving structure in real time.
---
💎 Holographic Visual Engine
Every element of HMS is dynamically color-mapped to its visual theme . Each theme carries a distinct personality:
Aeon — Neon blue plasma aesthetic; futuristic and fluid.
Cyber — High-contrast digital energy; circuit-like clarity.
Quantum — Deep space gradients; reflective of non-linear flow.
Neural — Organic transitions; biological intelligence simulation.
Plasma — Vapor-bright gradients; high-energy reactive feedback.
Crystal — Minimalist, transparent geometry; pristine data visibility.
Optional Glow Effects and Pulse Animations create a living hologram that responds to real-time market conditions.
---
🧭 HUD Analytics Table
A live data matrix placed anywhere on-screen (top, middle, or side). It summarizes five critical systems:
Flow: Order flow bias — ▲ BUYING / ▼ SELLING / ◆ NEUTRAL.
Struct: Microstructure direction — ▲ BULLISH / ▼ BEARISH / ◆ RANGING.
Smart$: Institutional behavior — ◈ ACCUM / ◈ DISTRIB / ○ IDLE.
Liquid: Market efficiency — ⚡ VOID / ● NORMAL.
Diverg: Price/Volume correlation — ⚠ ALERT / ✓ CLEAR.
Each metric’s color dynamically adjusts according to live readings, effectively serving as a neural HUD layer for rapid interpretation.
---
🚨 Alert Conditions
Stay informed in real time with built-in alerts that trigger under specific structural or liquidity conditions.
Liquidity Void Detected — Market inefficiency or thin volume region identified.
Strong Order Flow Detected — Aggressive buying or selling momentum shift.
Smart Money Activity — Institutional accumulation or distribution underway.
Price/Volume Divergence — Volume fails to confirm price trend.
Market Structure Shift — Fractal structure flips directional bias.
---
⚙️ Customization Parameters
Adjustable Microstructure Depth (20–200 bars).
Configurable Imbalance Ratio and Liquidity Threshold .
Adaptive Smart Money Sensitivity via Accumulation Threshold (%).
Multiple Fractal Depth Layers for precise structural analysis.
Scalable Heatmap Resolution (5–20 levels) and opacity control.
Selectable HUD Position to suit personal layout preferences.
Each parameter adjusts the balance between visual clarity and data density , ensuring optimal performance across intraday and macro timeframes alike.
---
🧩 Trading Application
Identify early signs of institutional activity before breakouts.
Track structure transitions with fractal precision.
Locate hidden liquidity voids and high-value areas.
Confirm strength of trends using order-flow bias.
Detect volume-based divergences that often precede reversals.
HMS is designed not just for observation — but for contextual understanding . Its purpose is to help traders anchor strategies in liquidity and flow dynamics rather than surface-level price action.
---
🪞 Philosophy
Markets are holographic. Each candle contains a reflection of every other candle — a fractal within a fractal, a structure within a structure. The HMS is built to reveal that reflection, allowing traders to see through the market’s multidimensional fabric.
---
Developed by: AlphaNatt
Version: v6
Category: Market Microstructure | Volume Intelligence
Framework: PineScript v6 | Holographic Visualization System
Not financial advice
Higher Timeframe Candle LevelsThis is an indicator that shows higher time frame candle levels from various preset timeframes. These higher time frame candles act as support and resistance levels, so look for reversals and continuations off of these levels. When price exceeds the high or low of these levels, you should look for breakouts in the same direction and trade with the trend.
It includes candle levels for the following timeframes: 1 hour, 4 hour, 1 day, 1 week, 1 month, 1 quarter and 1 year. The indicator also includes a trend candle coloring feature, trend strength scoring table, stop loss feature, line identification labels, alerts for trend changes, alerts for level touches and full customization of all options.
How To Trade With This Indicator
These higher timeframe candle levels will act as support and resistance levels, so look for price to react at any of the levels you have turned on and then look for potential bounce or reversal signs at those levels so you can trade those direction changes. Price outside of the higher timeframe candle highs and low typically signals a breakout as well, so look for price to continue after passing the highs or lows.
You can use the direction of the higher timeframe candles as your trend as well. Try to only trade in the direction of the trend of the higher timeframes to increase the likelihood of your trade going in your favor.
The highs and lows of daily and up levels are excellent levels to find quick reversal off of. Watch for price action to struggle to break through these levels and then trade the reversal. If price breaks through these levels easily, watch for price to retest the level and then continue beyond that level. Trade the retest in the direction of the trend.
The open, close and midline levels are excellent for trading bounces. Watch for price to form wicks beyond these levels and close on the other side and use that as a sign that price may bounce there. Use that with price action to confirm your trade and then take trades off of those level bounces.
Use the alerts for daily and up timeframe level touches across all of your favorite markets so that way you are always notified in real time when price is at a level that could provide a potential trading opportunity.
Higher Time Frame Candle Levels
The indicator shows the current candle open, previous open, previous high, previous low, previous close and previous candle body midline levels of each candle for each time frame. This helps you easily see what is going on with the higher time frame candles and read the price action from your lower time frame charts.
Each candle level will paint red if it was a down candle or green if it was an up candle, except the midlines and current candle open lines, those are a different color for easy differentiation. The line colors can be customized to your preferences in the settings and you can also toggle the candle body coloring on or off, as well as change the color of the candle body background.
Each timeframe can be adjusted to your preferences, allowing you to turn all of the levels on or off. You can also adjust how many previous candles show up on your chart so you can backtest it and see for yourself how accurate these levels are.
When adjusting the number of candles, you will get a notification if you have more than 500 lines turned on, so just turn down the number of levels for whatever timeframe you can’t see on your chart to lower that number below 500. The notification will go away once you are under 500 lines again. Each candle has 6 lines if all levels are turned on for that timeframe: open, current candle open, close, high, low and midline. The default settings keep you under 500 lines total, so just be aware of that limitation when adjusting those numbers and adjust the number of levels down on the timeframes that are not useful on the current chart bar.
You can also extend the levels right on any time frame from the daily levels and above. This is useful when price is breaking above or below all levels and you need to know if there are any other previous candle levels in the way as price moves away from the most recent higher time frame candles.
To understand the intraday trend of each higher time frame, look to see where price is at according to each higher time frame candle. If the price is above the midline of the candle, it is bullish. If the price is above the candle body it is more bullish. If the price is above the high, it is very bullish. If the price is below the midline of the candle, it is bearish. If the price is below the candle body it is more bearish. If the price is below the low, it is very bearish. Make sure you backtest this yourself and go through lots of historical data to get a feel for how price reacts to these levels and establishes the trend. Then use that trend information to your advantage and trade in the direction of the trend.
Since users are limited to a certain amount of historical bars based on which Tradingview plan you have, some longer timeframe levels won’t show up because the start of that candle is too far back in history. You will get a notification at the top of that chart if that happens. It will tell you to lower the display timeframe for that timeframe until that notification goes away, which means it was able to plot the most recent candle for that timeframe on your chart.
Trend Candle Coloring
The indicator includes a feature that paints the candles based on whether the current time frame candles are above or below the most recent midline, candle body or high & low of a higher time frame candle of your choice. This helps you see the overall trend of the higher timeframe so you can trade with the trend.
The candle coloring will have an up color, down color and neutral color which can all be customized to suit your preferences. If the current time frame candle close is above the setting you choose, it will show the up color. If the current time frame candle close is below the setting you choose, it will show the down color. If the current time frame candle close is equal to or in the middle of the setting you chose, it will show the neutral color.
So, for example if you set it to candle body, then it will show the up color if the current candle is above the top of the candle body, down color if it is below the bottom of the candle body and neutral color if it is inside the candle body. This helps you wait for price action to move beyond the inside of the previous higher time frame candle before taking a position when price is breaking out of that previous candle so you can trade the momentum of that move. The candle coloring is fully customizable, but make sure to turn off your candle coloring on other indicators and your chart settings for it to show up properly.
Trend Strength Scoring Table
The trend strength scoring table displays a table at the bottom of the screen(table position is customizable), showing a score for the trend strength of each higher time frame. If the current candle close is above the midline, its strength is 1. If the current candle close is above the midline, but below the top of the candle body, its strength is 2. If the current candle close is above the high, its strength is 3. The same goes for below the midline, bottom of the candle body and below the low, but the scores would be negative 1, 2 or 3 instead.
This trend strength table allows you to quickly identify the trend on each higher time frame so you can wait until the trend is the same across all time frames before placing a trade in the direction of the trend. It also shows a total score on the far right side that adds all of the current trend scores together to give you a total strength score. Try to only trade when that number is very high compared to how many time frames you have turned on. Each time frame can have up to a maximum score of 3 if bullish and -3 if bearish. Each time frame in the table can be turned on or off to suit your preferences.
Stop Loss Feature
There is also a stop loss feature that you can set to whatever time frame you choose and whatever direction you chose, such as long or short. It will follow the most recent higher time frame candle’s trend using one of the following settings: candle body, high & low or midline. Once a new higher time frame candle is created, the stop loss will update to the most recent candle’s levels so you can use these levels as a trailing stop loss to maximize your wins.
If you have it set to use the candle body and it is set to long mode, then the stop loss will use the previous higher time frame candle’s lowest candle body level. So if it was an up candle previously, it will use the open. If it was a down candle previously, it will use the close. The opposite is true for short positions.
The stop loss will start working once you turn it on in the settings and will update automatically as new higher time frame candles are formed. It also shows a line of where the stop loss was previously since it was turned on.
I recommend using the high & low setting, especially when the market starts trending.
Candle Level Identification Labels
There are labels for each level starting with the 4 hour time frame and above so you can easily tell what level of each candle you are looking at, even if the rest of the candle is not showing within the chart pane. You can customize the label coloring for up candles and down candles and midlines as well as adjust the number of bars that the labels are offset from the current bar so they are visible on your chart without overlapping the current price action or other indicator labels. Labels for each time frame can be turned on or off as needed. The 1 hour labels were not included because it clogs up the chart, but it has labels for all time frames from the 4 hour candles and up.
Alerts
The indicator includes alerts for when the trend has changed to the opposite direction. The trend change alert is based on your settings for the Trend Candle Coloring. Whatever settings you have the trend candle coloring set to, will be used to set up your alerts. The Trend Candle Coloring setting must be turned on as well when creating your alerts for it to work properly. Make sure to backtest your settings and then create your alerts.
It also has alerts for when price is touching an open or close, high or low, midline or any of those levels for each timeframe. This allows you to be notified when price touches one of these levels so you can check the chart and look for potential trade opportunities if price wants to bounce off of that level. To make it easy for you to get alerts on many different tickers, just use the alert for any level touch on whatever timeframes you want.
Other Indicators To Pair This With
Use this in combination with our Trend Strength Indicator so you can visually see the historic and current trend for all of these levels. You should also use our Breakout Scanner to find other markets with strong trends so you always know which market is trending the strongest and can trade those. Trend Strength Indicator, Higher Timeframe Candle Levels and the Breakout Scanner all use the same levels and calculate the trend scores the same way so they are designed to work together to help you quickly be able to read a chart and find what direction to trade in.
Momentum Squeeze Candle [Darwinian]# Momentum Squeeze Candle
Professional squeeze detection indicator with Wyckoff accumulation/distribution analysis and multi-method momentum signals.
## Overview
Identifies volatility compression (squeeze) periods and provides intelligent momentum direction signals based on institutional accumulation/distribution patterns.
## Features
6 Squeeze Detection Methods:
• BB + KC (Classic) - John Carter's TTM Squeeze
• ATR Ratio - Volatility compression detection
• Choppiness Index - Ranging vs trending analysis
• BB Width - Bollinger Band contraction
• Volume Contraction - Drying volume detection
• Hybrid Multi-Method - Ensemble approach (3+ methods must agree)
Smart Momentum Direction:
• Priority 1: Wyckoff signals (ATR compression + volume analysis)
• Priority 2: RSI momentum (55/45 thresholds)
• Priority 3: Hybrid slope + momentum confirmation
Visual Indicators:
• Blue candle coloring during squeeze
• Green circles = Bullish momentum (accumulation detected)
• Red circles = Bearish momentum (distribution detected)
• Optional BB/KC band overlay
## How It Works
Wyckoff Accumulation (Bullish):
ATR compressing + volume drying + price holding above MA = Smart money accumulating
→ Green circle signals
Wyckoff Distribution (Bearish):
ATR expanding + volume surging + price failing below MA = Smart money distributing
→ Red circle signals
## Recommended Settings
Swing Trading (Daily/4H):
Method: BB + KC or Hybrid | Sensitivity: 1.2-1.5
Day Trading (15m-1H):
Method: ATR Ratio or BB Width | Sensitivity: 0.8-1.0
Scalping (1m-5m):
Method: Volume Contraction | Sensitivity: 0.7-0.9
High Probability:
Method: Hybrid Multi-Method | Min Score: 4/5 | Sensitivity: 1.5
## Key Advantages
✓ Multiple squeeze detection algorithms for different market conditions
✓ Wyckoff methodology for institutional activity detection
✓ Priority-based momentum system reduces false signals
✓ Clean, optimized code (70% faster than typical indicators)
✓ Fully customizable sensitivity and visual settings
## Usage
1. Choose squeeze detection method based on your trading style
2. Watch for blue candles (squeeze active)
3. Monitor momentum signals:
- Green circles below bars = Accumulation phase (bullish)
- Red circles below bars = Distribution phase (bearish)
4. Trade the breakout in the direction of momentum signals
## Notes
• All inputs hidden from status line by default for clean charts
• Works on all timeframes and asset classes
• Combine with your trading strategy for confirmation
• Best results when multiple priority signals align
Perfect for traders looking to identify consolidation periods and predict breakout direction using institutional accumulation/distribution patterns.
Choch Pattern Levels WITH ALERTS [credit to: @BigBeluga]🔵 OVERVIEW
The Choch Pattern Levels WITH ALERTS indicator automatically detects Change of Character (CHoCH) shifts in market structure — crucial moments that often signal early trend reversals or major directional transitions. It plots the structural break level, visualizes the pattern zone with triangle overlays, and tracks delta volume to help traders assess the strength behind each move. Now, an additional feature of alerts have been included!
🔵 CONCEPTS
CHoCH Pattern: A bullish CHoCH forms when price breaks a previous swing high after a swing low, while a bearish CHoCH appears when price breaks a swing low after a prior swing high.
snapshot
Break Level Mapping: The indicator identifies the highest or lowest point between the pivot and the breakout, marking it with a clean horizontal level where price often reacts.
snapshot
Delta Volume Tracking: Net bullish or bearish volume is accumulated between the pivot and the breakout, revealing the momentum and conviction behind each CHoCH.
snapshot
Chart Clean-Up: If price later closes through the CHoCH level, the zone is automatically removed to maintain clarity and focus on active setups only.
🔵 FEATURES
Automatic CHoCH pattern detection using pivot-based logic.
Triangle shapes show structure break: pivot → breakout → internal high/low.
snapshot
snapshot
Horizontal level marks the structural zone with a ◯ symbol.
snapshot
Optional delta volume label with directional sign (+/−).
Green visuals for bullish CHoCHs, red for bearish.
Fully auto-cleaning invalidated levels to reduce clutter.
Clean organization of all lines, labels, and overlays.
User-defined Length input to adjust pivot sensitivity.
snapshot
NEW! - alert system inserted to Pinescript for either: any triangle forms or whether a bullish "green" triangle or bearish "red" triangle forms - providing real-time alerts for whenever timeframe chart you've selected while creating the alert.
🔵 HOW TO USE
Use CHoCH levels as early trend reversal zones or confirmation signals.
Treat bullish CHoCHs as support zones, bearish CHoCHs as resistance.
Look for high delta volume to validate the strength behind each CHoCH.
Combine with other BigBeluga tools like supply/demand, FVGs, or liquidity maps for confluence.
Adjust pivot Length based on your strategy — shorter for intraday, longer for swing trading.
🔵 CONCLUSION
Choch Pattern Levels WITH ALERTS highlights key structural breaks that can mark the start of new trends. By combining precise break detection with volume analytics and automatic cleanup, it provides actionable insights into the true intent behind price moves — giving traders a clean edge in spotting early reversals and key reaction zones with real-time alerts for precision to evaluate and enter markets.
Breakout ScannerThis is a Breakout Scanner that shows you the immediate trend across 4 higher timeframes for up to 10 different tickers. It calculates a score from 1 to 3 for bullish and -1 to -3 for bearish based on where price is currently at compared to the previous higher timeframe’s candle levels.
When price is breaking out of the previous higher timeframe candle’s range, then it will have a score of 3 for bullish breakout or -3 for bearish breakout. When price is above the high or below the low of multiple different higher timeframe candles, you can expect price to continue the breakout and move to a new area of price range.
The brighter red or green the color is, the stronger the trend is on that timeframe. When it shows a bright green or red box on the far right side of a ticker, it is notifying you that the ticker is bullish or bearish on all timeframes and trending strongly, so switch over to that chart and look to trade in the direction of that trend.
The tickers, colors and time frames can be customized to suit your preference and you can also turn off as many tickers or time frames as you’d like if you want less tickers or time frames to show up on the indicator. It also includes alerts for when all timeframes are bullish or all timeframes are bearish for one ticker.
Make sure to keep each timeframe set to a timeframe that is higher than your chart timeframe.
Bullish Scoring & Colors
If the current candle close is above the midline of the higher time frame candle, it is given a score of 1 and a dark green background. If the current candle close is above the higher timeframe candle body, then it is given a score of 2 and a medium green background. If the current candle close is above the high of the higher time frame candle, it is given a score of 3 and a bright green background.
The higher the score the stronger the bullish trend and the brighter green the color will be.
Bearish Scoring & Colors
If the current candle close is below the midline of the higher timeframe candle, it is given a score of -1 and a dark red background. If the current candle close is below the higher timeframe candle body, then it is given a score of -2 and a medium red background. If the current candle close is below the low of the higher timeframe candle, it is given a score of -3 and a bright red background.
The lower the score, the stronger the bearish trend and the brighter red the color will be.
Total Score Display
On the right side of the indicator table, there is a column that displays the total score by adding all the scores together so you can easily tell the overall strength of the trend across all timeframes. Wait for the trend score to be at least 75% of the possible score to trade so you can ensure you are only trading very strong trends and increase your probability of winning your trade. The total score will update according to how many time frames you have enabled in the settings. You can also turn on or off the total score count if you prefer. The default setting is off.
All Timeframe Trends Agree
When all of the timeframes that you have turned on are in the same direction at the same time, a green or red box will appear on the far right side of the scanner. This is a visual cue that lets you know the strongest trending markets without having to read any of the numbers. Make sure to check out the charts for the markets that have a green or red box on the far right side and look for potential trend trading opportunities.
Alerts
You can set alerts for when all time frames for a certain ticker are bullish or bearish. If you have some time frames turned off at the time of creating your alerts, then it will only require all time frames that are on to be all bullish or bearish to generate an alert. Make sure to set your alerts to once per bar close to ensure you don’t get premature alerts that aren’t yet valid.
Best Way To Use The Scanner
For best results, make sure you wait for the trend to show all bullish or all bearish at the same time and then look to trade in the direction of the strong trend. If you can be patient enough to do that, you will increase the probability of winning your trade because you are trading with the direction of the overall higher timeframe trend when the market is trending strongly and making new highs or lows.
When one of the markets in the scanner shows all timeframes trending, go to that chart and see how price action is reacting to the previous higher timeframe candle levels. You can see those levels easily by adding our Higher Timeframe Candle Levels indicator to your chart and using the same timeframes as your Breakout Scanner is using.
If price is holding the higher timeframe candle levels well, then look to place trades in the direction of the trend that the Breakout Scanner is showing.
Other Indicators To Pair This With
Use this in combination with our Higher Timeframe Candle Levels indicator so you can see all of these levels being used to calculate the trend strength scores and watch how price reacts to those levels. You should also use our Trend Strength Indicator to easily read the historical trends of price compared to the higher timeframes and use those trends to guide you on when to trade and which direction to trade.
Trend Strength Indicator, Higher Timeframe Candle Levels and the Breakout Scanner all use the same levels to calculate the trend scores so they are designed to work all together to help you quickly be able to read a chart and find what direction to trade in.
Trend Engine [MMT]The Trend Engine is a versatile Pine Script indicator designed to identify trend direction, potential reversals, and key price levels using a combination of Exponential Moving Averages (EMAs), and Anchored Volume-Weighted Average Price (VWAP). This indicator provides traders with a clear visual representation of market bias, momentum, and key support/resistance levels, making it suitable for both trend-following and pullback trading strategies.
Key Features:
1. EMA Cloud System:
- Displays three customizable EMAs (Fast, Pullback, and Slow) with configurable lengths and visibility.
- Creates two cloud fills:
- Fast Cloud : Between the Fast EMA (default: 8) and Pullback EMA (default: 13).
- Slow Cloud : Between the Pullback EMA and Slow EMA (default: 21).
- Clouds are color-coded (green for bullish, red for bearish) based on EMA alignment, with adjustable transparency for clarity.
2. Bias EMA:
- A longer-term EMA (default: 35) indicates the overall market bias.
- Changes color based on whether the regular candle close is above (green) or below (red) the Bias EMA, providing a clear trend direction signal.
3. Heikin Ashi Signals:
- Utilizes Heikin Ashi candles to detect strong bullish or bearish momentum.
- Generates buy/sell signals when a Heikin Ashi candle confirms a trend (bullish HA candle closing above Bias EMA for buy, bearish HA candle closing below for sell).
- Signal arrows are currently disabled but can be enabled via settings for visual confirmation.
4. Anchored VWAP and Standard VWAP:
- Plots both a standard VWAP and an Anchored VWAP (anchored to the US RTH session, 09:30–16:00 EST).
- Customizable line styles (solid, cross, or circles) and colors for both VWAPs, aiding in identifying dynamic support/resistance levels.
5. Background and Candle Coloring:
- Optional background coloring reflects the market bias (green for bullish, red for bearish) based on the regular close relative to the Bias EMA.
- Optional Heikin Ashi candle coloring to visually distinguish bullish and bearish market conditions.
6. Regular Candle Close:
- Option to plot the regular (non-Heikin Ashi) close price with customizable styles (line, circles, or cross) for reference.
7. Alerts:
- Built-in alert conditions for bullish and bearish signals, allowing traders to receive notifications when a Heikin Ashi candle confirms a trend relative to the Bias EMA.
How to Use:
- Trend Identification : Use the Bias EMA and background color to determine the overall market direction.
- Pullback Trading : Monitor the EMA clouds for alignment (bullish or bearish) and use the Pullback EMA for entries during retracements.
- Support/Resistance : Leverage the VWAP and Anchored VWAP as dynamic levels for trade entries or exits.
- Signal Confirmation : Enable signal arrows (when fixed) to spot high-probability trend continuation or reversal setups.
- Customization : Adjust EMA lengths, colors, transparency, and visibility to suit your trading style and timeframe.
Settings:
- EMA Cloud : Customize lengths (default: 8, 13, 21), visibility, and cloud colors/transparency.
- Bias EMA : Adjust length (default: 35) and colors for above/below states.
- VWAP : Toggle standard and Anchored VWAP, with customizable styles and colors.
- Background/Candles : Enable/disable background and candle coloring for visual clarity.
- Regular Close : Show/hide the regular close price with style options.
Notes:
- Designed for use on any timeframe, but most effective on intraday (e.g., 5m, 15m) or daily charts.
- Best used in conjunction with other technical analysis tools for confirmation.
- Anchored VWAP is tailored for US markets (RTH session) but can be adjusted for other sessions by modifying the anchor time in the code.
Ideal For:
- Day traders and swing traders looking for trend direction and pullback opportunities.
- Traders using VWAP-based strategies for intraday support/resistance.
- Those seeking a clean, customizable visual aid for market bias and momentum.
This indicator is a powerful tool for traders aiming to capture trends and manage risk effectively, with extensive customization to adapt to various markets and trading styles.
Trend Strength IndicatorThis is a Trend Strength Indicator that shows you the immediate trend and historical trend of price for up to 7 higher timeframes.
It shows the strength of each timeframe by showing a red or green dot based on where price is at compared to the previous higher timeframe candle. The brighter red or green the dot is, the stronger the trend is compared to that higher timeframe candle.
The colors and timeframes can be customized to suit your preference and you can also turn off as many timeframes as you’d like if you want less time frames to show up on the indicator.
It also includes alerts for when all timeframes are bullish or all timeframes are bearish.
Keep these timeframes set to higher time frames than your chart so you can trade in the direction of the overall higher timeframe trend.
Bullish Scoring & Colors
If the current candle close is above the midline of the higher time frame candle, it is given a score of 1 and a dark green dot. If the current candle close is above the higher timeframe candle body, then it is given a score of 2 and a medium green dot. If the current candle close is above the high of the higher time frame candle, it is given a score of 3 and a bright green dot.
The higher the score the stronger the bullish trend and the brighter green the dot will be.
Bearish Scoring & Colors
If the current candle close is below the midline of the higher timeframe candle, it is given a score of -1 and a dark red dot. If the current candle close is below the higher timeframe candle body, then it is given a score of -2 and a medium red dot. If the current candle close is below the low of the higher timeframe candle, it is given a score of -3 and a bright red dot.
The lower the score, the stronger the bearish trend and the brighter red the dot will be.
Trend Scoring Modes
We gave you the option to set the trend scoring mode to either score based on price above or below the midline for quick and easy trend identification, or using the midline, candle body and highs and lows to give you a more detailed view of the trend strength. You can switch between these modes by selecting your preferred mode in the settings panel. The default is Open, High, Low, Close + Midline.
Sending Trend Direction To External Indicators
We coded in the ability to use the trend strength score as a signal that you can use to filter other indicators. This feature is great for notifying signal generating indicators what direction the market is trending in so that the signal generating indicator only gives signals in the direction of the trend.
This feature works by providing a data output of 1, 0 or -1. 1 means the trend is bullish, 0 means the trend is neutral and -1 means the trend is bearish.
This score is calculated by using the score of each timeframe that is turned on and checking if all timeframes are in the same direction or not. So if 3 timeframes are turned on and they are all bullish, the indicator will provide a data output of 1. This tells your external indicators that the trend is bullish.
This data output can be found in the data window and is labeled Trend Direction To Send To External Indicators.
At the bottom of the settings panel, there is a setting called Trend Score Threshold For External Indicators. This setting is the score threshold that all timeframes will need to meet to allow a trend strength signal to go through. So if set to 1, then all timeframes must be scored 1 or higher for bullish or -1 or lower for bearish. If set to 2, then all timeframes must be 2 or higher for bullish or -2 or lower for bearish. If set to 3, then all timeframes must be 3 for bullish or -3 for bearish. If all timeframes have met this threshold, then a bullish or bearish signal can be sent to your external indicator as a trend filter.
Labels
There are labels to the right of each row of dots, telling you which timeframe is which so you can easily identify what timeframe each row is showing the trend for.
Alerts
You can set alerts for when all timeframes are bullish or when all timeframes are bearish. If you have some time frames turned off at the time of creating your alerts, then it will only require all timeframes that are on to be all bullish or bearish to generate an alert. Make sure to set your alerts to once per bar close to ensure you don’t get premature alerts that aren’t yet valid.
Backtesting
This indicator helps you quickly identify and backtest the trend direction, how strong that trend is on multiple timeframes and helps you spot reversals and trend continuations. Make sure you look back at a lot of historical data to see how price moves when trend changes take place and how well price continues in each direction compared to the overall trend. This will help you gain confidence in reading the indicator and using it to your advantage when trading.
Best Way To Use The Indicator
This indicator is designed to help you quickly identify the trend on various different timeframes. The brighter the green dots are, the stronger the bullish trend is. The brighter the red dots are, the stronger the bearish trend is.
Trade in the direction of the trend. If the colors are mixed green and red, then price is likely to chop back and forth, so only trade the extremes of the ranges when that happens.
When most of the lower timeframe dots are the same color, that means it is a strong trend and you should place trades in the direction of the trend to be safe. The lower timeframes will start trending before the higher timeframes, so take notice of the lower timeframe colors starting to agree with each other and then take advantage of the trend that is forming.
You can also spot reversals with this indicator by watching for the lower timeframes to start changing color after a strong trend in one direction. The lower timeframes will start to change color one by one, indicating that the trend is actually changing direction.
For best results, make sure you wait for the trend to show all bullish or all bearish at the same time before you place any trades. If you can be patient enough to do that, you will increase the probability of winning your trade because you are trading with the direction of the overall higher timeframe trend which is typically an easy way to win more trades. Of course wait for pullbacks during the trend so you can keep a tight stop loss after entering your trade.
If you are scalping, you can turn off the higher timeframes and just use the 1 hour through 1 day. This won’t be as reliable as using all timeframes and waiting for them to align, but it is suitable for scalping quick intraday movements.
Other Indicators To Pair This With
Use this in combination with our Higher Timeframe Candle Levels indicator so you can see all of these levels being used to calculate the trend strength scores and watch how price reacts to those levels. You should also use our Breakout Scanner to find other markets with strong trends so you always know which market is trending the strongest and can trade those. Trend Strength Indicator, Higher Timeframe Candle Levels and the Breakout Scanner all use the same levels and calculate the trend scores the same way so they are designed to work all together to help you quickly be able to read a chart and find what direction to trade in.
MACD crossover while RSI Oversold/Overbought# MACD Crossover with RSI Overbought/Oversold Indicator Explained
## Indicator Overview
This is a trading signal system that combines two classic technical indicators: **MACD (Moving Average Convergence Divergence)** and **RSI (Relative Strength Index)**. Its core logic is: MACD crossover signals are only triggered when RSI is in extreme zones (overbought/oversold), thereby filtering out many false signals and improving trading accuracy.
## Core Principles
### 1. **Dual Confirmation Mechanism**
This indicator doesn't use MACD or RSI alone, but requires both conditions to be met simultaneously:
- **Short Signal (Orange Triangle)**: MACD bearish crossover (fast line crosses below signal line) + RSI was overbought (≥71)
- **Long Signal (Green Triangle)**: MACD bullish crossover (fast line crosses above signal line) + RSI was oversold (≤29)
### 2. **RSI Memory Function**
The indicator checks the RSI values of the current and past 5 candlesticks. As long as any one of them reaches the overbought/oversold level, the condition is satisfied. This design avoids overly strict requirements, as RSI may have already left the extreme zone before the MACD crossover occurs.
```pine
wasOversold = rsi <= 29 or rsi <= 29 or ... or rsi <= 29
wasOverbought = rsi >= 71 or rsi >= 71 or ... or rsi >= 71
```
## Parameter Settings
### MACD Parameters
- **Fast MA**: 12 periods (adjustable 7-∞)
- **Slow MA**: 26 periods (adjustable 7-∞)
- **Signal Line**: 9 periods
### RSI Parameters
- **Oversold Threshold**: 29 (traditional 30)
- **Overbought Threshold**: 71 (traditional 70)
- **Calculation Period**: 14
## Visual Elements
### 1. **Signal Markers**
- 🔻 **Orange Downward Triangle**: Appears above the candlestick, labeled "overbought", indicating a shorting opportunity
- 🔺 **Green Upward Triangle**: Appears below the candlestick, labeled "oversold", indicating a long opportunity
### 2. **Price Level Lines**
- **Orange Dashed Line**: Extends rightward from the high of the short signal, serving as a potential resistance level
- **Green Dashed Line**: Extends rightward from the low of the long signal, serving as a potential support level
Each time a new signal appears, the old level line is deleted, keeping only the most recent reference line.
## Trading Logic Explained
### Short Signal Scenario
1. Price rises, RSI surges above 71 (market overheated)
2. Momentum subsequently weakens, MACD fast line crosses below signal line
3. Indicator draws an orange triangle at the high, alerting to reversal risk
4. Orange dashed line marks the high point of the short entry position
### Long Signal Scenario
1. Price falls, RSI drops below 29 (market oversold)
2. Selling pressure exhausted, MACD fast line crosses above signal line
3. Indicator draws a green triangle at the low, suggesting a rebound opportunity
4. Green dashed line marks the low point of the long entry position
## Advantages and Limitations
### ✅ Advantages
- **Filters Noise**: Reduces false signals through dual confirmation
- **Captures Reversals**: Catches trend reversals in extreme conditions
- **Visual Clarity**: Level lines help identify support/resistance
- **Built-in Alerts**: Can set up message push notifications
### ⚠️ Limitations
- **Lag**: Both indicators are lagging, signals may be delayed
- **Poor Performance in Ranging Markets**: Prone to whipsaws during consolidation
- **Needs Other Analysis**: Should not be the sole decision-making basis
- **Parameter Sensitivity**: Different markets and timeframes may require parameter adjustments
## Practical Trading Suggestions
1. **Confirm Trend Context**: Counter-trend signals carry high risk in strong trending markets
2. **Combine with Candlestick Patterns**: Confirm with patterns (such as engulfing, hammer candles)
3. **Set Stop Losses**: Use level lines as stop-loss references (long stop below green line, short stop above orange line)
4. **Watch Volume**: Signals accompanied by high volume are more reliable
5. **Multi-Timeframe Verification**: Signals appearing simultaneously on daily and 4-hour charts are more credible
## Summary
This indicator follows the "mean reversion from extremes" philosophy, seeking reversal opportunities when market sentiment becomes excessive. It's suitable for auxiliary judgment, particularly in swing trading and position trading strategies. But remember, no indicator is perfect—always combine risk management and multi-dimensional analysis when making trading decisions
Inverse Fair Value Gaps (Wicks) v6 — Sticky + IFVG
This script identifies Fair Value Gaps (FVGs) and Inverse FVGs (IFVGs) using wicks (high/low) rather than candle bodies. It helps traders identify price gaps that could act as potential support/resistance or trigger reversals.
FVGs: Unfilled gaps in price caused by rapid price movement.
IFVGs: Occur when price breaks beyond a previous FVG, signaling potential continuation or reversal
Breakout an Reversal Signal Detector with Colored in Bar TrendsThe script detects breakouts and/or reversals: when candles close outside the recent period high or low, it prompts a signal, indicating a change in market trend.
You can customize the bar color to indicate trending phases.
It can be used effectively to identify both breakouts and reversals, making it a versatile tool for trend and reversal analysis.
Simple yet effective.
Enjoy!
Filled Fair Value GapsThese are filled fvgs it only shows filled fvgs so you can see where price is retracing to and don't have 50 fvgs on your screen
TopBot [CHE] TopBot — Structure pivots with buffered acceptance and gradient trend visualization
Summary
TopBot detects swing structure from confirmed pivot highs and lows, derives support and resistance levels, and switches trend only after a buffered and accepted break. It renders labels for recent structure points, maintains dynamic support and resistance lines that freeze on contact, and colors candles using a gradient that reflects consecutive trend persistence. The gradient communicates strength without extra panels, while the buffered acceptance reduces fragile flips around key levels. Everything runs in the main chart for immediate context.
Motivation: Why this design?
Classical swing tools often flip on single-bar spikes and produce lines that extend forever without acknowledging when price invalidates them. This script addresses that by requiring a user-controlled buffer and a run of consecutive closes before changing trend, while also freezing lines once price interacts with them. The gradient color layer communicates regime persistence so users can quickly judge whether a move is maturing or just starting.
What’s different vs. standard approaches?
Baseline reference: Simple pivot labeling and unbuffered break-of-structure tools.
Architecture differences:
Buffered level testing using ticks, percent, or ATR.
Acceptance logic that requires multiple consecutive closes.
Synchronized structure labeling with a single Top and Bottom within the active set.
Progressive support and resistance management that freezes lines on first contact.
Gradient candle and wick coloring driven by consecutive trend counts with windowed normalization and gamma control.
Practical effect: Fewer whipsaw flips, clearer status of active levels, and visual feedback about trend persistence without a secondary pane.
How it works (technical)
The script confirms swing points using left and right bar pivots, then forms a current structure window to classify each pivot as higher high, lower high, higher low, or lower low. Recent labels are trimmed to a user cap, and a postprocess step ensures one highest and one lowest label while preserving side information for the others. Support updates on higher low events, resistance on lower high events. Trend flips only after the close has moved beyond the active level by a chosen buffer and this condition holds for a chosen number of consecutive bars. Lines for new levels extend to the right and freeze once price touches them. A running count of consecutive trend bars produces a strength score, which is normalized over a rolling window, shaped by gamma, and mapped to user-defined dark and neon colors for both up and down regimes. Wick coloring uses `plotcandle`; fallback bar coloring uses `barcolor`. No higher-timeframe data is requested. Signals confirm only after the right-bar lookback of the pivot function.
Parameter Guide
Left Bars / Right Bars (default five each): Pivot sensitivity. Larger values confirm later and reduce noise; smaller values respond faster with more noise.
Draw S/R Lines (default true): Enables support and resistance line creation and updates.
Support / Resistance Colors (lime, red): Line colors for each side.
Line Style (Solid, Dashed, Dotted; default Dotted) and Width (default three): Visual style of S/R lines.
Max Labels & Lines (default ten): Cap for objects to control clutter and resource usage.
Change Bar Color (default true), Up/Down colors (blue, black): Fallback bar coloring when gradients or wick coloring are disabled.
Show Neutral Candles (default false): Optional coloring when no trend is active.
Enable Gradient Bar Colors (default true): Turns on gradient body coloring from the strength score.
Enable Wick Coloring (default true): Colors wicks and borders using `plotcandle`.
Collection Period (default one hundred): Rolling window used to scale the strength score. Shorter windows react faster but vary more.
Gamma Bars / Gamma Plots (defaults zero point seven and zero point eight): Shapes perceived contrast of bar and wick gradients. Lower values brighten early; higher values compress until stronger runs appear.
Gradient Transparency / Wick Transparency (default zero): Visual transparency for bodies and wicks.
Up/Down Trend Dark and Neon Colors: Endpoints for gradient mapping in each regime.
Acceptance closes (n) (default two): Number of consecutive closes beyond a level required before trend flips. Larger values reduce false breaks but react later.
Break buffer (None, Ticks, Percent, ATR; default ATR) and Value (default zero point five) and ATR Len (default fourteen): Defines the safety margin beyond the level. ATR mode adapts to volatility; Percent and Ticks are static.
Reading & Interpretation
Labels: “Top” and “Bottom” mark the most extreme points in the active set; “LT” and “HB” indicate side labels for lower top and higher bottom.
Lines: New support or resistance is drawn when structure confirms. A line freezes once price touches it, signaling that the dynamic phase ended.
Trend: Internal state switches to up or down only after buffered acceptance.
Colors: Brighter neon tones indicate stronger and more persistent runs; darker tones suggest early or weakening runs. When gradients are off, fallback bar colors indicate trend sign.
Practical Workflows & Combinations
Trend following: Wait for a buffered and accepted break through the most recent level, then use gradient intensity to stage entries or scale-ins.
Structure-first filtering: Trade only in the direction of the last accepted trend while price remains above support or below resistance.
Exits and stops: Consider exiting on loss of gradient intensity combined with a return through the most recent structure level.
Multi-asset / Multi-timeframe: Works on liquid symbols across common timeframes. Use larger pivot bars and higher acceptance on lower timeframes. No built-in higher-timeframe aggregation is used.
Behavior, Constraints & Performance
Repaint/confirmation: Pivot confirmation waits for the right bar window; trend acceptance is based on closes and can change during a live bar. Final signals stabilize on bar close.
security/HTF: Not used. No cross-timeframe data.
Resources: Arrays and loops are used for labels, lines, and structure search up to a capped historical span. Object counts are clamped by user input and platform limits.
Known limits: Delayed confirmation at sharp turns due to pivot windows; rapid gaps can jump over buffers; gradient scaling depends on the chosen collection period.
Sensible Defaults & Quick Tuning
Start with the defaults: pivot windows at five, ATR buffer with value near one half, acceptance at two, collection period near one hundred, gamma near zero point seven to zero point eight.
Too many flips: increase acceptance, increase buffer value, or increase pivot windows.
Too sluggish: reduce acceptance, reduce buffer value, or reduce pivot windows.
Colors too flat: lower gamma or shorten the collection period.
Visual clutter: reduce the max labels and lines cap or disable wicks.
What this indicator is—and isn’t
This is a visualization and signal layer that encodes swing structure, level state, and regime persistence. It is not a complete trading system, not predictive, and does not manage orders. Use it with broader context such as higher timeframe structure, session behavior, and defined risk controls.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino
Acknowledgment
Thanks to LonesomeTheBlue for the fantastic and inspiring "Higher High Lower Low Strategy" .
Original script:
Credit for the original concept and implementation goes to the author; any adaptations or errors here are mine.
ATR Channel (Bottom & Top)The ATR Channel (Bottom & Top) indicator dynamically visualizes market volatility zones based on the Average True Range (ATR). It automatically builds adaptive upper and lower boundaries around the current price, helping traders identify potential market extremes, volatility-driven reversals, and dynamic support/resistance levels.
This version is specifically optimized for Bitcoin (BTCUSDT) but works with any asset or timeframe.
⚙️ How It Works
The indicator calculates ATR over a user-defined period (default 200) and applies separate multipliers for the top and bottom bands (default ×1).
The Top Band = Close + (ATR × Multiplier)
The Bottom Band = Close - (ATR × Multiplier)
These two adaptive bands create a volatility envelope, allowing traders to visualize where the price may encounter potential exhaustion or reversal zones.
💡 Signal Logic
LONG Signal (Green Tab):
Triggered when the low of the candle touches or dips below the ATR bottom line — suggesting a possible oversold or volatility-based bottoming area.
The label displays the exact ATR line value (not the close), formatted for better readability (e.g. “LONG 103 885”).
SELL Signal (Red Tab):
Triggered when the high of the candle touches or exceeds the ATR top line — signaling possible overbought conditions or an exhaustion zone.
Signal Filtering:
The script intelligently avoids duplicate signals — e.g., multiple consecutive LONGs or SELLs will not appear until the opposite signal is triggered.
This ensures cleaner visualization and reduces signal noise during consolidation periods.
🎯 Features
✅ Adaptive ATR-based volatility channel
✅ Automatic LONG/SELL signal labeling with real ATR-touch prices
✅ Customizable parameters:
✅ Intelligent filtering (one signal per phase)
✅ Works on any market and timeframe (crypto, forex, indices, stocks)
🧭 Trading Applications
Identify volatility extremes (ATR-based overbought/oversold zones)
Detect reversal points or exhaustion moves after extended trends
Use with trend filters (e.g. EMA200) to confirm trend continuation vs mean reversion setups
Combine with oscillators (RSI, Stoch) for confluence signals
📊 Summary
The ATR Channel (Bottom & Top) provides a clear, professional-grade visualization of volatility dynamics and price extremes.
It is especially useful for traders using mean-reversion, volatility breakout, or swing-trading strategies — helping them identify statistically significant reaction zones and improving trade timing precision.
Price Action ZigZag (Impulses & Corrections)This indicator tracks price structure by connecting significant swing highs and lows—giving a clear, actionable “ZigZag” view of market movement. It automatically maps the underlying price action as alternating impulses (trend legs) and corrections (pullbacks), directly on your chart, for any timeframe.
How does it work?
Swing Detection:
The script uses the user-selected “pivot length” to identify confirmed swing highs and lows with Pine Script’s ta.pivothigh and ta.pivotlow.
These pivots only print after full confirmation, making all lines strictly non-repainting.
ZigZag Drawing:
After pivots are captured, the indicator connects each alternating swing with lines that trace the progression of price structure.
Each line segment is mapped according to the sequence and direction of swings:
Impulse: Moves that break further away from prior swing in the same direction (continuations/uptrends/downtrends)
Correction: Moves that pull price back, but do not extend past the previous impulse (retracements/sideways action)
Impulse vs Correction Logic:
Bullish impulse: swing from a higher low to a higher high (fast upward moves after a low)
Bearish impulse: swing from a lower high to a lower low (fast downward moves after a high)
Corrections appear as smaller lines between alternating swing points not leading to new trend extension.
Labels & Colors:
Impulse lines are drawn teal (customizable), corrections in gray.
Tiny labels ("Impulse", "Correction") are shown for clarity (optional).
Most recent pivots are highlighted with yellow dots for quick visual reference.
Key Features:
User-adjustable pivot length controls sensitivity and structure size (scalp to swing).
Distinguishes between impulses and corrections instantly on the chart.
Labels and color coding for clarity—traders can spot trend continuation vs. pullback at a glance.
Non-repainting confirmed pivots and lines; never show incomplete data.
Fully customizable appearance—all colors and label display adjustable in settings.
Zero lookahead or repainting: all signals use confirmed, historical price only.
How to use:
Add to any chart and set 'Swing Length' to fit your trading style (shorter for scalping, longer for bigger structure).
Follow the ZigZag lines to see when price makes an impulse vs. correction, and use this to identify high-probability momentum or reversal zones.
Combine this script with your own analysis/strategy or other indicators for deeper context.
Adjust colors and label options for your preferred chart clarity.
Disclaimer:
This script is a visualization and analysis tool for educational purposes—it does not predict future price movement, guarantee results, or provide trading signals. Always use sound risk management and your own judgment in live trading.
TrendMaster V2TrendMaster V2 is a comprehensive Pine Script indicator designed for TradingView. It combines multiple technical indicators and an advanced scoring logic to provide actionable trading signals. The script is highly customizable, allowing users to adjust trading modes, color themes, and signal filters according to their preferences and risk tolerance.
Key Features
Composite Scoring System:
The script calculates a composite score based on trend, momentum, pattern recognition, volume, volatility, divergence, Pearson correlation, and the CCI index. This score helps identify the best buy or sell opportunities.
Customizable Parameters:
Users can choose between “Aggressive,” “Balanced,” or “Conservative” trading modes, adjust indicator periods, and customize the color scheme of all visual elements.
Confluence Analysis:
The script evaluates the number of matching bullish or bearish signals, providing a confluence summary for higher-confidence trades.
Visual Signals:
Clear visual cues (triangles, circles, crosses) are displayed on the chart for strong buy/sell signals, confluences, and divergences.
Information Panels:
Two panels display real-time data such as score, RSI, volume, volatility, Pearson, CCI, trend, signal, and mode, along with the confluence status for quick reference.
Alert Conditions:
The script supports alerts for strong buy/sell signals, confluences, and divergences.
How It Works
Main Configuration:
Users select a trading mode (Aggressive, Balanced, or Conservative) and a color theme (Dark or Light).
Custom colors can also be set for bullish, bearish, strong, neutral, and signal elements.
Technical Indicators
Moving Averages (SMA/EMA) for trend analysis.
RSI to assess momentum and overbought/oversold conditions.
MACD for trend confirmation.
Volume and Volatility (ATR) for market activity evaluation.
Advanced Indicators
Pearson Correlation to measure trend strength.
CCI for cyclic momentum analysis.
Pattern Recognition
The script identifies common bullish and bearish reversal patterns (e.g., engulfing, hammer, morning/evening star) and continuation patterns (e.g., three white soldiers/black crows).
Composite Score
Each indicator contributes to a composite score, weighted according to the selected trading mode.
The score determines the strength of buy/sell signals.
Confluence Analysis
The script counts the number of matching bullish or bearish signals, providing a confluence summary for higher-confidence trades.
Visual Signals and Alerts
Strong buy/sell signals: triangles
Confluence signals: circles
Divergences: crosses
Alerts are triggered for strong buy/sell signals, confluences, and divergences.
Usage Instructions
Add the script to your TradingView chart.
Adjust the settings in the configuration panel to match your trading style.
Monitor the information panels and visual signals to spot trading opportunities.
Set up alerts for your preferred signal types.






















