Combined CAW & MTF SMC Dashboard with Dynamic Risk ManagementIndicator Description
The "Combined CAW & MTF SMC Dashboard with Dynamic Risk Management" is a powerful, multi-functional TradingView indicator designed to provide traders with a comprehensive view of market trends. It seamlessly blends two analytical approaches:
Custom Action Wave (CAW):
Utilizes a Hull Moving Average (HMA) determine the primary trend, applying dynamic candle coloring and an HMA trend line for clear visual cues.
Multi-Timeframe (MTF) Smart Money Concept (SMC) Dashboard:
Aggregates trend bias, RSI, volume, OBV, and MFI data across multiple timeframes, displaying the information in a customizable table. This multi-timeframe analysis helps confirm market sentiment and identify potential trend changes.
When a new trend change is detected, the indicator highlights the shift with a simple, persistent label stating either "Trend Change: Bullish" or "Trend Change: Bearish." The chart background also adjusts based on the current SMC bias, providing an at-a-glance view of overall market conditions.
Key Features:
Multi-Timeframe Analysis:
Displays critical metrics (trend bias, RSI, volume, OBV, MFI) across nine different timeframes.
Customizable Dashboard:
Choose which rows to display in the table and customize label sizes, positions, and colors to match your trading style.
Visual Clarity:
A dynamic HMA trend line and candle coloring system provide immediate insight into the market’s direction, while background highlights further emphasize the prevailing trend.
Simple Trend Change Alerts:
A persistent trend change label appears when the market’s bias shifts, ensuring you never miss a key transition.
Versatile Across Markets:
Whether you're trading stocks, forex, or cryptocurrencies, this indicator works on any asset class, making it a versatile tool for all types of traders.
This indicator is ideal for traders seeking a robust, visually intuitive tool that combines trend analysis with multi-timeframe market data to make informed trading decisions across various markets.
Analisi onde
Momentum Charge Theory (MCT)-(TechnoBlooms)The Momentum Charge Theory (MCT) Indicator is an advanced physics and mathematics-inspired trend detection system designed to identify market energy shifts with precision. Unlike traditional indicators that rely on static formulas, MCT integrates entropy, volatility, kinetic energy, and wavelet transforms to map price dynamics in real time.
Built on Scientific Principles – This indicator applies quantum-inspired charge-discharge mechanics to spot early trend formations and reversals. Think of price action like an energy system: it charges (builds momentum) before an explosive move and discharges when that energy dissipates.
Core Concepts Behind MCT
1️⃣ Directional Market Entropy – Measuring Trend Strength
Entropy quantifies market randomness – is the trend structured or chaotic?
✅ A high-entropy market is uncertain (choppy price action), while a low-entropy market signals a strong directional trend.
✅ MCT normalizes entropy, allowing traders to differentiate trend acceleration from market noise.
2️⃣ Information Flow Volatility – Identifying Breakout Zones
Inspired by Econophysics, this component measures volatility based on information flow rather than simple price movements.
✅ Helps spot high-volatility breakout conditions before they occur.
✅ Filters out false breakouts caused by random market noise.
3️⃣ Kinetic Energy Momentum (KEM) – The Physics of Price Acceleration
Just like in physics, momentum is a function of mass and velocity – in trading, this translates to volume and price change.
✅ Uses kinetic energy equations to identify price acceleration zones.
✅ Helps detect momentum shifts before price visibly reacts.
4️⃣ Hilbert Transform Approximation – Slope & Trend Direction Analysis
Applies Hilbert Transforms to estimate trend angle shifts.
✅ Detects momentum decay and early reversal signals.
✅ Captures the true trend slope rather than relying on lagging moving averages.
5️⃣ Wavelet Transform – Advanced Noise Filtering & Trend Confirmation
Market movements contain multiple frequencies – wavelet transforms isolate dominant trends while removing short-term price noise.
✅ Improves trend clarity by reducing false signals.
✅ Acts as a final confirmation filter before generating Charge & Discharge signals.
Charge & Discharge – The Energy Behind Market Moves
🔹 Charge (Uptrend Activation)
A blue triangle appears below the candle when market conditions align for a strong bullish move.
📈 Indicates momentum buildup, low entropy, and trend strength confirmation.
🔸 Discharge (Downtrend Activation)
A purple triangle appears above the candle when price momentum weakens and market entropy increases.
📉 Suggests a potential trend exhaustion or reversal.
Best Use Cases for Traders
✅ Momentum Traders – Catch trend initiations before they gain full traction.
✅ Breakout Traders – Identify high-information flow zones with volatility-driven signals.
✅ Trend Followers – Avoid false signals by relying on entropy-driven confirmations.
The MCT indicator can be combined with any of your usual indicators for trend confirmation.
7th Gate OpenGate of Wonder, I have done it. Honestly I cant thank you all enough! This isn't the end and I will prevail until the earth crumbles and we are all dust.
Inter Cycle Valuation | QuantumResearchIntroducing Inter Cycle Valuation by QuantumResearch
A Multi-Factor Adaptive Z-Score System for Market Valuation & Reversal Potential
🧠 Overview
The Inter Cycle Valuation System is a sophisticated multi-factor indicator designed to evaluate the market’s cyclical valuation zones using a blend of momentum, volatility, mean-reversion, and risk-based metrics. It delivers a unified Z-Score—ranging from extremely oversold to overheated conditions—empowering traders to identify high-probability market turning points.
Rather than relying on a single indicator, Inter Cycle blends over 15 diverse Z-score factors, including RSI, ROC, VWAP deviation, Repulse, PGO, and statistical ratios like Sharpe, Sortino, and Omega. This multi-dimensional view allows traders to assess market extremes with greater confidence.
🧩 1. Key Features
📌 Multi-Factor Z-Score System
Inter Cycle integrates 16+ unique indicators into a single composite score. Each input is normalized via a Z-score to ensure balance and reduce bias, helping prevent outlier distortion.
⚙️ Indicator Diversity
Momentum: RSI, ROC, Chande Momentum, Repulse
Mean Reversion: VWAP deviation, Median rank, PGO
Volatility: BB% positioning, Intraday Momentum Index
Risk Ratios: Sharpe, Sortino, Omega
Fractal Geometry: Crosby Ratio
📈 Visually Intuitive Output
Gradient-based area plot for valuation intensity
Optional background heatmap for oversold/overbought zones
Table displaying real-time Z-score values for each component
Dynamic market suggestions: Accumulate, Do Nothing, or Distribute
📊 On-Chart Dashboard
The valuation dashboard displays key stats like Z-price, Z-rsi, Z-mfi, Z-roc, Z-crosby, and more—allowing for real-time interpretation without leaving the chart.
🔍 2. How It Works
1️⃣ Z-Score Normalization
Each indicator is transformed into a Z-score to standardize the values. This ensures that one factor does not dominate due to its scale or volatility.
2️⃣ Multi-Factor Aggregation
All Z-scores are averaged into a single score—called the "Inter Cycle Score"—giving you a reliable snapshot of market positioning.
3️⃣ Actionable Thresholds
🟩 Below -1.6 → “Accumulate Aggressively”
🟨 Between -1.5 and -0.65 → “Accumulate”
⚪ Between -0.5 and +0.5 → “Do Nothing”
🟧 Above +1.2 → “Distribute”
🟥 Above +1.55 → “Distribute Aggressively”
The system prints these labels automatically in real time.
📌 3. Valuation Zones
📉 Strongly Undervalued (< -1.6) → Prime accumulation
📉 Moderately Undervalued (-1.5 to -0.65) → Cautious entries
⚖️ Neutral/Fair (-0.5 to +0.5) → Wait-and-see
📈 Moderately Overheated (+1.2 to +1.55) → Begin reducing risk
🔥 Strongly Overheated (> +1.55) → Take profits, reduce exposure
This structure helps traders and investors clearly interpret current market cycles and position accordingly.
🔁 4. Use Cases & Applications
🔁 Cycle-Based Market Rotation
Great for timing market rotations by spotting macro tops and bottoms. Use the valuation dashboard to rotate capital across assets at optimal phases.
📈 Mean Reversion Entry Triggers
Z-Score combinations such as VWAP deviation + RSI + ROC help pinpoint high-probability mean reversion setups.
📉 Risk-Based Trend Exhaustion
With integrated Sharpe, Sortino, and Omega ratios, you can identify unsustainable moves fueled by low-quality momentum.
💼 Swing Trading & Portfolio Rebalancing
The Inter Cycle score can be used as a filter for swing setups or to rebalance holdings when conditions become extreme.
✅ Conclusion
Inter Cycle Valuation by QuantumResearch is a precision tool for any trader or investor seeking structured insights into market cycles. With its blend of valuation, risk, momentum, and reversion components—standardized via Z-scores—it offers a high-level framework to identify when markets are overheated or undervalued.
Who Should Use It?
✅ Swing Traders & Medium-Term Investors
✅ Portfolio Managers looking for capital rotation signals
✅ Quant Traders and Stat Arb enthusiasts
✅ Macro Traders monitoring cyclical inflection zones
⚠️ Disclaimer
The content provided by this indicator is for educational and informational purposes only. Nothing herein constitutes financial or investment advice. Trading and investing involve risk, including the potential loss of capital. Always backtest and apply risk management suited to your strategy.
Zig Zag Trend Metrics“ Zig Zag Trend Metrics ” is a highly versatile indicator, built on the classic Zig Zag concept and thoughtfully designed for technical traders seeking a deeper, more structured view of market dynamics. This tool identifies significant swing highs and lows, classifies them, and annotates each with key metrics, offering a precise snapshot of each movement. It enhances visual analysis by drawing connecting lines that outline the flow of market structure, making trend progression and reversals instantly recognizable. Beyond visual mapping, it features a compact, real-time statistics table that calculates the average price and time deltas for both bullish and bearish swings, giving traders deep insights into trend momentum and rhythm. With extensive customization options, this indicator adapts seamlessly to vast trading styles or chart setups, empowering traders to spot patterns, evaluate trend strength, and make more confident, data-backed decisions.
❖ FEATURES
✦ Automatic Swing Detection
At its core, this indicator automatically identifies swing highs and lows based on a customizable lookback period (default: 10 bars).
✦ Labeling Swing Points
Each swing is visualized with a label that includes:
Swing Classification : “HH” (Higher High), “LH” (Lower High), “LL” (Lower Low), or “HL” (Higher Low).
Price Difference : Displayed in percentage or absolute value from the previous opposite swing.
Time Difference : The number of bars since the previous swing of the opposite type.
These labels offer traders clear, immediate insight into price movements and structural changes.
✦ Visual Lines
The indicator draws three types of lines:
Bullish Lines: Connect recent swing lows to new swing highs, indicating uptrends.
Bearish Lines: Connect recent swing highs to new swing lows, indicating downtrends.
Range Lines: Connect consecutive highs or lows to outline price channels.
Each line type can be color-coded and customized for visibility.
✦ Statistics Table
An on-screen metrics table provides a live summary of trends. Script uses Relative Averaging to smooth price and time changes. This prevents outliers from distorting the data and provides a more reliable sense of typical swing behavior.
Uptrend Metrics: Shows average price and time differences from recent bullish swings.
Downtrend Metrics: Shows the same for bearish swings.
🛠️ Customization Options
Ability to tailor the indicator to suit their strategy and aesthetic preferences:
Swing Period: Adjust sensitivity to short- or long-term swings.
Color Settings: Customize line and label colors.
Label Display: Choose between absolute or percentage price differences.
Table Settings: Modify size, location, or visibility.
This makes the indicator highly flexible and useful across various timeframes and assets.
Multi-timeframe Trend & Momentum DashboardMulti-Timeframe Trend & Momentum Dashboard
This indicator is a comprehensive multi-timeframe analysis tool designed for traders who want to quickly assess market trends and momentum across several timeframes. It combines trend detection with duration tracking and displays key information in an easy-to-read on-chart table. Key features include:
Multi-Timeframe Analysis:
Analyzes nine different timeframes (from 1-minute up to 1-week) simultaneously, helping you gauge the overall market trend at a glance.
Trend Detection & Duration:
Uses a combination of a short-term EMA and a long-term SMA to determine whether the market is bullish, bearish, or neutral. It also tracks how long the current trend has persisted in terms of consecutive bars and displays this duration next to each timeframe.
RSI Display & Visual Alerts:
Calculates the RSI for each timeframe. RSI values are color-coded—green when above 50 (indicating bullish momentum) and red when below 50 (indicating bearish conditions). Additionally, if the market is bearish on a particular timeframe while the RSI is above 50, the RSI cell flashes yellow to alert you of a potential trend reversal or divergence.
On-Chart Trend Start Markers:
When a new trend is detected on your current chart’s timeframe, the indicator automatically marks the bar with a label showing the new trend direction, providing a clear visual cue for trend changes.
This powerful tool is perfect for traders looking to combine multi-timeframe trend analysis with momentum indicators, enabling a more informed and dynamic trading strategy. Whether you’re a day trader or swing trader, the Multi-Timeframe Trend & Momentum Dashboard brings clarity to market conditions across multiple time horizons.
Wave IdentifierThis Pine Script indicator creates a 2x3 table that displays the current wave, target percentage, and timeframe information based on the time of day in Eastern Time. Here's what the indicator does:
It divides the trading day into three waves:
Wave 1: 9:30 AM ET to 11:00 AM ET
Wave 2: 12:00 PM ET to 2:00 PM ET
Wave 3: 3:00 PM ET to 4:00 PM ET
Any other time is labeled as "Between Waves"
It shows the target percentage for each wave:
Wave 1: 40% - 70%
Wave 2: 80% - 200%
Wave 3: 100% - 1000%
It recommends specific timeframes for each wave:
Wave 1: 2-minute candles
Wave 2: 5-minute candles
Wave 3: 10-minute candles
It checks if your current chart timeframe matches the recommended timeframe:
If it matches, it displays the timeframe in green
If it doesn't match, it displays "Timeframe mismatch" in red
The table is positioned in the middle-right of the chart and updates with each new candle. Feedback is always welcome!
HAI GIA LAM The Forward-Backward Exponential Oscillator is a normalized oscillator able to estimate directional shifts by making use of a unique "Forward-Backward Filtering" calculation method for Exponential Moving Averages (EMAs). This unique method provides a smooth normalized representation of the price with reduced lag. 🔶 USAGE The oscillator consists of 2...
avgPrice - Accum./Dist.I would explain the understanding of " FREQUENCY " and how it is built and realized in this indicator: " avgPrice - Accum./Dist " and " avgPrice - VF20 ".
Let's look at the explanation:
BASIC KNOWLEDGE ON FREQUENCY
FOR TRADERS
If you are a Trader, then read this article. This article means a lot to you, and will change many things about your life in the trading world.
The knowledge in this article is very secret, the main key to success for traders You would not found it anywhere, search all youtube shows, articles on websites, you would not found it. It even takes a very long time for you to realize it, most are not aware and do not know it. You would only know if you are told.
First of all, about "frequency"
Frequency is a unit in a single buy and sell transaction. In one time, for example in one minute, the number of times each transaction occurs is different. This difference will be closely related to the level of liquidity and volatility. We can see that the frequency is divided into three, 1) low frequency, 2) medium frequency, and 3) high frequency.
In one trading day, the market is open for 4 hours, or for 245 minutes. If we look at the IDX:ADRO stock on March 5, 2022, the frequency is 50,339, and if divided by 245 minutes, then every minute there are 205 frequencies. If reduced again in seconds, it means that every second there are 3.5 frequencies or if rounded up, there are 3 buy and sell transactions every second. While the IDX:KREN stock on March 5, 2022, the frequency is 3,552, and if divided by 245 minutes, then every minute there are 14.5 frequencies. If reduced again in seconds, it means that every 4 seconds there is 1 frequency. This shows that the IDX:ADRO stock has a high frequency, while the IDX:KREN stock has a low frequency.
So the higher the frequency, the lower the risk. Because it will avoid sudden price drops. Because in high frequency, Buyer or Seller find it difficult to go to many ticks, because it has only gone down 1 tick, there are already many other Buyers and Sellers blocking it. Therefore, the higher the frequency, the more liquid a stock is, and the lower the volatility. Conversely, the lower the frequency, the less liquid a stock is and the higher the volatility.
We know that stocks with low frequency, less liquid, and high volatility are high risk stocks , less safe for your capital. Conversely, stocks with high frequency, more liquid, and low volatility are low risk stocks , very safe for your capital.
Because in high frequency stocks, when you have a stoploss target, when the price drops to your stoploss target price position, you can exit quickly. Unlike low frequency stocks, when you have a stoploss target, once it drops it can immediately fall 5% - 10% down, if you don't have time to cutloss, your capital can immediately bleed in one hit.
VOLUME & FREQUENCY
Generally, the ratio of the volume is the same as the frequency. However, if the volume is greater than the frequency, it means that each transaction of buying and selling uses big money. The use of big money in transactions is a sign that the transaction is carried out by a big player/big fund. Conversely, if the volume is smaller than the frequency, it means that each transaction of buying and selling uses small money. The use of small money in transactions is a sign that the transaction is carried out by a small player/retailer.
It can be interpreted that volume> frequency = accumulation and volume < frequency = distribution. So if volume> frequency indicates that the price in the future is highly likely to increase. Conversely, if volume < frequency indicates that the price in the future is highly likely to decrease.
To make it easier to measure the risk ratio of volume divided by frequency, we can use the symbol V/F. The smaller the V/F means " distribution ", and the larger the V/F means " accumulation ". See the my own indicator namely: Louded Candle
After basic knowledge about frequency and its relationship to volume, we call it VF , which is volume divided by frequency. See the my own indicator namely: avgPrice - VF20
And this indicator you see is called " avgPrice - Accum./ Dist. " The point is to find out the accumulation area and distribution area . As mentioned in the description above, that volume > frequency = accumulation and volume < frequency = distribution. This indicator is built on the basis of this understanding.
If you want to discuss further, please just chat me, I would always be happy to reply. For the sake of knowledge and for everyone to be able to generate consistent profits in the trading world
Enjoy, hopefully useful.
Visible High/Low Liquidation LevelsThis indicator helps traders identify potential liquidation levels based on visible price ranges. It calculates high and low median levels from a specified number of bars and displays multiple liquidation thresholds (x1, x2, x3, x5, x10, x25, x50, x75) above the low median and below the high median.
The indicator creates a visual map of potential price zones where liquidations might occur, helping traders anticipate market movements and manage risk effectively. Each liquidation level is color-coded for easy identification.
Features:
Configurable visible range for both low and high calculations
8 customizable liquidation threshold levels (x1-x75)
Color-coded lines for easy visual identification
Toggle options for each level
Detailed legend with color references
Separately adjustable for both bullish and bearish scenarios
Use Cases:
Identify potential support and resistance zones based on liquidation levels
Anticipate price reversals at major liquidation thresholds
Manage risk by understanding where market volatility might increase
Set stop-loss and take-profit levels based on institutional liquidation points
Price Level IndicatorThe "Price Level Indicator" (PLI) is a powerful tool for analyzing price levels across different timeframes. It calculates and displays moving averages (SMA, EMA, SMMA, WMA, VWMA) from various time intervals (1m, 3m, 5m) on a single chart.
How to Use:
Add the indicator to your chart
Select the moving average type and data source
Set the period length (default is 1024)
Enable/disable the display of lines for different timeframes (3m, 5m)
Key Features:
Display data from multiple timeframes on a single chart
Calculate percentage deviations (x25, x50, x75) from the main MA line
Customizable colors for all indicator elements
Information panel with current values
Interpretation:
Main lines (SMA 1m, 3m, 5m) show the average price value on the corresponding timeframes
Additional lines display potential support and resistance levels
Varying line thickness helps visually distinguish timeframes
This indicator is particularly useful for identifying key price levels when trading across multiple timeframes simultaneously.
If you have any questions about usage, please leave a comment under the indicator.
Happy trading!
Price Level Indicator StaticThe Price Level Indicator Static (PLIS) is a versatile tool for traders who need precise price levels for support, resistance, and potential liquidation zones. This indicator calculates multiple price levels based on a user-defined input value, creating a comprehensive map of critical zones above and below the specified price.
The indicator displays a set of horizontal lines representing different percentage deviations from your entry point, helping you visualize potential stop-loss placements, take-profit targets, and liquidation thresholds.
Features:
User-defined base price level input
Multiple percentage deviation levels (x2, x5, x10, x20, x50, x75, x100)
Color-coded lines for easy identification
Different line styles to distinguish between levels
Separate calculations for long and short positions
Median price calculation from the last 1024 candles
Informational panel displaying the current median price
Use Cases:
Set precise stop-loss and take-profit levels
Identify potential liquidation zones for leveraged positions
Create a visual price map for trading decisions
Monitor price action around critical percentage thresholds
Develop structured risk management strategies
This indicator is essential for traders who want to approach the market with predefined levels and a clear understanding of potential price movements relative to their entry points.
Volume Box PressureThis is a liquidity analysis to determine support and resistance from large volumes that are automatically detected. Its use is if the candle breakout upwards from the box, then the candle would fly high. Conversely, if the candle breakdown downwards from the box, then the candle would fall deep.
avgPrice v2 - VF20Here I create my own indicator on Tradingview to detect whale movements in stocks, crypto, & forex, which is suitable for all trading instruments.
By using the whale approach and technical analysis, it is useful for detecting increases based on whale/market maker buying actions and detecting decreases based on whale/market maker selling actions.
There is also an automatic analysis of "Long" and "Short" so it is easy to use, with 3 line features with different colors and different functions as explained below:
If the gray line is below the yellow line, then there is accumulation by whales, conversely if the gray line is above the yellow line, then there is distribution by whales.
I created this indicator, dedicated specifically to friends who have difficulty trading and want to keep it simple, "Buy" is enough "Buy" and "Sell" is enough "Sell". I have summarized all whale detection analysis in one simple indicator.
I like to share and I love the world of trading, for me this is like a second life. Hopefully this description is useful and motivates friends to get consistent profits from trading.
Greetings,
Multi-Signal Trading Indicator (MSTI)Multi-Signal Trading Indicator (MSTI)
Overview
The Multi-Signal Trading Indicator (MSTI) is a comprehensive technical analysis tool that combines eight powerful indicators into a single, unified system. Designed to identify high-probability trading opportunities, MSTI generates precise buy and sell signals by analyzing multiple market factors simultaneously. The indicator excels at detecting potential reversals and trend continuations while filtering out market noise.
Key Features
8 Core Technical Components
MACD: Identifies momentum changes and potential trend reversals
RSI: Detects overbought and oversold conditionsн
Bollinger Bands: Analyzes price volatility and extreme conditions
Stochastic Oscillator: Identifies potential turning points in price
Moving Averages: Confirms trend direction using dual SMAs
Volume Analysis: Validates price movements with volume confirmation
Fibonacci Levels: Identifies key support/resistance areas
Divergence Detection: Spots divergences between price and momentum
Advanced Predictive Capabilities
Volume Surge Detection: Identifies significant volume increases that often precede major price movements
Enhanced Divergence Analysis: Detects both regular and hidden divergences for early reversal signals
Support/Resistance Tests: Identifies successful tests of key support/resistance zones
Momentum Change Detection: Spots early shifts in price momentum using Rate of Change
Order Flow Analysis: Tracks buying/selling pressure through On-Balance Volume
Signal Quality Management
Adjustable Signal Thresholds: Customize the number of conditions required for signal generation
Multiple Quality Levels: Choose between Normal, High, and Maximum quality settings
Strength Measurement: Displays signal strength as a percentage for better decision-making
Repeat Signal Prevention: Eliminates duplicate signals to reduce noise
Visual Features
Clear Chart Markers: Buy/sell signals displayed directly on price chart
Comprehensive Info Panel: Shows status of all components and overall signal information
Customizable Colors: Adjust visual elements to match your chart theme
Practical Applications
For Day Traders
Identify short-term reversal points with high accuracy
Validate entries with multiple confirmations
Filter out false signals during choppy market conditions
For Swing Traders
Spot early trend changes before they become obvious
Enter positions with higher confidence and precision
Hold positions through noise by following true trend signals
For Position Traders
Identify major trend reversals with multiple confirmations
Filter out minor retracements from significant trend changes
Time entries and exits with greater precision
Customization Options
MSTI is highly customizable with over 30 adjustable parameters allowing you to:
Fine-tune each technical component
Adjust signal quality and filtering
Enable/disable specific components
Customize visual appearance
Usage Tips
Start with the Normal quality setting to understand signal frequency
Progress to High or Maximum settings for fewer but higher quality signals
Adjust minimum conditions based on market volatility
Enable trend filter in trending markets for better signal accuracy
Enable volatility filter to avoid signals during low-volatility periods
The Multi-Signal Trading Indicator is a powerful tool for traders of all experience levels, combining the strength of multiple technical indicators to provide clear, actionable trading signals.
ZigZag█ Overview
This Pine Script™ library provides a comprehensive implementation of the ZigZag indicator using advanced object-oriented programming techniques. It serves as a developer resource rather than a standalone indicator, enabling Pine Script™ programmers to incorporate sophisticated ZigZag calculations into their own scripts.
Pine Script™ libraries contain reusable code that can be imported into indicators, strategies, and other libraries. For more information, consult the Libraries section of the Pine Script™ User Manual.
█ About the Original
This library is based on TradingView's official ZigZag implementation .
The original code provides a solid foundation with user-defined types and methods for calculating ZigZag pivot points.
█ What is ZigZag?
The ZigZag indicator filters out minor price movements to highlight significant market trends.
It works by:
1. Identifying significant pivot points (local highs and lows)
2. Connecting these points with straight lines
3. Ignoring smaller price movements that fall below a specified threshold
Traders typically use ZigZag for:
- Trend confirmation
- Identifying support and resistance levels
- Pattern recognition (such as Elliott Waves)
- Filtering out market noise
The algorithm identifies pivot points by analyzing price action over a specified number of bars, then only changes direction when price movement exceeds a user-defined percentage threshold.
█ My Enhancements
This modified version extends the original library with several key improvements:
1. Support and Resistance Visualization
- Adds horizontal lines at pivot points
- Customizable line length (offset from pivot)
- Adjustable line width and color
- Option to extend lines to the right edge of the chart
2. Support and Resistance Zones
- Creates semi-transparent zone areas around pivot points
- Customizable width for better visibility of important price levels
- Separate colors for support (lows) and resistance (highs)
- Visual representation of price areas rather than just single lines
3. Zig Zag Lines
- Separate colors for upward and downward ZigZag movements
- Visually distinguishes between bullish and bearish price swings
- Customizable colors for text
- Width customization
4. Enhanced Settings Structure
- Added new fields to the Settings type to support the additional features
- Extended Pivot type with supportResistance and supportResistanceZone fields
- Comprehensive configuration options for visual elements
These enhancements make the ZigZag more useful for technical analysis by clearly highlighting support/resistance levels and zones, and providing clearer visual cues about market direction.
█ Technical Implementation
This library leverages Pine Script™'s user-defined types (UDTs) to create a robust object-oriented architecture:
- Settings : Stores configuration parameters for calculation and display
- Pivot : Represents pivot points with their visual elements and properties
- ZigZag : Manages the overall state and behavior of the indicator
The implementation follows best practices from the Pine Script™ User Manual's Style Guide and uses advanced language features like methods and object references. These UDTs represent Pine Script™'s most advanced feature set, enabling sophisticated data structures and improved code organization.
For newcomers to Pine Script™, it's recommended to understand the language fundamentals before working with the UDT implementation in this library.
█ Usage Example
//@version=6
indicator("ZigZag Example", overlay = true, shorttitle = 'ZZA', max_bars_back = 5000, max_lines_count = 500, max_labels_count = 500, max_boxes_count = 500)
import andre_007/ZigZag/1 as ZIG
var group_1 = "ZigZag Settings"
//@variable Draw Zig Zag on the chart.
bool showZigZag = input.bool(true, "Show Zig-Zag Lines", group = group_1, tooltip = "If checked, the Zig Zag will be drawn on the chart.", inline = "1")
// @variable The deviation percentage from the last local high or low required to form a new Zig Zag point.
float deviationInput = input.float(5.0, "Deviation (%)", minval = 0.00001, maxval = 100.0,
tooltip = "The minimum percentage deviation from a previous pivot point required to change the Zig Zag's direction.", group = group_1, inline = "2")
// @variable The number of bars required for pivot detection.
int depthInput = input.int(10, "Depth", minval = 1, tooltip = "The number of bars required for pivot point detection.", group = group_1, inline = "3")
// @variable registerPivot (series bool) Optional. If `true`, the function compares a detected pivot
// point's coordinates to the latest `Pivot` object's `end` chart point, then
// updates the latest `Pivot` instance or adds a new instance to the `ZigZag`
// object's `pivots` array. If `false`, it does not modify the `ZigZag` object's
// data. The default is `true`.
bool allowZigZagOnOneBarInput = input.bool(true, "Allow Zig Zag on One Bar", tooltip = "If checked, the Zig Zag calculation can register a pivot high and pivot low on the same bar.",
group = group_1, inline = "allowZigZagOnOneBar")
var group_2 = "Display Settings"
// @variable The color of the Zig Zag's lines (up).
color lineColorUpInput = input.color(color.green, "Line Colors for Up/Down", group = group_2, inline = "4")
// @variable The color of the Zig Zag's lines (down).
color lineColorDownInput = input.color(color.red, "", group = group_2, inline = "4",
tooltip = "The color of the Zig Zag's lines")
// @variable The width of the Zig Zag's lines.
int lineWidthInput = input.int(1, "Line Width", minval = 1, tooltip = "The width of the Zig Zag's lines.", group = group_2, inline = "w")
// @variable If `true`, the Zig Zag will also display a line connecting the last known pivot to the current `close`.
bool extendInput = input.bool(true, "Extend to Last Bar", tooltip = "If checked, the last pivot will be connected to the current close.",
group = group_1, inline = "5")
// @variable If `true`, the pivot labels will display their price values.
bool showPriceInput = input.bool(true, "Display Reversal Price",
tooltip = "If checked, the pivot labels will display their price values.", group = group_2, inline = "6")
// @variable If `true`, each pivot label will display the volume accumulated since the previous pivot.
bool showVolInput = input.bool(true, "Display Cumulative Volume",
tooltip = "If checked, the pivot labels will display the volume accumulated since the previous pivot.", group = group_2, inline = "7")
// @variable If `true`, each pivot label will display the change in price from the previous pivot.
bool showChgInput = input.bool(true, "Display Reversal Price Change",
tooltip = "If checked, the pivot labels will display the change in price from the previous pivot.", group = group_2, inline = "8")
// @variable Controls whether the labels show price changes as raw values or percentages when `showChgInput` is `true`.
string priceDiffInput = input.string("Absolute", "", options = ,
tooltip = "Controls whether the labels show price changes as raw values or percentages when 'Display Reversal Price Change' is checked.",
group = group_2, inline = "8")
// @variable If `true`, the Zig Zag will display support and resistance lines.
bool showSupportResistanceInput = input.bool(true, "Show Support/Resistance Lines",
tooltip = "If checked, the Zig Zag will display support and resistance lines.", group = group_2, inline = "9")
// @variable The number of bars to extend the support and resistance lines from the last pivot point.
int supportResistanceOffsetInput = input.int(50, "Support/Resistance Offset", minval = 0,
tooltip = "The number of bars to extend the support and resistance lines from the last pivot point.", group = group_2, inline = "10")
// @variable The width of the support and resistance lines.
int supportResistanceWidthInput = input.int(1, "Support/Resistance Width", minval = 1,
tooltip = "The width of the support and resistance lines.", group = group_2, inline = "11")
// @variable The color of the support lines.
color supportColorInput = input.color(color.red, "Support/Resistance Color", group = group_2, inline = "12")
// @variable The color of the resistance lines.
color resistanceColorInput = input.color(color.green, "", group = group_2, inline = "12",
tooltip = "The color of the support/resistance lines.")
// @variable If `true`, the support and resistance lines will be drawn as zones.
bool showSupportResistanceZoneInput = input.bool(true, "Show Support/Resistance Zones",
tooltip = "If checked, the support and resistance lines will be drawn as zones.", group = group_2, inline = "12-1")
// @variable The color of the support zones.
color supportZoneColorInput = input.color(color.new(color.red, 70), "Support Zone Color", group = group_2, inline = "12-2")
// @variable The color of the resistance zones.
color resistanceZoneColorInput = input.color(color.new(color.green, 70), "", group = group_2, inline = "12-2",
tooltip = "The color of the support/resistance zones.")
// @variable The width of the support and resistance zones.
int supportResistanceZoneWidthInput = input.int(10, "Support/Resistance Zone Width", minval = 1,
tooltip = "The width of the support and resistance zones.", group = group_2, inline = "12-3")
// @variable If `true`, the support and resistance lines will extend to the right of the chart.
bool supportResistanceExtendInput = input.bool(false, "Extend to Right",
tooltip = "If checked, the lines will extend to the right of the chart.", group = group_2, inline = "13")
// @variable References a `Settings` instance that defines the `ZigZag` object's calculation and display properties.
var ZIG.Settings settings =
ZIG.Settings.new(
devThreshold = deviationInput,
depth = depthInput,
lineColorUp = lineColorUpInput,
lineColorDown = lineColorDownInput,
textUpColor = lineColorUpInput,
textDownColor = lineColorDownInput,
lineWidth = lineWidthInput,
extendLast = extendInput,
displayReversalPrice = showPriceInput,
displayCumulativeVolume = showVolInput,
displayReversalPriceChange = showChgInput,
differencePriceMode = priceDiffInput,
draw = showZigZag,
allowZigZagOnOneBar = allowZigZagOnOneBarInput,
drawSupportResistance = showSupportResistanceInput,
supportResistanceOffset = supportResistanceOffsetInput,
supportResistanceWidth = supportResistanceWidthInput,
supportColor = supportColorInput,
resistanceColor = resistanceColorInput,
supportResistanceExtend = supportResistanceExtendInput,
supportResistanceZoneWidth = supportResistanceZoneWidthInput,
drawSupportResistanceZone = showSupportResistanceZoneInput,
supportZoneColor = supportZoneColorInput,
resistanceZoneColor = resistanceZoneColorInput
)
// @variable References a `ZigZag` object created using the `settings`.
var ZIG.ZigZag zigZag = ZIG.newInstance(settings)
// Update the `zigZag` on every bar.
zigZag.update()
//#endregion
The example code demonstrates how to create a ZigZag indicator with customizable settings. It:
1. Creates a Settings object with user-defined parameters
2. Instantiates a ZigZag object using these settings
3. Updates the ZigZag on each bar to detect new pivot points
4. Automatically draws lines and labels when pivots are detected
This approach provides maximum flexibility while maintaining readability and ease of use.
ICT & RTM Price Action IndicatorICT & RTM Price Action Indicator
Unlock the power of precision trading with this cutting-edge indicator blending ICT (Inner Circle Trader) concepts and RTM (Reversal Trend Momentum) strategies. Designed for traders who demand clarity in chaotic markets, this tool pinpoints high-probability buy and sell signals with surgical accuracy.
What It Offers:
Smart Supply & Demand Zones: Instantly spot key levels where the market is likely to reverse or consolidate, derived from a 50-period high/low analysis.
Filtered Reversal Signals: Say goodbye to fakeouts! Signals are confirmed with volume spikes (1.5x average) and a follow-through candle, ensuring you trade only the strongest moves.
Trend-Aware Logic: Built on a customizable SMA (default 14), it aligns reversals with momentum for trades that stick.
One-Signal Discipline: No clutter—only the first valid signal appears until an opposing setup triggers, keeping your chart clean and your focus sharp.
Combined Power: A unique "TRADE" signal merges ICT zones with RTM reversals for setups with double the conviction.
Why You’ll Love It:
Whether you’re scalping intraday or hunting swing trades, this indicator adapts to your style. It’s not just another tool—it’s your edge in decoding price action like a pro. Test it, tweak it, and watch your trading transform.
Super Cycle Low FinderHow the Indicator Works
1. Inputs
Users can adjust the cycle lengths:
Daily Cycle: Default is 40 days (within 36-44 days).
Weekly Cycle: Default is 26 weeks (182 days, within 22-31 weeks).
Yearly Cycle: Default is 4 years (1460 days).
2. Cycle Low Detection
Function: detect_cycle_low finds the lowest low over the specified period and confirms it with a bullish candle (close > open).
Timeframes: Daily lows are calculated directly; weekly and yearly lows use request.security to fetch data from higher timeframes.
3. Half Cycle Lows
Detected over half the cycle length, plotted to show mid-cycle strength or weakness.
4. Cycle Translation
Logic: Compares the position of the highest high to the cycle’s midpoint.
Output: "R" for right translated (bullish), "L" for left translated (bearish), displayed above bars.
5. Cycle Failure
Flags when a new low falls below the previous cycle low, indicating a breakdown.
6. Visualization
Cycle Lows: Diamonds below bars (yellow for daily, green for weekly, blue for yearly).
Half Cycle Lows: Circles below bars (orange, lime, aqua).
Translations: "R" or "L" above bars in distinct colors.
Failures: Downward triangles below bars (red, orange, purple).
TimeMapTimeMap is a visual price-reference indicator designed to help traders rapidly visualize how current price levels relate to significant historical closing prices. It overlays your chart with reference lines representing past weekly, monthly, quarterly (3-month), semi-annual (6-month), and annual closing prices. By clearly plotting these historical price references, TimeMap helps traders quickly gauge price position relative to historical market structure, aiding in the identification of trends, support/resistance levels, and potential reversals.
How it Works:
The indicator calculates the precise number of historical bars corresponding to weekly, monthly, quarterly, semi-annual, and annual intervals, dynamically adjusting according to your chart’s timeframe (intraday, daily, weekly, monthly) and chosen market type (Stocks US, Crypto, Forex, or Futures). Historical closing prices from these periods are plotted directly on your chart as horizontal reference lines.
For intraday traders, the script accurately calculates historical offsets considering regular and extended trading sessions (e.g., pre-market and after-hours sessions for US stocks), ensuring correct positioning of historical lines.
User-Configurable Inputs Explained in Detail:
Market Type:
Allows you to specify your trading instrument type, automatically adjusting calculations for:
- Stocks US (default): 390 minutes per regular session (780 minutes if extended hours enabled), 5 trading days/week.
- Crypto: 1440 minutes/day, 7 trading days/week.
- Forex: 1440 minutes/day, 5 trading days/week.
- Futures: 1320 minutes/day, 5 trading days/week.
Show Weekly Close:
When enabled, plots a line at the exact closing price from one week ago. Provides short-term context and helps identify recent price momentum.
Show Monthly Close:
When enabled, plots a line at the exact closing price from one month ago. Helpful for evaluating medium-term price positioning and monthly trend strength.
Show 3-Month Close:
When enabled, plots a line at the exact closing price from three months ago. Useful for assessing quarterly market shifts, intermediate trend changes, and broader market sentiment.
Show 6-Month Close:
When enabled, plots a line at the exact closing price from six months ago. Useful for identifying semi-annual trends, significant price pivots, and longer-term support/resistance levels.
Show 1-Year Close:
When enabled, plots a line at the exact closing price from one year ago. Excellent for assessing long-term market direction and key annual price levels.
Enable Smoothing:
Activates a Simple Moving Average (SMA) smoothing of historical reference lines, reducing volatility and providing clearer visual references. Recommended for traders preferring less volatile reference levels.
Smoothing Length:
Determines the number of bars used in calculating the SMA smoothing of historical lines. Higher values result in smoother but slightly delayed reference lines; lower values offer more immediate yet more volatile levels.
Use Extended Hours (Intraday Only):
When enabled (only applicable for Stocks US), it accounts for pre-market and after-hours trading sessions, providing accurate intraday historical line calculations based on extended sessions (typically 780 minutes/day total).
Important Notes and Compliance:
- This indicator does not provide trading signals, recommendations, or predictions. It serves purely as a visual analytical tool to supplement traders’ existing methods.
- Historical lines plotted are strictly based on past available price data; the indicator never accesses future data or data outside the scope of Pine Script’s standard capabilities.
- The script incorporates built-in logic to avoid runtime errors if insufficient historical data exists for a selected timeframe, ensuring robustness even with limited historical bars.
- TimeMap is original work developed exclusively by Julien Eche (@Julien_Eche). It does not reuse or replicate third-party or existing open-source scripts.
Recommended Best Practices:
- Use TimeMap as a complementary analytical reference, not as a standalone strategy or trade decision-making tool.
- Adapt displayed historical periods and smoothing settings based on your trading style and market approach.
- Default plot colors are optimized for readability on dark-background charts; adjust as necessary according to your preference and chart color scheme.
This script is published open-source to benefit the entire TradingView community and fully complies with all TradingView script publishing rules and guidelines.
IWMA - DolphinTradeBot1️⃣ WHAT IS IT ?
▪️ The Inverted Weighted Moving Average (IWMA) is the reversed version of WMA, where older prices receive higher weights, while recent prices receive lower weights. As a result, IWMA focuses more on past price movements while reducing sensitivity to new prices.
2️⃣ HOW IS IT WORK ?
🔍 To understand the IWMA(Inverted Weighted Moving Average) indicator, let's first look at how WMA (Weighted Moving Average) is calculated.
LET’S SAY WE SELECTED A LENGTH OF 5, AND OUR CURRENT CLOSING VALUES ARE .
▪️ WMA Calculation Method
When calculating WMA, the most recent price gets the highest weight, while the oldest price gets the lowest weight.
The Calculation is ;
( 10 ×1)+( 12 ×2)+( 21 ×3)+( 24 ×4)+( 38 ×5) = 10+24+63+96+190 = 383
1+2+3+4+5 = 15
WMA = 383/15 ≈ 25.53
WMA = ta.wma(close,5) = 25.53
▪️ IWMA Calculation Method
The Inverted Weighted Moving Average (IWMA) is the reversed version of WMA, where older prices receive higher weights, while recent prices receive lower weights. As a result, IWMA focuses more on past price movements while reducing sensitivity to new prices.
The Calculation is ;
( 10 ×5)+( 12 ×4)+( 21 ×3)+( 24 ×2)+( 38 ×1) = 50+48+63+48+38 = 247
1+2+3+4+5 = 15
IWMA = 247/15 ≈ 16.46
IWMA = iwma(close,5) = 16.46
3️⃣ SETTINGS
in the indicator's settings, you can change the length and source used for calculation.
With the default settings, when you first add the indicator, only the iwma will be visible. However, to observe how much it differs from the normal wma calculation, you can enable the "show wma" option to see both indicators with the same settings or you can enable the Show Signals to see IWMA and WMA crossover signals .
4️⃣ 💡 SOME IDEAS
You can use the indicator for support and resistance level analysis or trend analysis and reversal detection with short and long moving averages like regular moving averages.
Another option is to consider whether the iwma is above or below the normal wma or to evaluate the crossovers between wma and iwma.
[iQ]PRO Master iQWave SystemWelcome to the PRO Master iQWave System, an exclusive, ndicator crafted for TradingView. This cutting-edge tool harnesses sophisticated mathematical models to deliver precise buy and sell signals, empowering traders with a comprehensive view of market dynamics.
Key Features
Advanced Analytical Framework: Seamlessly integrates state-of-the-art techniques in signal processing, statistical analysis, and market profiling to uncover high-probability trading opportunities.
Holistic Market Insight: Combines proprietary methods for data transformation, frequency-based cycle detection, adaptive trend and seasonality extraction, and moment-driven anomaly identification—offering a multi-dimensional approach to price analysis.
Customizable Precision: With a wide range of user inputs, traders can tailor the system to their unique strategies and adapt it to diverse market conditions, ensuring flexibility across asset classes and timeframes.
Intuitive Visual Feedback: Displays critical insights directly on your chart, including adaptive fits, statistical boundaries, market profile levels, and a clear, actionable signal label—making complex analysis accessible at a glance.
Why Choose PRO Master iQWave System?
Designed for experienced traders, this indicator stands out by blending advanced analytics with practical usability. Whether you're identifying reversals, filtering noise, or gauging market structure, the PRO Master iQWave System equips you with a robust, all-in-one solution. Its proprietary algorithms distill intricate market data into actionable signals, helping you stay ahead of the curve.
Elevate Your Trading
Experience the power of next-level technical analysis. The PRO Master iQWave System is more than an indicator—it's a strategic edge, reserved for those ready to unlock its potential. Take your trading to new heights with this exclusive tool, available only by invitation.
ADvM, of MMiQ
Fibonacci - DolphinTradeBot
OVERVIEW
The 'Fibonacci - DolphinTradeBot' indicator is a Pine Script-based tool for TradingView that dynamically identifies key Fibonacci retracement levels using ZigZag price movements. It aims to replicate the Fibonacci Retracement tool available in TradingView’s drawing tools. The indicator calculates Fibonacci levels based on directional price changes, marking critical retracement zones such as 0, 0.236, 0.382, 0.5, 0.618, 0.786, and 1.0 on the chart. These levels are visualized with lines and labels, providing traders with precise areas of potential price reversals or trend continuation.
HOW IT WORKS ?
The indicator follows a zigzag formation. After a large swing movement, when new swings are formed without breaking the upper and lower levels, it places Fibonacci levels at the beginning and end points of the major swing movement."
▪️(Bullish) Structure :High → HigherLow → LowerHigh
▪️(Bearish) Structure :Low → LowerHigh → HigherLow
▪️When Fibonacci retracement levels are determined, a "📌" mark appears on the chart.
▪️If the price closes outside of these levels, a "❌" mark will appear.
USAGE
This indicator is designed to plot Fibonacci levels within an accumulation zone following significant price movements, helping you identify potential support and resistance. You can adjust the pivot periods to customize the zigzag settings to your preference. While classic Fibonacci levels are used by default, you also have the option to input custom levels and assign your preferred colors.
Set the Fibonacci direction option to "upward" to detect only bullish structures, "downward" to detect only bearish structures, and "both" to see both at the same time.
"To view past levels, simply enable the ' Show Previous Levels ' option, and to display the zigzag lines, activate the ' Show Zigzag ' setting."
ALERTS
The indicator, by default, triggers an alarm when both a level is formed and when a level is broken. However, if you'd like, you can select the desired level from the " Select Level " section in the indicator settings and set the alarm based on one of the conditions below.
▪️ cross-up → If the price breaks the Fibonacci level to the upside.
▪️ cross-down → If the price breaks the Fibonacci level to the downside.
▪️ cross-any → If the price breaks the Fibonacci level in any direction.
SuperTrend Bar Counter - DolphinTradeBot
OVERVIEW
This indicator calculates the lengths of upward and downward trends based on the specified SuperTrend settings and timeframe. It then takes the average length of the entered number of swings and compares the current trend durations with these averages. The main goal is to anticipate potential reversals in advance.
HOW IS IT WORK ?
The indicator actually contains two different but conceptually similar metrics.
The first part; shows how long the Supertrend stays in an upward or downward trend in real time. Additionally, it analyzes how close the current value is to the average of the Supertrend bar count for the given input.
The second part; aims to provide a different perspective on general trend analysis. It calculates the average duration of upward and downward trends in bars based on the SuperTrend indicator settings within a specified period and timeframe. If, contrary to expectations, downward trends last longer than upward trends, the background is colored green, indicating a prediction that the trend will continue upward.
Explanation of the second part logic: As you know, moving averages or similar approaches that follow the price are often correct when looking back retrospectively, but they cannot serve as leading indicators in real-time trading.That's why, when performing trend analysis, I wanted to introduce a completely different perspective based on price movement, yet still grounded in price action itself.
This phenomenon is partly due to the nature of the SuperTrend itself. After strong price movements, SuperTrend tends to reverse direction much more quickly during pullbacks. Following a strong upward move, a downward trend is detected much earlier and tends to last longer. The indicator provides an alternative perspective by analyzing which directional movement occurs more rapidly and uses this insight for trend prediction.
HOW TO USE ?
It can be used to identify potential price reversals or to assess whether the price is generally cheap or expensive.
In the settings section, you can adjust the SuperTrend parameters and timeframes for the values displayed in the table.
In the second part, you can configure the values used for general trend analysis.
NOTE
Things to be aware of: As the chart's timeframe decreases, pulling data from higher timeframes becomes more difficult. For example, when the chart is set to a 5-minute timeframe, it may fail to retrieve swing periods from the daily timeframe. Similarly, on a 4-hour chart, when calculating the average swing, there might be enough data for only 5 periods instead of 20.
Please keep in mind that this indicator was created solely to provide an idea. It should only be considered as a perspective or a supporting tool that influences your decision by no more than 5% at most.