MTF Fusion - SuperTrend [TradingIndicators]SuperTrend is undoubtedly one of the most popular and influential indicators ever developed, and by combining it with our MTF Fusion algorithm, we believe we have made it more useful and powerful than ever with MTF Fusion SuperTrend .
Let's start with a brief review of what the original SuperTrend indicator is and how it works.
What is SuperTrend?
The SuperTrend indicator is a popular technical analysis tool used in financial markets to identify the direction of a trend and potential entry and exit points for trading. It was developed by Olivier Seban, a French trader, and first introduced in his book "Tout le monde peut gagner en bourse" ("Everyone Can Win in the Stock Market") published in 2008.
SuperTrend is based on the concept of Average True Range (ATR) and uses two parameters: the multiplier and the period. The ATR measures the volatility of a financial instrument, and the SuperTrend indicator utilizes this information to plot a line above or below the price chart. It is an 'AITM' (Always In The Market) indicator, which, in its original form, is always 'long' or 'short' - and never 'flat'.
Here's a brief overview of how the SuperTrend indicator works:
Calculation of the ATR: The ATR is calculated using historical price data over a specified period. It measures the average range between high and low prices, reflecting the market's volatility.
Calculation of the upward (long/bullish) and downward (short/bearish) SuperTrend lines: The SuperTrend indicator multiplies the ATR by a specified multiplier (typically 2 or 3) and adds/subtracts the result from the current closing price. This calculation determines the upward and downward SuperTrend lines.
Plotting the Indicator: The SuperTrend indicator plots a line above the price chart when the price is trending upwards, and below the price chart when the price is trending downwards. The distance between the price and the indicator line provides insights into the strength of the trend.
Traders commonly use the SuperTrend indicator to identify potential buy or sell signals. For example, a buy signal may be generated when the price crosses above the indicator line, indicating an uptrend. Conversely, a sell signal may be triggered when the price crosses below the indicator line, signaling a downtrend.
What is MTF Fusion?
Multi-Timeframe (MTF) Fusion is the process of combining calculations from multiple timeframes higher than the chart's into one 'fused' value or indicator. It is based on the idea that integrating data from higher timeframes can help us to better identify short-term trading opportunities within the context of long-term market trends.
How does it work?
Let's use the context of this indicator, which calculates SuperTrend lines, as an example to explain how MTF Fusion works and how you can perform it yourself.
Step 1: Selecting Higher Timeframes
The first step is to determine the appropriate higher timeframes to use for the fusion calculation. These timeframes should typically be chosen based on their ability to provide meaningful price levels and action which actively affect the price action of the smaller timeframe you're focused on. For example, if you are trading the 5 minute chart, you might select the 15 minute, 30 minute, and hourly timeframe as the higher timeframes you want to fuse in order to give you a more holistic view of the trends and action affecting you on the 5 minute. In this indicator, four higher timeframes are automatically selected depending on the timeframe of the chart it is applied to.
Step 2: Gathering Data and Calculations
Once the higher timeframes are identified, the next step is to calculate the data from these higher timeframes that will be used to calculate your fused values. In this indicator, for example, the values of SuperTrend lines are calculated by determining the value of the SuperTrend indicator for all four higher timeframes.
Step 3: Fusing the Values From Higher Timeframes
The next step is to actually combine the values from these higher timeframes to obtain your 'fused' indicator values. The simplest approach to this is to simply average them. If you have calculated the value of a SuperTrend line from three higher timeframes, you can, for example, calculate your 'multi-timeframe fused level' as (HigherTF_SuperTrend_1 + HigherTF_SuperTrend_2 + HigherTF_SuperTrend_3) / 3.0.
Step 4: Visualization and Interpretation
Once the calculations are complete, the resulting fused indicator values are plotted on the chart. These values reflect the fusion of data from the multiple higher timeframes, giving a broader perspective on the market's behavior and potentially valuable insights without the need to manually consider values from each higher timeframe yourself.
What makes this script unique? Why is it closed source?
While the process described above is fairly unique and sounds simple, the truly important key lies in determining which higher timeframes to fuse together, and how to weight their values when calculating the fused end result in such a way that best leverages their relationship for useful TA.
This MTF Fusion indicator employs a smart, adaptive algorithm which automatically selects appropriate higher timeframes to use in fusion calculations depending on the timeframe of the chart it is applied to. It also uses a dynamic algorithm to adjust and weight the SuperTrend calculations depending on each higher timeframe's relationship to the chart timeframe. These algorithms are based on extensive testing and are the reason behind this script's closed source status.
Unlike in the original indicator, flat/'No Trend' areas exist in MTF Fusion SuperTrend!
MTF Fusion SuperTrend only shows a Fusion SuperTrend when the majority of SuperTrends from higher timeframes are in agreement and signaling the same trend direction . So, unlike the original SuperTrend indicator, MTF Fusion SuperTrend sometimes shows no SuperTrend line at all - typically in flat or indecisive areas, which we think is beneficial and helps to filter out noise on smaller timeframes.
Included Features
Fusion SuperTrend lines
Dynamic Multi-Timeframe SuperTrends
Filled zones to highlight trends
Full customization of SuperTrend parameters
Pre-built color stylings
Options
Fusion View: Show/hide the Fusion SuperTrends calculated from multiple higher timeframes
MTF View: Show/hide the SuperTrends from multiple higher timeframes used to calculate the Fusion SuperTrends
Fill Trending Zones: Show/hide the fill for 'trending zones' between price and the Fusion SuperTrends
Multiplier: Sets the multiplier for all SuperTrend calculations
ATR Period: Sets the ATR period for all SuperTrend calculations
Pre-Built Color Styles: Use a pre-built color styling (uncheck to use your own colors)
Manual Color Styles: When pre-built color styles are disabled, use these color inputs to define your own
Cari dalam skrip untuk "mtf"
MTF Stochastic ScannerThis Stochastic scanner can be use to identify overbought and oversold of 10 symbols over multiple timeframes
it will give you a quick overview which pair is more overbough or more oversold and also signals tops and bottoms in the AVG row
light red/green cell = weak bearish (Stoch = 30-20) / bullish (Stoch = 70-80)
medium red/green cell = bearish (Stoch = 20-10) / bullish (Stoch = 80-90)
dark red/green cell = strong bearish (Stoch <= 10) / bullish (Stoch >= 90)
gray cell = neutral (Stoch = 30-70)
Usage
If AVG (average of all 4 timeframes) falls below 20, the cell will get green, indicating a good time to enter long (buy)
If AVG (average of all 4 timeframes) rises above 80, the cell will get red, indicating a good time to enter short (sell)
Use the "MTF Stochastic Scanner" in combination with the " MTF RSI Scanner "
to find tops (RSI MTF avg >=70 AND Stochastic MTF avg >= 80)
or bottoms (RSI MTF avg <= 30 AND Stochastic MTF avg <= 20)
Here is how the two MTF scanners looked on Nov 08 2021 (ATH) »
and here how the MTF scanners looked on June 21 2022
use TradingViews Replay function to check how it would have worked in the past and when not.
As always… there NOT a single indicator that can show to the top & bottom 100% every single time. So use with caution, with other indicators and/or deeper understanding of technicals analysis ☝️☝️☝️
Settings
You can change the timeframes, symbols, Stochastic settings, overbought/oversold levels and colors to your liking
Drag the table onto the price chart, if you want to use it as an overlay.
NOTE:
Because of the 4x10 security requests, it can take up to 1 minute for changed settings to take effect! Please be patient 🙃
If you have any idea on how to optimise the code, please feel free to share 🙏
*** Inspired by "Binance CHOP Dashboard" from @Cazimiro and "RSI MTF Table" from @mobester16 ***
MTF 200 SMAMulti-Timeframe (MTF) 200 SMA: Your Universal Trend Guide
Tired of switching timeframes just to check the major moving averages?
The MTF 200 SMA indicator is a powerful, customizable tool designed to give you a clear, comprehensive view of the trend across multiple timeframes, all on a single chart. It's built on Pine Script v6 for stability and performance.
Key Features:
9 MTF Lines: Simultaneously plot the 200 Simple Moving Average (SMA) for 30m, 1h, 2h, 3h, 4h, 6h, 8h, Daily, and Weekly charts. Understand the overall market structure at a glance.
Single-Click Toggle: Use the 'Current Chart TF Only' checkbox to instantly switch from the crowded MTF view to showing only the standard 200 SMA for your current chart resolution. Perfect for focusing on immediate price action.
Dynamic Highlighting: The 'Highlight Current Chart TF' option (default ON) emphasizes the SMA corresponding to your current chart, making it stand out with a bright Aqua color and a thicker line when in MTF mode.
Full Customization: Easily adjust the SMA Length and the MTF SMA Line Color directly in the indicator settings.
How to Use It:
Trend Confirmation: When all MTF lines (especially the Daily and Weekly) are aligned and moving in the same direction, it provides high-confidence trend confirmation.
Dynamic S/R: The MTF SMAs often act as strong dynamic Support and Resistance levels, even when viewing a lower timeframe like the 5-minute chart.
Clean Analysis: Use the 'Current Chart TF Only' option when you need to declutter your chart and focus on the primary trend of your active trading session.
Elevate your trend analysis today with the MTF 200 SMA!
MTF RSI ScannerThis RSI scanner can be use to identify the relative strength of 10 symbols over multiple timeframes
it will give you a quick overview which pair is more bearish or more bullish and also signals tops and bottoms in the AVG row
light red/green cell = weak bearish (RSI = 45-35) / bullish (RSI = 55-65)
medium red/green cell = bearish (RSI = 35-25) / bullish (RSI = 65-75)
dark red/green cell = strong bearish (RSI <= 25) / bullish (RSI >= 75)
gray cell = neutral (RSI= 45-55)
Usage
If AVG (average of all 4 timeframes) falls below 30, the cell will get green, indicating a good time to enter long (buy)
If AVG (average of all 4 timeframes) rises above 70, the cell will get red, indicating a good time to enter short (sell)
Use the "MTF RSI Scanner" in combination with the "MTF Stochastic Scanner"
to find tops (RSI MTF avg >=70 AND Stochastic MTF avg >= 80)
or bottoms (RSI MTF avg <= 30 AND Stochastic MTF avg <= 20)
Here is how the two MTF scanners looked on Nov 08 2021 (ATH) »
and here how the MTF scanners looked on June 21 2022
use TradingViews Replay function to check how it would have worked in the past and when not.
As always… there NOT a single indicator that can show to the top & bottom 100% every single time. So use with caution, with other indicators and/or deeper understanding of technicals analysis ☝️☝️☝️
Settings
You can change the timeframes, symbols, RSI settings, overbought/oversold levels and colors to your liking
Drag the table onto the price chart, if you want to use it as an overlay.
NOTE:
Because of the 4x10 security requests, it can take up to 1 minute for changed settings to take effect! Please be patient 🙃
If you have any idea on how to optimise the code, please feel free to share 🙏
*** Inspired by "Binance CHOP Dashboard" from @Cazimiro and "RSI MTF Table" from @mobester16 ***
MTF MomentumUniqueness:
MTF Momentum is designed to provide true multiple-timeframe information at once on a single screen with as little clutter as possible. What makes MTF Momentum unique is the way it condenses the perspectives of our other internal models into a single bullish or bearish slope near the current candle, then automatically draws the same bullish or bearish momentum slopes of the next higher timeframes. The structure is engineered to highlight shifts in momentum as they happen on the current candle (angled lines), marking potential reversal points as they build (red and green diamonds), and provides a numerical Q-Score that draws a horizontal marker for elevated Q-Score exhaustion. The design avoids telling you when to buy or sell. Instead, it structures the raw inputs in a way that makes interpretation easier. That makes it useful whether you’re trading actively or simply learning to recognize how momentum flows across layers.
Usefulness:
This indicator is designed to work across multiple timeframes. Instead of juggling the same indicator on 3 different screens, you can see a unified picture that captures both the local momentum and higher timeframes that provide time-dimensional context. When short-term and higher-timeframe angles point in the same direction, MTF Momentum makes that visible in a straightforward way and may help highlight when momentum is consistent across multiple timeframes. When short-term layers push against a stronger higher timeframe, it signals that momentum may be shifting or exhausting. This indicator provides an efficient workflow and helps reduce clutter.
How It Works:
At its core, MTF Momentum is a blend of momentum readings from multiple sources — RSI slopes, EMA stacks, Gaussian smoothing, Fisher-style transforms, and MACD widening analysis built from the same shared core mathematical engines as our other indicators. The uniqueness of this indicator is not tied to any single formula as each component is well-known, but it is in the way they are layered, smoothed, and consolidated that entirely new readings are created.
The process begins with multiple RSI calculations, offset and averaged to reduce jitter. These are smoothed through EMA stacks of varying lengths, then run through Gaussian-style filters that emphasize directional change while filtering noise. The slope differences across these layers form the foundation of the momentum calculation. This momentum reading is then checked against MACD widening conditions. MACD gap expansion is treated as a momentum confirmation — widening gaps with price in agreement add weight, while narrowing gaps or misaligned candles reduce confidence. Additional derivative logic, including Fisher-style transforms, is applied to normalize the outputs and make them more stable across different assets.
Multi-timeframe integration comes from using request.security to pull higher timeframe versions of the same structures that are on the base chart. For example, you can see a one-minute chart overlaid with five-minute and fifteen-minute context. The blending is seamless — higher timeframe momentum is displayed alongside lower timeframe signals that help the user see where current timeframe momentum is in relation to higher timeframes.
How to Use the MTF Momentum Indicator:
Applying the MTF Momentum indicator is straightforward, but interpretation depends on your process.
To use, load the indicator on your preferred base timeframe. Use this general guideline to setup your indicators:
Base timeframe -> 1st HTF -> 2nd HTF
1min -> 5min -> 15min
5min -> 15min -> 1hr
15min -> 1hr -> 4hr
1hr -> 4hr -> 1day
4hr -> 1day -> Weekly
1day -> Weekly -> Monthly
Weekly -> Monthly -> Yearly
When used at base timeframes at 1 hour or lower, higher timeframe lines ARE drawn automatically.
When using a base timeframe above 1 hour (e.g., 4h, Daily), higher-timeframe slopes are NOT drawn automatically. To view them, switch to the higher-timeframe chart itself (for example, Daily or Weekly) and draw an arrow along the slope using TradingView’s drawing tools. Once placed, the arrow will remain visible when you return to your lower base timeframe chart, giving you the higher-timeframe context alongside your current view. This step is optional, purely for visual reference, and does not affect the indicator’s calculations.
These are your higher timeframe momentum angles that can help provide context to the automatically drawn angle on your current timeframe. You can even practice drawing these lines on the lower timeframes such as using a 5min base and 15min and 1hr HTF charts. You can compare your manually drawn angles with the automatic HTF lines by enabling them in the INPUTS tab of the MTF Momentum settings menu.
Q-SCORE:
The Q-Score label presents two values ranging from 0 to 100. These values are a numerical translation of the same momentum conditions our other indicators display visually. Higher values indicate stronger readings of exhaustion within the current trend model, while lower values indicate less. You can think of this as similar to a distribution curve, where some states occur less frequently at the extreme ends of the range and more frequently near the middle. Q-Score values are provided as contextual information only and do not predict reversals or guarantee outcomes.
Blue Dotted & Solid Horizontal line:
The aqua blue horizontal line is a visual representation of the Q-Score values. When one or both numerical values is below 85 the line stays dotted -- it is only when both numerical values exceed 85 that the line changes from dotted to solid.
Green & Red Diamonds:
Diamonds mark areas where the underlying model detects counter-trend behavior. They may flicker on the current candle during intrabar calculations but are locked in at candle close and never get altered or repainted.
Red diamonds highlight points where the model detects counter-trend pressure during a bullish phase. Green diamonds highlight counter-trend pressure during a bearish phase. These markers reflect where momentum conditions have shifted relative to the prevailing trend. They appear where short-term dynamics differ from the broader trend. Traders can interpret these areas in their own context; the diamonds themselves do not predict reversals or guarantee outcomes.
Example ways to use the MTF Momentum indicator:
Look for agreement -- when both your base timeframe and higher timeframe momentums are pointing in the same direction, it reflects stronger alignment. This may help identify areas of trend continuation.
Watch for divergence -- if your short-term momentum pushes opposite to the higher timeframe, it flags a potential transition.
Disclaimer:
This tool does not generate buy or sell signals. It is a framework for visualizing momentum across layers, allowing you to incorporate that information into your own decision-making. How you apply it depends entirely on your goals, timeframe, and risk tolerance. This indicator is provided for educational and informational purposes only. It does not constitute financial advice, trading advice, or investment recommendations. Trading involves risk, and you may lose some or all of your capital. Past performance is not a guarantee of future results. You are solely responsible for any decisions you make — always trade to the best of your own abilities and within your own risk tolerance.
Release Notes:
v1.0 (Initial Release)
MTF Volume Flow IndicatorThe MTF Volume Flow Indicator (MTF VFI) is an advanced and versatile tool that enhances market analysis by tracking the flow of volume across multiple timeframes. By integrating volume flow with multi-timeframe analysis, this indicator provides traders with a comprehensive understanding of market trends, momentum, and potential reversals.
Key Features
Multi-Timeframe Volume Flow Analysis: The MTF VFI computes the Volume Flow Indicator across various timeframes, ranging from 1 minute to 1 month. This multi-timeframe analysis enables traders to observe and compare volume flow dynamics across different time horizons, offering deeper insights into market behavior.
Customizable VFI Settings: The indicator includes configurable VFI parameters such as length, coefficient, and volume cutoff, allowing users to tailor the analysis to different market conditions and trading strategies. This flexibility ensures that the indicator remains relevant across diverse market environments.
Signal Line and Delta Calculations: The script features a signal line derived from the VFI and calculates the delta values (the difference between VFI and the signal line). These delta values are essential for identifying potential buy or sell signals and are presented as histograms for easy visual interpretation.
Cumulative Delta with Dynamic Bands: The indicator introduces cumulative delta, a powerful tool that combines average and median VFI values to provide a clearer picture of market sentiment. Two standard deviation bands are plotted around the cumulative delta, offering a range within which price movements are likely to remain. These bands are smoothed using a 21-period EMA, providing a more refined view of market volatility.
Multi-Timeframe and Analysis Tables: The MTF VFI includes optional tables that display VFI, signal line, and delta values across all selected timeframes. Additionally, an analysis table presents key statistical metrics such as the highest, lowest, average, standard deviation, range, and median VFI values. These tables provide a concise summary of market conditions, aiding in strategic decision-making.
Dynamic Display Options: The indicator offers extensive customization options, allowing traders to display or hide elements such as delta histograms, delta bands, and tables. This ensures that users can focus on the most relevant information for their trading strategy.
Neutral Candle Coloring Option: Traders can enable neutral candle colors, where bearish candles are gray and bullish candles are white. This feature helps to reduce noise and maintain focus on the overall trend and volume flow analysis.
How It Works
Volume Flow Indicator Calculation: The VFI is calculated using a combination of typical price, volume, and the standard deviation of price changes. The indicator smooths the VFI based on user preferences, allowing traders to adjust the sensitivity of the analysis to better match their trading style.
Multi-Timeframe Integration: The script pulls VFI calculations from multiple timeframes, providing a holistic view of market trends. By analyzing VFI across different timeframes, traders can detect alignments or divergences in volume flow that might indicate trend strength or weakness.
Cumulative Delta and Dynamic Bands: The cumulative delta is computed by combining the average and median VFI values. Dynamic two-standard-deviation bands are plotted around this cumulative delta, providing upper and lower bounds for expected price movements. These bands are further smoothed with a 21-period EMA, enhancing their effectiveness in volatile markets.
Delta Analysis and Histogram Display: The difference between the VFI and its signal line (delta) is calculated and displayed as histograms. This visual representation helps traders quickly assess momentum and identify potential reversals or trend continuations. The cumulative delta is color-coded dynamically based on its direction, adding an extra layer of visual clarity.
Alerts
VFI Crossover Alerts: The indicator includes customizable alerts that notify traders when the VFI crosses above or below its signal line. These alerts are crucial for catching potential trend reversals or continuation signals, even when the trader is not actively monitoring the chart.
Customizable Alert Conditions: Traders can tailor alert conditions to their preferred timeframes and VFI settings, ensuring that the notifications they receive are relevant and timely for their specific trading strategies.
Application
Trend Identification and Confirmation: The MTF VFI aids in identifying and confirming trends by analyzing volume flow across multiple timeframes. This capability is particularly useful for detecting trends that may not be visible on a single timeframe.
Momentum and Divergence Analysis: By comparing VFI and delta values across timeframes, and analyzing cumulative delta with dynamic bands, traders can gain insights into market momentum and potential divergences, which are often precursors to reversals.
Strategic Decision-Making: With its comprehensive multi-timeframe analysis, cumulative delta, and statistical summaries, the MTF VFI equips traders with the information needed to make informed trading decisions, whether for short-term trades or long-term investments.
Visual Clarity and Customization: The indicator’s dynamic display options and neutral candle coloring help traders maintain a clear and focused view of the market, customizing the visualization to match their specific needs.
The MTF Volume Flow Indicator (MTF VFI) by CryptoSea is an essential tool for traders who seek to gain a deeper understanding of market trends and volume dynamics across multiple timeframes. Its advanced features and customization options make it a valuable addition to any trader’s toolkit.
MTF Fusion - S/R Levels [TradingIndicators]MTF Fusion S/R Levels intelligently adapt to whatever timeframe you're trading - dynamically calculating pivot-based support and resistance levels combined from four appropriate higher timeframes to give you a much broader view of the market and an edge in your trading decisions. It is the second indicator in our MTF Fusion series, and leverages our MTF Fusion algorithm - only this time to visualize pivot-based S/R levels and zones.
These levels are not programmed to repaint - so you can use them in real-time just as they appeared historically.
What is MTF Fusion?
Multi-Timeframe (MTF) Fusion is the process of combining calculations from multiple timeframes higher than the chart's into one 'fused' value or indicator. It is based on the idea that integrating data from higher timeframes can help us to better identify short-term trading opportunities within the context of long-term market trends.
How does it work?
Let's use the context of this indicator, which calculates S/R Levels based on pivot points, as an example to explain how MTF Fusion works and how you can perform it yourself.
Step 1: Selecting Higher Timeframes
The first step is to determine the appropriate higher timeframes to use for the fusion calculation. These timeframes should typically be chosen based on their ability to provide meaningful price levels and action which actively affect the price action of the smaller timeframe you're focused on. For example, if you are trading the 5 minute chart, you might select the 15 minute, 30 minute, and hourly timeframe as the higher timeframes you want to fuse in order to give you a more holistic view of the trends and action affecting you on the 5 minute. In this indicator, four higher timeframes are automatically selected depending on the timeframe of the chart it is applied to.
Step 2: Gathering Data and Calculations
Once the higher timeframes are identified, the next step is to calculate the data from these higher timeframes that will be used to calculate your fused values. In this indicator, for example, the values of support and resistance levels are calculated by determining pivot points for all four higher timeframes.
Step 3: Fusing the Values From Higher Timeframes
The next step is to actually combine the values from these higher timeframes to obtain your 'fused' indicator values. The simplest approach to this is to simply average them. If you have calculated the value of a support level from three higher timeframes, you can, for example, calculate your 'multi-timeframe fused level' as (HigherTF_Support_Level_1 + HigherTF_Support_Level_2 + HigherTF_Support_Level_3) / 3.0.
Step 4: Visualization and Interpretation
Once the calculations are complete, the resulting fused indicator values are plotted on the chart. These values reflect the fusion of data from the multiple higher timeframes, giving a broader perspective on the market's behavior and potentially valuable insights without the need to manually consider values from each higher timeframe yourself.
What makes this script unique? Why is it closed source?
While the process described above is fairly unique and sounds simple, the truly important key lies in determining which higher timeframes to fuse together, and how to weight their values when calculating the fused end result in such a way that best leverages their relationship for useful TA.
This MTF Fusion indicator employs a smart, adaptive algorithm which automatically selects appropriate higher timeframes to use in fusion calculations depending on the timeframe of the chart it is applied to. It also uses a dynamic algorithm to adjust and weight the lookbacks used for pivot and S/R level calculations depending on each higher timeframe's relationship to the chart timeframe. These algorithms are based on extensive testing and are the reason behind this script's closed source status.
Included Features
Fusion Support and Resistance Levels
Dynamic Multi-Timeframe S/R Levels
Breakaway Zone fills to highlight breakouts and breakdowns from the Fusion S/R Levels
Customizable lookback approach
Pre-built color stylings
Options
Fusion View: Show/hide the Fusion S/R Levels calculated from multiple higher timeframes
MTF View: Show/hide the S?R levels from multiple higher timeframes used to calculate the Fusion S/R Levels
Breakaway Zones: Show/hide the fill for zones where price breaks away from the Fusion S/R Levels
Lookback: Select how you want your S/R Levels to be calculated (longer = long-term levels, shorter = short-term levels)
Pre-Built Color Styles: Use a pre-built color styling (uncheck to use your own colors)
Manual Color Styles: When pre-built color styles are disabled, use these color inputs to define your own
MTF K-Means Price Regimes [matteovesperi] ⚠️ The preview uses a custom example to identify support/resistance zones. due to the fact that this identifier clusterizes, this is possible. this example was set up "in a hurry", therefore it has a possible inaccuracy. When setting up the indicator, it is extremely important to select the correct parameters and double-check them on the selected history.
📊 OVERVIEW
Purpose
MTF K-Means Price Regimes is a TradingView indicator that automatically identifies and classifies the current market regime based on the K-Means machine learning algorithm. The indicator uses data from a higher timeframe (Multi-TimeFrame, MTF) to build stable classification and applies it to the working timeframe in real-time.
Key Features
✅ Automatic market regime detection — the algorithm finds clusters of similar market conditions
✅ Multi-timeframe (MTF) — clustering on higher TF, application on lower TF
✅ Adaptive — model recalculates when a new HTF bar appears with a rolling window
✅ Non-Repainting — classification is performed only on closed bars
✅ Visualization — bar coloring + information panel with cluster characteristics
✅ Flexible settings — from 2 to 10 clusters, customizable feature periods, HTF selection
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 TECHNICAL DETAILS
K-Means Clustering Algorithm
What is K-Means?
K-Means is one of the most popular clustering algorithms (unsupervised machine learning). It divides a dataset into K groups (clusters) so that similar elements are within each cluster, and different elements are between clusters.
Algorithm objective:
Minimize within-cluster variance (sum of squared distances from points to their cluster center).
How Does K-Means Work in Our Indicator?
Step 1: Data Collection
The indicator accumulates history from the higher timeframe (HTF):
RSI (Relative Strength Index) — overbought/oversold indicator
ATR% (Average True Range as % of price) — volatility indicator
ΔP% (Price Change in %) — trend strength and direction indicator
By default, 200 HTF bars are accumulated (clusterLookback parameter).
Step 2: Creating Feature Vectors
Each HTF bar is described by a three-dimensional vector:
Vector =
Step 3: Normalization (Z-Score)
All features are normalized to bring them to a common scale:
Normalized_Value = (Value - Mean) / StdDev
This is critically important, as RSI is in the range 0-100, while ATR% and ΔP% have different scales. Without normalization, one feature would dominate over others.
Step 4: K-Means++ Centroid Initialization
Instead of random selection of K initial centers, an improved K-Means++ method is used:
First centroid is randomly selected from the data
Each subsequent centroid is selected with probability proportional to the square of the distance to the nearest already selected centroid
This ensures better initial centroid distribution and faster convergence
Step 5: Iterative Optimization (Lloyd's Algorithm)
Repeat until convergence (or maxIterations):
1. Assignment step:
For each point find the nearest centroid and assign it to this cluster
2. Update step:
Recalculate centroids as the average of all points in each cluster
3. Convergence check:
If centroids shifted less than 0.001 → STOP
Euclidean distance in 3D space is used:
Distance = sqrt((RSI1 - RSI2)² + (ATR1 - ATR2)² + (ΔP1 - ΔP2)²)
Step 6: Adaptive Update
With each new HTF bar:
The oldest bar is removed from history (rolling window method)
New bar is added to history
K-Means algorithm is executed again on updated data
Model remains relevant for current market conditions
Real-Time Classification
After building the model (clusters + centroids), the indicator works in classification mode:
On each closed bar of the current timeframe, RSI, ATR%, ΔP% are calculated
Feature vector is normalized using HTF statistics (Mean/StdDev)
Distance to all K centroids is calculated
Bar is assigned to the cluster with minimum distance
Bar is colored with the corresponding cluster color
Important: Classification occurs only on a closed bar (barstate.isconfirmed), which guarantees no repainting .
Data Architecture
Persistent variables (var):
├── featureVectors - Normalized HTF feature vectors
├── centroids - Cluster center coordinates (K * 3 values)
├── assignments - Assignment of each HTF bar to a cluster
├── htfRsiHistory - History of RSI values from HTF
├── htfAtrHistory - History of ATR values from HTF
├── htfPcHistory - History of price changes from HTF
├── htfCloseHistory - History of close prices from HTF
├── htfRsiMean, htfRsiStd - Statistics for RSI normalization
├── htfAtrMean, htfAtrStd - Statistics for ATR normalization
├── htfPcMean, htfPcStd - Statistics for Price Change normalization
├── isCalculated - Model readiness flag
└── currentCluster - Current active cluster
All arrays are synchronized and updated atomically when a new HTF bar appears.
Computational Complexity
Data collection: O(1) per bar
K-Means (one pass):
- Assignment: O(N * K) where N = number of points, K = number of clusters
- Update: O(N * K)
- Total: O(N * K * I) where I = number of iterations (usually 5-20)
Example: With N=200 HTF bars, K=5 clusters, I=20 iterations:
200 * 5 * 20 = 20,000 operations (executes quickly)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📖 USER GUIDE
Quick Start
1. Adding the Indicator
TradingView → Indicators → Favorites → MTF K-Means Price Regimes
Or copy the code from mtf_kmeans_price_regimes.pine into Pine Editor.
2. First Launch
When adding the indicator to the chart, you'll see a table in the upper right corner:
┌─────────────────────────┐
│ Status │ Collecting HTF │
├─────────────────────────┤
│ Collected│ 15 / 50 │
└─────────────────────────┘
This means the indicator is accumulating history from the higher timeframe. Wait until the counter reaches the minimum (default 50 bars for K=5).
3. Active Operation
After data collection is complete, the main table with cluster information will appear:
┌────┬──────┬──────┬──────┬──────────────┬────────┐
│ ID │ RSI │ ATR% │ ΔP% │ Description │Current │
├────┼──────┼──────┼──────┼──────────────┼────────┤
│ 1 │ 68.5 │ 2.15 │ 1.2 │ High Vol,Bull│ │
│ 2 │ 52.3 │ 0.85 │ 0.1 │ Low Vol,Flat │ ► │
│ 3 │ 35.2 │ 1.95 │ -1.5 │ High Vol,Bear│ │
└────┴──────┴──────┴──────┴──────────────┴────────┘
The arrow ► indicates the current active regime. Chart bars are colored with the corresponding cluster color.
Customizing for Your Strategy
Choosing Higher Timeframe (HTF)
Rule: HTF should be at least 4 times higher than the working timeframe.
| Working TF | Recommended HTF |
|------------|-----------------|
| 1 min | 15 min - 1H |
| 5 min | 1H - 4H |
| 15 min | 4H - D |
| 1H | D - W |
| 4H | D - W |
| D | W - M |
HTF Selection Effect:
Lower HTF (closer to working TF): More sensitive, frequently changing classification
Higher HTF (much larger than working TF): More stable, long-term regime assessment
Number of Clusters (K)
K = 2-3: Rough division (e.g., "uptrend", "downtrend", "flat")
K = 4-5: Optimal for most cases (DEFAULT: 5)
K = 6-8: Detailed segmentation (requires more data)
K = 9-10: Very fine division (only for long-term analysis with large windows)
Important constraint:
clusterLookback ≥ numClusters * 10
I.e., for K=5 you need at least 50 HTF bars, for K=10 — at least 100 bars.
Clustering Depth (clusterLookback)
This is the rolling window size for building the model.
50-100 HTF bars: Fast adaptation to market changes
200 HTF bars: Optimal balance (DEFAULT)
500-1000 HTF bars: Long-term, stable model
If you get an "Insufficient data" error:
Decrease clusterLookback
Or select a lower HTF (e.g., "4H" instead of "D")
Or decrease numClusters
Color Scheme
Default 10 colors:
Red → Often: strong bearish, high volatility
Orange → Transition, medium volatility
Yellow → Neutral, decreasing activity
Green → Often: strong bullish, high volatility
Blue → Medium bullish, medium volatility
Purple → Oversold, possible reversal
Fuchsia → Overbought, possible reversal
Lime → Strong upward momentum
Aqua → Consolidation, low volatility
White → Undefined regime (rare)
Important: Cluster colors are assigned randomly at each model recalculation! Don't rely on "red = bearish". Instead, look at the description in the table (RSI, ATR%, ΔP%).
You can customize colors in the "Colors" settings section.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ INDICATOR PARAMETERS
Main Parameters
Higher Timeframe (htf)
Type: Timeframe selection
Default: "D" (daily)
Description: Timeframe on which the clustering model is built
Recommendation: At least 4 times larger than your working TF
Clustering Depth (clusterLookback)
Type: Integer
Range: 50 - 2000
Default: 200
Description: Number of HTF bars for building the model (rolling window size)
Recommendation:
- Increase for more stable long-term model
- Decrease for fast adaptation or if there's insufficient historical data
Number of Clusters (K) (numClusters)
Type: Integer
Range: 2 - 10
Default: 5
Description: Number of market regimes the algorithm will identify
Recommendation:
- K=3-4 for simple strategies (trending/ranging)
- K=5-6 for universal strategies
- K=7-10 only when clusterLookback ≥ 100*K
Max K-Means Iterations (maxIterations)
Type: Integer
Range: 5 - 50
Default: 20
Description: Maximum number of algorithm iterations
Recommendation:
- 10-20 is sufficient for most cases
- Increase to 30-50 if using K > 7
Feature Parameters
RSI Period (rsiLength)
Type: Integer
Default: 14
Description: Period for RSI calculation (overbought/oversold feature)
Recommendation:
- 14 — standard
- 7-10 — more sensitive
- 20-25 — more smoothed
ATR Period (atrLength)
Type: Integer
Default: 14
Description: Period for ATR calculation (volatility feature)
Recommendation: Usually kept equal to rsiLength
Price Change Period (pcLength)
Type: Integer
Default: 5
Description: Period for percentage price change calculation (trend feature)
Recommendation:
- 3-5 — short-term trend
- 10-20 — medium-term trend
Visualization
Show Info Panel (showDashboard)
Type: Checkbox
Default: true
Description: Enables/disables the information table on the chart
Cluster Color 1-10
Type: Color selection
Description: Customize colors for visual cluster distinction
Recommendation: Use contrasting colors for better readability
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 INTERPRETING RESULTS
Reading the Information Table
┌────┬──────┬──────┬──────┬──────────────┬────────┐
│ ID │ RSI │ ATR% │ ΔP% │ Description │Current │
├────┼──────┼──────┼──────┼──────────────┼────────┤
│ 1 │ 68.5 │ 2.15 │ 1.2 │ High Vol,Bull│ │
│ 2 │ 52.3 │ 0.85 │ 0.1 │ Low Vol,Flat │ ► │
│ 3 │ 35.2 │ 1.95 │ -1.5 │ High Vol,Bear│ │
│ 4 │ 45.0 │ 1.20 │ -0.3 │ Low Vol,Bear │ │
│ 5 │ 72.1 │ 3.05 │ 2.8 │ High Vol,Bull│ │
└────┴──────┴──────┴──────┴──────────────┴────────┘
"ID" Column
Cluster number (1-K). Order doesn't matter.
"RSI" Column
Average RSI value in the cluster (0-100):
< 30: Oversold zone
30-45: Bearish sentiment
45-55: Neutral zone
55-70: Bullish sentiment
> 70: Overbought zone
"ATR%" Column
Average volatility in the cluster (as % of price):
< 1%: Low volatility (consolidation, narrow range)
1-2%: Normal volatility
2-3%: Elevated volatility
> 3%: High volatility (strong movements, impulses)
Compared to the average volatility across all clusters to determine "High Vol" or "Low Vol".
"ΔP%" Column
Average price change in the cluster (in % over pcLength period):
> +0.05%: Bullish regime
-0.05% ... +0.05%: Flat (sideways movement)
< -0.05%: Bearish regime
"Description" Column
Automatic interpretation:
"High Vol, Bull" → Strong upward momentum, high activity
"Low Vol, Flat" → Consolidation, narrow range, uncertainty
"High Vol, Bear" → Strong decline, panic, high activity
"Low Vol, Bull" → Slow growth, low activity
"Low Vol, Bear" → Slow decline, low activity
"Current" Column
Arrow ► shows which cluster the last closed bar of your working timeframe is in.
Typical Cluster Patterns
Example 1: Trend/Flat Division (K=3)
Cluster 1: RSI=65, ATR%=2.5, ΔP%=+1.5 → Bullish trend
Cluster 2: RSI=50, ATR%=0.8, ΔP%=0.0 → Flat/Consolidation
Cluster 3: RSI=35, ATR%=2.3, ΔP%=-1.4 → Bearish trend
Strategy: Open positions when regime changes Flat → Trend, avoid flat.
Example 2: Volatility Breakdown (K=5)
Cluster 1: RSI=72, ATR%=3.5, ΔP%=+2.5 → Strong bullish impulse (high risk)
Cluster 2: RSI=60, ATR%=1.5, ΔP%=+0.8 → Moderate bullish (optimal entry point)
Cluster 3: RSI=50, ATR%=0.7, ΔP%=0.0 → Flat
Cluster 4: RSI=40, ATR%=1.4, ΔP%=-0.7 → Moderate bearish
Cluster 5: RSI=28, ATR%=3.2, ΔP%=-2.3 → Strong bearish impulse (panic)
Strategy: Enter in Cluster 2 or 4, avoid extremes (1, 5).
Example 3: Mixed Regimes (K=7+)
With large K, clusters can represent condition combinations:
High RSI + Low volatility → "Quiet overbought"
Neutral RSI + High volatility → "Uncertainty with high activity"
Etc.
Requires individual analysis of each cluster.
Regime Changes
Important signal: Transition from one cluster to another!
Trading situation examples:
Flat → Bullish trend → Buy signal
Bullish trend → Flat → Take profit, close longs
Flat → Bearish trend → Sell signal
Bearish trend → Flat → Close shorts, wait
You can build a trading system based on the current active cluster and transitions between them.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 USAGE EXAMPLES
Example 1: Scalping with HTF Filter
Task: Scalping on 5-minute charts, but only enter in the direction of the daily regime.
Settings:
Working TF: 5 min
HTF: D (daily)
K: 3 (simple division)
clusterLookback: 100
Logic:
IF current cluster = "Bullish" (ΔP% > 0.5)
→ Look for long entry points on 5M
IF current cluster = "Bearish" (ΔP% < -0.5)
→ Look for short entry points on 5M
IF current cluster = "Flat"
→ Don't trade / reduce risk
Example 2: Swing Trading with Volatility Filtering
Task: Swing trading on 4H, enter only in regimes with medium volatility.
Settings:
Working TF: 4H
HTF: D (daily)
K: 5
clusterLookback: 200
Logic:
Allowed clusters for entry:
- ATR% from 1.5% to 2.5% (not too quiet, not too chaotic)
- ΔP% with clear direction (|ΔP%| > 0.5)
Prohibited clusters:
- ATR% > 3% → Too risky (possible gaps, sharp reversals)
- ATR% < 1% → Too quiet (small movements, commissions eat profit)
Example 3: Portfolio Rotation
Task: Managing a portfolio of multiple assets, allocate capital depending on regimes.
Settings:
Working TF: D (daily)
HTF: W (weekly)
K: 4
clusterLookback: 100
Logic:
For each asset in portfolio:
IF regime = "Strong trend + Low volatility"
→ Increase asset weight in portfolio (40-50%)
IF regime = "Medium trend + Medium volatility"
→ Standard weight (20-30%)
IF regime = "Flat" or "High volatility without trend"
→ Minimum weight or exclude (0-10%)
Example 4: Combining with Other Indicators
MTF K-Means as a filter:
Main strategy: MA Crossover
Filter: MTF K-Means on higher TF
Rule:
IF MA_fast > MA_slow AND Cluster = "Bullish regime"
→ LONG
IF MA_fast < MA_slow AND Cluster = "Bearish regime"
→ SHORT
ELSE
→ Don't trade (regime doesn't confirm signal)
This dramatically reduces false signals in unsuitable market conditions.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 OPTIMIZATION RECOMMENDATIONS
Optimal Settings for Different Styles
Day Trading
Working TF: 5M - 15M
HTF: 1H - 4H
numClusters: 4-5
clusterLookback: 100-150
Swing Trading
Working TF: 1H - 4H
HTF: D
numClusters: 5-6
clusterLookback: 150-250
Position Trading
Working TF: D
HTF: W - M
numClusters: 4-5
clusterLookback: 100-200
Scalping
Working TF: 1M - 5M
HTF: 15M - 1H
numClusters: 3-4
clusterLookback: 50-100
Backtesting
To evaluate effectiveness:
Load historical data (minimum 2x clusterLookback HTF bars)
Apply the indicator with your settings
Study cluster change history:
- Do changes coincide with actual trend transitions?
- How often do false signals occur?
Optimize parameters:
- If too much noise → increase HTF or clusterLookback
- If reaction too slow → decrease HTF or increase numClusters
Combining with Other Techniques
Regime-Based Approach:
MTF K-Means (regime identification)
↓
+---+---+---+
| | | |
v v v v
Trend Flat High_Vol Low_Vol
↓ ↓ ↓ ↓
Strategy_A Strategy_B Don't_trade
Examples:
Trend: Use trend-following strategies (MA crossover, Breakout)
Flat: Use mean-reversion strategies (RSI, Bollinger Bands)
High volatility: Reduce position sizes, widen stops
Low volatility: Expect breakout, don't open positions inside range
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📞 SUPPORT
Report an Issue
If you found a bug or have a suggestion for improvement:
Describe the problem in as much detail as possible
Specify your indicator settings
Attach a screenshot (if possible)
Specify the asset and timeframe where the problem is observed
MTF Fusion - PSAR [TradingIndicators]MTF Fusion PSAR intelligently adapts to whatever timeframe you're trading - dynamically calculating Parabolic SAR (Stop and Reverse) levels combined from four appropriate higher timeframes to give you a much broader view of the market and an edge in your trading decisions. It is the third indicator in our MTF Fusion series, and leverages our MTF Fusion algorithm - only this time to visualize J. Welles Wilder Jr.'s famous Parabolic SAR indicator.
What is MTF Fusion?
Multi-Timeframe (MTF) Fusion is the process of combining calculations from multiple timeframes higher than the chart's into one 'fused' value or indicator. It is based on the idea that integrating data from higher timeframes can help us to better identify short-term trading opportunities within the context of long-term market trends.
How does it work?
Let's use the context of this indicator, which calculates PSAR levels, as an example to explain how MTF Fusion works and how you can perform it yourself.
Step 1: Selecting Higher Timeframes
The first step is to determine the appropriate higher timeframes to use for the fusion calculation. These timeframes should typically be chosen based on their ability to provide meaningful price levels and action which actively affect the price action of the smaller timeframe you're focused on. For example, if you are trading the 5 minute chart, you might select the 15 minute, 30 minute, and hourly timeframe as the higher timeframes you want to fuse in order to give you a more holistic view of the trends and action affecting you on the 5 minute. In this indicator, four higher timeframes are automatically selected depending on the timeframe of the chart it is applied to.
Step 2: Gathering Data and Calculations
Once the higher timeframes are identified, the next step is to calculate the data from these higher timeframes that will be used to calculate your fused values. In this indicator, for example, the values of PSAR levels are calculated by determining the value of the PSAR indicator for all four higher timeframes.
Step 3: Fusing the Values From Higher Timeframes
The next step is to actually combine the values from these higher timeframes to obtain your 'fused' indicator values. The simplest approach to this is to simply average them. If you have calculated the value of a PSAR level from three higher timeframes, you can, for example, calculate your 'multi-timeframe fused level' as (HigherTF_PSAR_Level_1 + HigherTF_PSAR_Level_2 + HigherTF_PSAR_Level_3) / 3.0.
Step 4: Visualization and Interpretation
Once the calculations are complete, the resulting fused indicator values are plotted on the chart. These values reflect the fusion of data from the multiple higher timeframes, giving a broader perspective on the market's behavior and potentially valuable insights without the need to manually consider values from each higher timeframe yourself.
What makes this script unique? Why is it closed source?
While the process described above is fairly unique and sounds simple, the truly important key lies in determining which higher timeframes to fuse together, and how to weight their values when calculating the fused end result in such a way that best leverages their relationship for useful TA.
This MTF Fusion indicator employs a smart, adaptive algorithm which automatically selects appropriate higher timeframes to use in fusion calculations depending on the timeframe of the chart it is applied to. It also uses a dynamic algorithm to adjust and weight the PSAR calculations depending on each higher timeframe's relationship to the chart timeframe. These algorithms are based on extensive testing and are the reason behind this script's closed source status.
What is the PSAR indicator?
The Parabolic SAR (Stop and Reverse) indicator is a technical analysis tool that helps identify potential trend reversals in price movements. It was developed by J. Welles Wilder Jr. and is widely used by traders to determine entry and exit points in the market. It consists of levels that are plotted above or below current price. The position of these plots relative to the price provides valuable information about the prevailing trend and potential reversal points.
Here's how the original PSAR indicator works:
Upward Trend: When the Parabolic SAR level is plotted below the price, it indicates an upward trend in the market. The level generally moves closer to the price as the trend progresses. This creates a parabolic curve that rises with time. Traders typically interpret this as a bullish signal, suggesting that it may be a good time to buy or hold positions.
Downward Trend: Conversely, when the Parabolic SAR level is plotted above the price, it indicates a downward trend in the market. The plot generally moves closer to the price as the trend continues, forming a parabolic curve that declines with time. This is considered a bearish signal, suggesting that it may be a suitable time to sell or avoid taking long positions.
Reversal Points: The primary purpose of the Parabolic SAR indicator is to identify potential trend reversals. When the price crosses above or below the Parabolic SAR level, it indicates a possible reversal in the trend.
The Parabolic SAR indicator is versatile and can be used in various market conditions and timeframes. It is particularly useful in trending markets, where it helps traders ride the trend and capture potential profits. However, it's important to note that the Parabolic SAR may generate false signals or provide delayed indications in sideways or choppy markets.
Included Features
Fusion PSAR levels
Filled zones to highlight trends
Full customization of PSAR parameters
Pre-built color stylings
Options
Fusion View: Show/hide the Fusion PSAR levels calculated from multiple higher timeframes
Fill Trending Zones: Show/hide the fill for 'trending zones' between price and the Fusion PSAR levels
Start: Defines the rate at which the PSAR levels move closer to the price during the initial stages of a trend (higher = faster convergence, lower = slower convergence)
Increment: Controls the rate at which the acceleration factor increases or decreases as the trend continues (higher = faster convergence, lower = slower convergence)
Max: Sets a limit on the maximum value that the acceleration factor can reach
Pre-Built Color Styles: Use a pre-built color styling (uncheck to use your own colors)
Manual Color Styles: When pre-built color styles are disabled, use these color inputs to define your own
MTF seconds values - JDAdd MTF capabilities to "seconds" timeframes!!
This script is not intended to be used as an indicator but gives you a workaround to solve the missing seconds MTF capabilities.
The "resolution" function in Pinescript doesn't allow for seconds values to be put in MTF
So I wrote a little helper code with arrays to get MTF on seconds timeframes.
If you want to add MTF in minutes, hours,... you can always add ' resolution = "" ' to the study line of the script
With these arrays of MTF values you can perform various calculations.
As an example I plotted the sma from the MTF values on the chart, but you can add anything you want that you can calculate from the array values.
Have fun with it !
Gr, JD.
MTF Support & Resistance📌 Multi-Timeframe Support & Resistance (MTF S&R) Indicator
🔎 Overview:
The MTF Support & Resistance Indicator is a powerful tool designed to help traders identify critical price levels where the market is likely to react. This indicator automatically detects support and resistance zones based on a user-defined lookback period and extends these levels dynamically on the chart. Additionally, it provides multi-timeframe (MTF) support and resistance zones, allowing traders to view higher timeframe key levels alongside their current timeframe.
Support and resistance levels are crucial for traders as they help in determining potential reversal points, breakout zones, and trend continuation signals. By incorporating multi-timeframe analysis, this indicator enhances decision-making by providing a broader perspective of price action.
✨ Key Features & Benefits:
✅ Automatic Support & Resistance Detection – No need to manually plot levels; the indicator calculates them dynamically based on historical price action.
✅ Multi-Timeframe (MTF) Levels – Enables traders to see higher timeframe S&R levels on their current chart for better trend confirmation.
✅ Customizable Lookback Period – Adjust sensitivity by modifying the number of historical bars considered when calculating support and resistance.
✅ Color-Coded Visualization –
Green Line → Support on the current timeframe
Red Line → Resistance on the current timeframe
Dashed Blue Line → Higher timeframe support
Dashed Orange Line → Higher timeframe resistance
✅ Dynamic Extension of Levels – Levels extend left and right for better visibility across multiple bars.
✅ Real-Time Updates – Automatically refreshes as new price data comes in.
✅ Non-Repainting – Ensures reliable support and resistance levels that do not change after the bar closes.
📈 How to Use the Indicator:
Identify Key Price Levels:
The green line represents support, where price may bounce.
The red line represents resistance, where price may reject.
The blue dashed line represents support on a higher timeframe, making it a stronger level.
The orange dashed line represents higher timeframe resistance, helping identify major breakout zones.
Trend Trading:
Look for price action around these levels to confirm breakouts or reversals.
Combine with trend indicators (like moving averages) to validate trade entries.
Range Trading:
If the price is bouncing between support and resistance, consider range trading strategies (buying at support, selling at resistance).
Breakout Trading:
If the price breaks above resistance, it could indicate a bullish trend continuation.
If the price breaks below support, it could signal a bearish trend continuation.
⚙️ Indicator Settings:
Lookback Period: Determines the number of historical bars used to calculate support and resistance.
Show Higher Timeframe Levels (MTF): Enable/disable MTF support and resistance levels.
Extend Bars: Extends the drawn lines for better visualization.
Support/Resistance Colors: Allows users to customize the appearance of the lines.
⚠️ Important Notes:
This indicator does NOT generate buy/sell signals—it serves as a technical tool to improve trading analysis.
Best Used With Other Indicators: Consider combining it with volume, moving averages, RSI, or price action strategies for more reliable trade setups.
Works on Any Market & Timeframe: Forex, stocks, commodities, indices, and cryptocurrencies.
Use Higher Timeframe Levels for Stronger Confirmations: If a higher timeframe support/resistance level aligns with a lower timeframe level, it may indicate a stronger price reaction.
🎯 Who Should Use This Indicator?
📌 Scalpers & Day Traders – Identify short-term support and resistance levels for quick trades.
📌 Swing Traders – Utilize higher timeframe levels for position entries and exits.
📌 Trend Traders – Confirm breakout zones and key price levels for trend-following strategies.
📌 Reversal Traders – Spot potential reversal zones at significant S&R levels.
MTF Squeeze Analyzer - [tradeviZion]MTF Squeeze Analyzer
Multi-Timeframe Squeeze Pro Analyzer Tool
Overview:
The MTF Squeeze Analyzer is a comprehensive tool designed to help traders monitor the TTM Squeeze indicator across multiple timeframes in a streamlined and efficient manner. Built with Pine Script™ version 5, this indicator enhances your market analysis by providing detailed insights into squeeze conditions and momentum shifts, enabling you to make more informed trading decisions.
Key Features:
1. Multi-Timeframe Monitoring:
Comprehensive Coverage: Track squeeze conditions across multiple timeframes, including 1-minute, 5-minute, 15-minute, 30-minute, 1-hour, 2-hour, 4-hour, and daily charts.
Squeeze Counts: Keep count of the number of consecutive bars the price has been within each squeeze level (low, mid, high), helping you assess the strength and duration of consolidation periods.
2. Dynamic Table Display:
Customizable Appearance: Adjust table position, text size, and colors to suit your preferences.
Color-Coded Indicators: Easily identify squeeze levels and momentum shifts with intuitive color schemes.
Message Integration: Features rotating messages to keep you engaged and informed.
3. Alerts for Key Market Events:
Squeeze Start and Fire Alerts: Receive notifications when a squeeze starts or fires on your selected timeframes.
Custom Squeeze Count Alerts: Set thresholds for squeeze counts and get alerted when these levels are reached, allowing you to anticipate potential breakouts.
Fully Customizable: Choose which alerts you want to receive and tailor them to your trading strategy.
4. Momentum Analysis:
Momentum Oscillator: Visualize momentum using a histogram that changes color based on momentum shifts.
Detailed Insights: Determine whether momentum is increasing or decreasing to make more strategic trading decisions.
How It Works:
The indicator is based on the TTM Squeeze concept, which identifies periods of low volatility where the market is "squeezing" before a potential breakout. It analyzes the relationship between Bollinger Bands and Keltner Channels to determine squeeze conditions and uses linear regression to calculate momentum.
1. Squeeze Levels:
No Squeeze (Green): Market is not in a squeeze.
Low Compression Squeeze (Gray): Mild consolidation, potential for a breakout.
Mid Compression Squeeze (Red): Moderate consolidation, higher breakout potential.
High Compression Squeeze (Orange): Strong consolidation, significant breakout potential.
2. Squeeze Counts:
Tracks the number of consecutive bars in each squeeze condition.
Helps identify how long the market has been consolidating, providing clues about potential breakout timing.
3. Momentum Histogram:
Upward Momentum: Shown in aqua or blue, indicating increasing or decreasing upward momentum.
Downward Momentum: Displayed in red or yellow, representing increasing or decreasing downward momentum.
Using Alerts:
Stay ahead of market movements with customizable alerts:
1. Enable Alerts in Settings:
Squeeze Start Alert: Get notified when a new squeeze begins.
Squeeze Fire Alert: Be alerted when a squeeze ends, signaling a potential breakout.
Squeeze Count Alert: Set a specific number of bars for a squeeze condition, and receive an alert when this count is reached.
2. Set Up Alerts on Your Chart:
Click on the indicator name and select " Add Alert on MTF Squeeze Analyzer ".
Choose your desired alert conditions and customize the notification settings.
Click " Create " to activate the alerts.
How to Set It Up:
1. Add the Indicator to Your Chart:
Search for " MTF Squeeze Analyzer " in the TradingView Indicators library.
Add it to your chart.
2. Customize Your Settings:
Table Display:
Choose whether to show the table and select its position on the chart.
Adjust text size and colors to enhance readability.
Timeframe Selection:
Select the timeframes you want to monitor.
Enable or disable specific timeframes based on your trading strategy.
Colors & Styles:
Customize colors for different squeeze levels and momentum shifts.
Adjust header and text colors to match your chart theme.
Alert Settings:
Enable alerts for squeeze start, squeeze fire, and squeeze counts.
Set your preferred squeeze type and count threshold for alerts.
3. Interpret the Data:
Table Information:
The table displays the squeeze status and counts for each selected timeframe.
Colors indicate the type of squeeze, making it easy to assess market conditions at a glance.
Momentum Histogram:
Use the histogram to gauge the strength and direction of market momentum.
Observe color changes to identify shifts in momentum.
Why Use MTF Squeeze Analyzer ?
Enhanced Market Insight:
Gain a deeper understanding of market dynamics by monitoring multiple timeframes simultaneously.
Identify potential breakout opportunities by analyzing squeeze durations and momentum shifts.
Customizable and User-Friendly:
Tailor the indicator to fit your trading style and preferences.
Easily adjust settings without needing to delve into the code.
Time-Efficient:
Save time by viewing all relevant squeeze information in one place.
Reduce the need to switch between different charts and timeframes.
Stay Informed with Alerts:
Never miss a critical market movement with fully customizable alerts.
Focus on other tasks while the indicator monitors the market for you.
Acknowledgment:
This tool builds upon the foundational work of John Carter , who developed the TTM Squeeze concept. It also incorporates enhancements from LazyBear and Makit0 , providing a more versatile and powerful indicator. MTF Squeeze Analyzer extends these concepts by adding multi-timeframe analysis, squeeze counting, and advanced alerting features, offering traders a comprehensive solution for market analysis.
Note: Always practice proper risk management and test the indicator thoroughly to ensure it aligns with your trading strategy. Past performance is not indicative of future results.
Trade smarter with TradeVizion—unlock your trading potential today!
MTF Fusion - High Volume Expansion Channel [TradingIndicators]Exceptionally high volume and rapid price expansion are key markers of powerful moves, especially when they occur during a breakout or breakdown. The High Volume Expansion Channel (HVEC) uses our multi-timeframe fusion and price compression/expansion algorithms to look for high volume and rapid expansion from multiple higher timeframes at once. It uses this info to determine a high volume and expansion 'grade', and then encodes this result into a colored channel. This channel coloring varies in intensity based on how exceptionally high volume is and how rapidly price is expanding in either direction.
What is MTF Fusion?
Multi-Timeframe (MTF) Fusion is the process of combining calculations from multiple timeframes higher than the chart's into one 'fused' value or indicator. It is based on the idea that integrating data from higher timeframes can help us to better identify short-term trading opportunities within the context of long-term market trends.
How does it work?
Let's use the context of this indicator, which calculates a 'high volume and expansion grade' (let's call it HVEG), as an example to explain how MTF Fusion works and how you can perform it yourself.
Step 1: Selecting Higher Timeframes
The first step is to determine the appropriate higher timeframes to use for the fusion calculation. These timeframes should typically be chosen based on their ability to provide meaningful data and action which actively affect the price action of the smaller timeframe you're focused on. For example, if you are trading the 5 minute chart, you might select the 15 minute, 30 minute, and hourly timeframe as the higher timeframes you want to fuse in order to give you a more holistic view of the trends and action affecting you on the 5 minute. In this indicator, four higher timeframes are automatically selected depending on the timeframe of the chart it is applied to.
Step 2: Gathering Data and Calculations
Once the higher timeframes are identified, the next step is to calculate the data from these higher timeframes that will be used to calculate your fused values. In this indicator, for example, the HVEG value is calculated by determining the HVEG for all four higher timeframes.
Step 3: Fusing the Values From Higher Timeframes
The next step is to actually combine the values from these higher timeframes to obtain your 'fused' indicator values. The simplest approach to this is to simply average them. If you have calculated the HVEG value from three higher timeframes, you can, for example, calculate your 'multi-timeframe fused HVEG' as (HigherTF_HVEG_1 + HigherTF_HVEG_2 + HigherTF_HVEG_3) / 3.0.
Step 4: Visualization and Interpretation
Once the calculations are complete, the resulting fused indicator values are plotted on the chart. These values reflect the fusion of data from the multiple higher timeframes, giving a broader perspective on the market's behavior and potentially valuable insights without the need to manually consider values from each higher timeframe yourself.
What makes this script unique? Why is it closed source?
While the process described above is fairly unique and sounds simple, the truly important key lies in determining which higher timeframes to fuse together, and how to weight their values when calculating the fused end result in such a way that best leverages their relationship for useful TA.
This MTF Fusion indicator employs a smart, adaptive algorithm which automatically selects appropriate higher timeframes to use in fusion calculations depending on the timeframe of the chart it is applied to. It also uses a dynamic algorithm to adjust and weight the high volume and price expansion grade calculations depending on each higher timeframe's relationship to the chart timeframe. These algorithms are based on extensive testing and are the reason behind this script's closed source status.
Included Features
MTF Fusion high volume and expansion coloring
MTF Fusion ATR-based channel for visual effect
Channel width customization and explanatory labels
Pre-built color stylings
Options
Show Channel Lines: Show/hide the upper and lower lines of the channel
Fill Channel: Fill the channel with coloring depicting the current degree of high volume and rapid price expansion
Channel Width Multiplier: Sets the width of the ATR-based channel
Explanatory Labels: Show/hide explanatory labels describing the visuals
Lookback: Select how you want the degree of high volume expansion to be calculated (longer = long-term high volume and expansion, shorter = short-term high volume and expansion)
Pre-Built Color Styles: Use a pre-built color styling (uncheck to use your own colors)
Manual Color Styles: When pre-built color styles are disabled, use these color inputs to define your own
MTF Fusion - S/R Trendlines [TradingIndicators]MTF Fusion S/R Trendlines intelligently adapt to whatever timeframe you're trading - dynamically calculating support and resistance trendline levels combined from four appropriate higher timeframes to give you a much broader view of the market and an edge in your trading decisions.
These trendlines are not programmed to repaint - so you can use them in real-time just as they appeared historically.
What is MTF Fusion?
Multi-Timeframe (MTF) Fusion is the process of combining calculations from multiple timeframes higher than the chart's into one 'fused' value or indicator. It is based on the idea that integrating data from higher timeframes can help us to better identify short-term trading opportunities within the context of long-term market trends.
How does it work?
Let's use the context of this indicator, which calculates S/R Trendlines, as an example to explain how MTF Fusion works and how you can perform it yourself.
Step 1: Selecting Higher Timeframes
The first step is to determine the appropriate higher timeframes to use for the fusion calculation. These timeframes should typically be chosen based on their ability to provide meaningful price levels and action which actively affect the price action of the smaller timeframe you're focused on. For example, if you are trading the 5 minute chart, you might select the 15 minute, 30 minute, and hourly timeframe as the higher timeframes you want to fuse in order to give you a more holistic view of the trends and action affecting you on the 5 minute. In this indicator, four higher timeframes are automatically selected depending on the timeframe of the chart it is applied to.
Step 2: Gathering Data and Calculations
Once the higher timeframes are identified, the next step is to calculate the data from these higher timeframes that will be used to calculate your fused values. In this indicator, for example, the values of support and resistance trendlines are calculated for all four higher timeframes.
Step 3: Fusing the Values From Higher Timeframes
The next step is to actually combine the values from these higher timeframes to obtain your 'fused' indicator values. The simplest approach to this is to simply average them. If you have calculated the value of a support trendline from three higher timeframes, you can, for example, calculate your 'multi-timeframe fused trendline' as (HigherTF_Support_Trendline_1 + HigherTF_Support_Trendline_2 + HigherTF_Support_Trendline_3) / 3.0.
Step 4: Visualization and Interpretation
Once the calculations are complete, the resulting fused indicator values are plotted on the chart. These values reflect the fusion of data from the multiple higher timeframes, giving a broader perspective on the market's behavior and potentially valuable insights without the need to manually consider values from each higher timeframe yourself.
What makes this script unique? Why is it closed source?
While the process described above is fairly unique and sounds simple, the truly important key lies in determining which higher timeframes to fuse together, and how to weight their values when calculating the fused end result in such a way that best leverages their relationship for useful TA.
This MTF Fusion indicator employs a smart, adaptive algorithm which automatically selects appropriate higher timeframes to use in fusion calculations depending on the timeframe of the chart it is applied to. It also uses a dynamic algorithm to adjust and weight the lookbacks used for trendline calculations depending on each higher timeframe's relationship to the chart timeframe. These algorithms are based on extensive testing and are the reason behind this script's closed source status.
Included Features
Fusion Support and Resistance Trendlines
Dynamic Multi-Timeframe Trendlines
Breakaway Zone fills to highlight breakouts and breakdowns from the Fusion trendlines
Customizable lookback approach
Pre-built color stylings
Options
Fusion View: Show/hide the Fusion trendlines calculated from multiple higher timeframes
MTF View: Show/hide the trendlines from multiple higher timeframes used to calculate the Fusion trendlines
Breakaway Zones: Show/hide the fill for zones where price breaks away from the Fusion trendlines
Lookback: Select how you want your trendlines to be calculated (longer = long-term trendlines, shorter = short-term trendlines)
Pre-Built Color Styles: Use a pre-built color styling (uncheck to use your own colors)
Manual Color Styles: When pre-built color styles are disabled, use these color inputs to define your own
MTF Fractal Bias Confluence DetectorMTF Fractal Bias Confluence Detector
This indicator, the MTF Fractal Bias Confluence Detector, is based on the idea that the market exhibits fractal behaviour. The origin of the idea traces back to 1963, when Benoit Mandelbrot analyzed the fluctuations in cotton prices over a time series starting in 1900, discovering that price changes exhibited scale-invariant patterns. This means that the curve representing daily price changes mirrored the shape of monthly price changes, highlighting the fractal nature of market behaviour. When applied to swing points across multiple timeframes (MTF), this concept suggests that swing points demonstrate similar patterns regardless of the timeframe being analyzed. These self-similar fractal structures provide traders with insights into market reversals and trends, making them a powerful tool for multi-timeframe analysis.
A Swing Point is made up of three main parts: a move away from the last Break level; forming a peak (pivot point) with a Fakeout of the peak (explained through an example later); and a subsequent move away from it. These swing points recur across all timeframes as part of cyclical momentum patterns, meaning each swing point gives rise to a new cycle of market movement. Due to the fractal nature of the market, larger cycles encompass multiple smaller ones.
The theory behind the Fractal Bias Confluence Detector utilizes the idea that the market movements are fractal in nature and illustrates how such swing points can be identified across MTFs. To do so, we examine the Peak Fakeouts within these cycles, as they form. It is not possible to know in advance how long each of these moves will last, but a Swing Point will often occur with a Peak Fakeout. Therefore, the most critical element is to identify the Peak Fakeout.
The snapshot below captures a Peak Fakeout, as discussed earlier.
Similarly, the following snapshot shows various possible breakdowns of Higher Time Frame (HTF) cycles into smaller Lower Time Frame (LTF) movements. The chart contains a white table(not part of the indicator and shown for illustration purposes only).
To further illustrate. Consider the combination of Time Frames (TF) from the 2nd row (from the above snapshot). Cycle TF (1M), Setup TF (1W), Momentum TF (1D) etc.
Price movements in the 1M TF highlight the direction in which HTF traders are pushing the market. Often, when markets have broken out of a level, they tend to form a peak and can then pull back towards the prior breakout level. Once the pullback is beyond the last breakout level, in the opposite direction, we may say the peak formation is created, and directional bias has changed. This is also called Peak Fakeout. Due to the fractal nature of the market, Swing Points on the HTF will often constitute multiple Swing Points on the LTF, though they are not always in sync. However, after such peak formation, there is a high probability that the price might move away from the peak for at least 1 candle (in the cycle TF). This theory illustrates that once a new cycle is in play, we can then look at 1W (Setup TF) to look for possible in-sync movements, at least within that 1 candle of the HTF. Repeating the same for further lower TFs, we may arrive at a confluence of Fractal Bias and see how the movements in LTF are driven by the HTF momentum.
Another example within the chart:
Note: The above examples are just for illustration purposes, and other permutations and combinations of movements across multiple TFs are also possible.
This indicator aims to help users identify such fractal-bias-confluences, so that they can leverage the fractal nature of the market to get a holistic view. To do so, the indicator displays how the market has moved across multiple time frames, with respect to different historical levels.
Features:
1. The bias summary table
The following snapshot depicts the bias summary table at the bottom right of the chart.
1.1. Workings: The table will display, for various TFs, in the first four (starting from "current" to Prev ) rows, one of the following.
"F/H" , " Acronym for the failed break of the previous high",
"F/L" , " Acronym for the failed break of the previous low",
"B/H" , " Acronym for the break of the previous high",
"B/L" , " Acronym for the break of the previous low",
"IN" , " Acronym for an inside candle (never broke high or low of perv candle)",
"OT" , " Acronym for an outside candle (broke both high and low of previous candle and closing price is in between previous high and low)".
Note: these acronyms are customizable according to the user's choice of terminology in any language, as shown in the snapshot below.
1.1.1 In the above snapshot, the 1st row, called "Current", shows how the current candle is evolving with respect to the previous one. The "previous" row shows how the previous candle closed with respect to the pre-previous one. The next two rows represent the bias of the pre-previous and pre-pre-previous in a similar manner. By default, the bias is updated in real-time, even for the already closed historical candles. For example, if the previous 4H candle closed as a B/H and the current price then comes below the pre-previous 4H candle high, then the bias of the previous candle will get updated to F/H. This informs the user that the break above the pre-previous high has failed. However, the user has the option to turn this off. The information in these four rows shows the user how the market is moving currently and how it evolved before reaching the current price levels.
Note: The calculation done by the indicator is to keep track of how the price is moving with respect to the last candle levels in real-time. This means if the price first goes above the previous high and then goes below the previous low, the indicator is equipped to display what happened in the most recent time. The snapshot below shows the option to turn on/off such updates in the bias summary table.
Note: While the bias summary table is turned on, the user also has the option to turn off Prev and Prev rows, as shown in the snapshot below.
1.1.2 The 2nd to last row, called CL/CS(Consecutive Long/Short), shows whether consecutive (2+) breaks of high/low happened or not in one direction without taking out the previous candle's range in the opposite direction. When conditions are met, it will show the number of times the price has been pushed in one direction (in the above manner), followed by "L" for long and "S" for short, for each TF, for example, "4L". It gets updated in real-time for each push in the same direction. Furthermore, a good analogy of "4L" on an HTF is 4 consecutive Break of Structure (BOS) (in the same direction) on LTF, without a Change of Character (CHoCH). Another example would be Stacey Burke's 3 consecutive rises that can be mapped in the indicator, if the conditions are met for "3L" for a given TF.
1.1.3 The last row, FRC/FGC, stands for the first red/green candle. It shows whether the last candle of a TF has closed as green (i.e., close>open) after posting two red candles (i.e., close
MTF SqzMom [tradeviZion]Credits:
John Carter for creating the TTM Squeeze and TTM Squeeze Pro.
Lazybear for the original interpretation of the TTM Squeeze: Squeeze Momentum Indicator.
Makit0 for evolving Lazybear's script by incorporating TTM Squeeze Pro upgrades – Squeeze PRO Arrows.
MTF SqzMom - Multi-Timeframe Squeeze & Momentum Tool
MTF SqzMom is a tool designed to help traders easily monitor squeeze and momentum signals across multiple timeframes in a simple, organized format. Built using Pine Script 5, it ensures that data remains consistent, even when switching between different time intervals on the chart.
Key Features:
Multi-Timeframe Monitoring: Track squeeze and momentum signals across various timeframes, all in one view. This includes key timeframes like 1-minute, 5-minute, hourly, and daily.
Dynamic Table Display: A color-coded table that automatically adjusts based on the selected timeframes, offering a clear view of market conditions.
Alerts for Key Market Events: Get notifications when a squeeze starts or fires across your chosen timeframes, so you can stay informed without needing to monitor the chart continuously.
Customizable Appearance: Tailor the look of the table by selecting colors for squeeze levels and momentum shifts, and choose the best position on your chart for easy access.
How It Works:
MTF SqzMom is based on the concept of the squeeze, which signals periods of lower volatility where price breakouts may occur. The tool tracks this by monitoring the contraction of Bollinger Bands within Keltner Channels. Along with this, it provides momentum analysis to help you gauge the potential direction of the market after a squeeze.
Squeeze Conditions: The script tracks four levels of squeeze conditions (no squeeze, low, mid, and high), each represented by a different color in the table.
Momentum Analysis: Momentum is visually represented by colors indicating four stages: up increasing, up decreasing, down increasing, and down decreasing. This color coding helps you quickly assess whether the market is gaining or losing momentum.
Using Alerts:
You can enable two types of alerts: when a squeeze starts (indicating consolidation) and when a squeeze fires (indicating a breakout). These alerts cover all timeframes you’ve selected, so you never miss important signals.
How to Set It Up:
1. Enable Alerts in Settings: Turn on "Alert for Squeeze Start" and "Alert for Squeeze Fire" in the settings.
2. Add Alerts to Your Chart:
Click the three dots next to the indicator name.
Select "Add alert on tradeviZion - MTF SqzMom."
3. Customize and Save: Adjust alert options, choose your notification type, and click "Create."
Why Use MTF SqzMom ?
Consistent Data: The tool ensures that squeeze and momentum data remain consistent, even when you switch between chart intervals.
Real-Time Alerts: Stay updated with alerts for squeeze conditions without needing to constantly watch the chart.
Simple to Use, Customizable to Fit: You can easily adjust the table’s look and choose the timeframes and colors that best suit your trading style.
Acknowledgment:
While this tool builds on the TTM Squeeze concept developed by John Carter of Simpler Trading, it offers added flexibility through multi-timeframe analysis, alerts, and customizability to make monitoring market conditions more accessible.
MTF Fantastic Stochastic (FS+)MTF Fantastic Stochastic (FS+) + Alerts
This chart overlay indicator can signal multiple triple-timeframe Stochastic RSI overbought and oversold confluences directly onto your chart, intended for use as a confluence either for reversal trade entries, or potential trade exits, indicating where price may be probable to reverse.
Features include:
- Primary set of fully configurable triple-timeframe overbought and oversold signals, indicating where 3 selected timeframes are all overbought or all oversold at the same time. Enabled by default.
- Secondary set of fully configurable triple-timeframe overbought and oversold signals, indicating where 3 selected timeframes are all overbought or all oversold at the same time, with alert option. Enabled by default.
- Also includes standard configurable Stoch RSI options, including k length, d length, RSI length, Stochastic length, etc.
- The default primary MTF #1 timeframes are set to 1minute, 5minute and 15minute. These are highly suitable for low timeframe scalpers trading on charts less than 5 minutes, and can often pin point price reversals.
- The default Secondary MTF #2 timeframes are set to 15minute, 30minute and 60minute. These are suitable for both low timeframe scalpers and considerably higher timeframe traders.
- Optional drawing of background colours and/or ribbon seen at bottom of the chart.
- Fully configurable timeframes, as well as overbought and oversold threshold levels for each individual timeframe. Overbought and oversold thresholds are set to the factory 80 and 20 levels respectively for all timeframes by default.
- Alert features for both MTF #1 and MTF #2 triple-timeframe confluences, including options for alerting overbought and oversold individually, as well as an option for alerting either overbought or oversold in a single alert.
Note: THe features listed above are accurate at the time of publishing but maybe updated or added to in future.
The Stochastic RSI
The popular oscillator has been described as follows:
“The Stochastic RSI is an indicator used in technical analysis that ranges between zero and one (or zero and 100 on some charting platforms) and is created by applying the Stochastic oscillator formula to a set of relative strength index ( RSI ) values rather than to standard price data. Using RSI values within the Stochastic formula gives traders an idea of whether the current RSI value is overbought or oversold. The Stochastic RSI oscillator was developed to take advantage of both momentum indicators in order to create a more sensitive indicator that is attuned to a specific security's historical performance rather than a generalized analysis of price change.”
How do traders use overbought and oversold levels in their trading?
The oversold level, that is when the Stochastic RSI is above the 80 level is typically interpreted as being 'overbought', and below the 20 level is typically considered 'oversold'. Traders will often use the Stochastic RSI at an overbought level as a confluence for entry into a short position, and the Stochastic RSI at an oversold level as a confluence for an entry into a long position. These levels do not mean that price will necessarily reverse at those levels in a reliable way, however. This is why this version of the Stoch RSI employs the triple timeframe overbought and oversold confluence, in an attempt to add a more confluence and reliability to this usage of the Stoch RSI.
This indicator was originally built as one of a many features included in the RF+ Divergence Scalping System and has been separated into it's own standalone indicator here for traders who do not want the many other features bundled into the original indicator. A number of features that exist in the original were intensive, and also quite niche. Therefore this lightweight single purpose chart overlay indicator offers this versatile feature of the ever popular Stochastic RSI to a wider audience of traders who may add it to various strategies.
MTF - Zones Scanner⚡ MTF Zones Scanner
- Smarter Multi-Timeframe Trading — Simplified.
💼 Ever wondered what tools Prop Desk Traders use?
You’ve just landed in the right place.
MTF Zones Scanner brings you the same level of structural clarity used in proprietary trading setups — combining multi-timeframe confluence and multiple reversal signal alignment in one elegant package.
📊 Spot market structure, zone strength, and breakout opportunities across multiple symbols — instantly.
Built for traders who demand clarity, context, and confidence — without unnecessary complexity.
🌍 One Dashboard. All Signals.
🔁 Multi-Timeframe Zone Mapping — View higher-timeframe zones directly on your working chart.
🧭 Smart Symbol Groups — Seamlessly monitor all 500 Nifty stocks, organized for maximum scanning efficiency.
⚙️ Continuous Background Monitoring — Even while you focus on one chart, the script quietly tracks every stock for possible breakouts or breakdowns.
🧩 Dynamic Confluence Engine — Detects when short- and long-term structures align for stronger setups.
🧠 Intelligent Scoring Model — Each symbol is automatically ranked by structural strength, momentum, and probability.
🚨 Group-Based Alerts — One alert fires when any stock in your selected group triggers a high-confidence breakout.
🕹️ Key Benefits
✅ Monitors the entire Nifty 500 universe automatically — no chart-hopping required.
✅ Instantly highlights stocks nearing key demand or supply zones.
✅ Adds higher-timeframe confirmation for cleaner entries & exits.
✅ Optimized for intraday and swing trading.
✅ Fully visual, customizable, and resource-efficient.
🧭 At a Glance
🔹 On-chart Zone Overlays highlight actionable areas.
🔹 Real-time Ranking Table shows your strongest setups.
🔹 Clear status icons:
🟢 Potential Buy Zone
🟣 Potential Sell Zone
⚪ Consolidation Watch
🟡 Breakout Detected
🔔 Unified Alert System
Forget juggling multiple alerts or scripts.
Whenever any stock in your chosen group confirms a breakout or breakdown with a strong score, you’ll instantly get:
TATASTEEL on 15 min → 🟢 Demand Breakout Detected
You don’t need to set 500 alerts — just 34 simple group alerts to cover the entire Nifty 500 universe.
The system handles everything else silently in the background.
Fully compatible with TradingView’s “Any alert() function call” — precise, real-time, and noise-free.
🧱 Built for Power Users
🕒 Works across all intraday & swing timeframes.
⚙️ Adjustable sensitivity, zone depth, and confluence strength.
🧩 Pre-loaded with the complete Nifty 500 list.
💻 Powered by Pine v6 for stable, efficient background scanning.
💡 Not from India? No Problem.
The indicator can be customized to scan any set of stocks — from any country or market worldwide.
Just get in touch with us, and we’ll build a custom version tailored to your needs.
💡 Who It’s For
Sector & positional traders managing wide watchlists.
Intraday traders looking for quick, high-confidence confirmations.
Analysts seeking multi-timeframe confluence across diverse markets.
✨ Why It Stands Out
🧭 Context + Clarity + Consolidation
Don’t react — anticipate.
MTF Zones Scanner constantly interprets market structure so you can focus on decisive, high-probability setups across every stock you follow.
A professional-grade, Prop-Desk-style multi-timeframe scanner that filters noise, reveals structure, and surfaces opportunities — automatically.
🛡️ Proprietary Technology Notice
The analytical framework of MTF Zones Scanner is proprietary and confidential.
It blends multiple quantitative and contextual models into a single actionable output — keeping your edge intact.
🎁 Get Connected for 1-Month Free Trial →
Experience the power of real-time, all-market awareness.
🔗 Start Your Free Trial Today — and Trade Smarter Now.
MTF Confluence Dashboard (Multi‑Timeframe Trend/Bias)MTF Confluence Dashboard — Multi‑Timeframe Trend/Bias Table + EMA
The MTF Confluence Dashboard is a fast, non‑repainting multi‑timeframe (MTF) confluence tool that shows higher‑timeframe trend and bias alignment in a compact, on‑chart table. It’s built for prop‑firm challenges and futures day traders who need instant top‑down confirmation without switching charts. Get a clean read of trend direction across your selected timeframes, plus on‑chart MAs for timing.
Why traders use it
* MTF Confluence at a glance: Trend/Bias table aggregates short vs long MA on 1m→1W (you pick which TFs show).
* Non‑repainting: Uses closed-bar higher‑TF data; reliable for alerts and evaluations.
* Futures + prop‑firm friendly: Minimal lag, lightweight, session‑agnostic; perfect for ES/NQ/CL/GC scalping or intraday swings.
Core features
* Trend/Bias Table: “Up / Down” per timeframe and an overall AVG sentiment.
* MA Engine: Choose MA type (SMA/EMA/WMA/HMA) and lengths (e.g., 50/200) to define bias.
* On‑Chart Confirmation: Plots short/long MAs for entry timing on your trading TF.
* Smart Alerts: Built‑in alerts for Strong Up/Up/Neutral/Down/Strong Down average bias.
* Custom Layout: Vertical or Horizontal table, resizable text (Tiny → Huge), corner positioning.
* Pro Visual Themes:
* Dark Intergalactic (neon/futuristic for dark charts)
* Light Minimal (clean light mode)
* Pro Modern (low‑saturation, desk‑ready)
How to trade it
* Scalps (1m–5m): Only take longs when 5m/15m/1H/D are “Up” and AVG is Up/Strong Up; use MA crosses/pulls for entries.
* Intraday swings (5m–15m–1H): Wait for a higher‑TF flip to align; trail under the long MA.
* Risk discipline: If AVG shifts to Neutral/Down, stop looking for longs until bias realigns.
Settings you’ll care about
* Timeframes to display (1m, 2m, 3m, 5m, 10m, 15m, 30m, 1H, 2H, 4H, 6H, 12H, 1D, 1W).
* MA Type: SMA / EMA / WMA / HMA.
* Short/Long lengths (defaults 50/200).
* Theme, orientation, and size.
Notes
* Works on all symbols and timeframes.
* No repainting; alerts trigger on closed conditions.
* Built by PineProfits.
MTF Fair Value Gap [BigBeluga]The MTF Fair Value Gap (FVG) indicator provides multi-timeframe options to observe lower or higher gaps in different timeframes within your current one. This can enhance the confluence in your trading decisions.
🔶 USAGE
An FVG is formed when a candle has an 'empty' body, leaving a gap. These areas are often filled before the market continues to trend in its original direction.
In practical terms, FVGs serve to highlight support areas (bullish FVGs) and resistance zones (bearish FVGs). As a gap is filled, signaling the end of the existing imbalance, it tends to foreshadow an impending price reversal.
While this approach is inherently contrarian, individuals seeking a more trend-following strategy can opt to use FVG identification as straightforward signals. This entails taking a long position upon detecting a bullish FVG and adopting a short position in the presence of a bearish FVG.
🔹 Mitigation
The mitigation point is where the user selects when the FVG is considered filled or no longer usable.
Source => Choose the candle's low/high or close as the mitigation point.
Point => Choose the FVG's mitigation point to trigger after the candle's Source has filled it. Users can choose between the middle point or the top/bottom of the FVG.
ccc
🔹 MTF
This script can display MTF FVGs from different timeframes while showing the current one. This is extremely useful as it avoids the need to switch timeframes frequently and can add significant confluence with the current FVG.
🔹 Threshold
The Threshold is an input to remove insignificant FVGs that are too small to be truly useful. Users can choose between:
Auto => Automatically remove unusable FVGs.
Manual => Set an automatic Threshold.
🔶 TIPS
Users can choose how many FVGs to display on the current chart for better visualization.
Users can choose which FVGs to display: only the current one, only MTF ones, or both.
MTF Trendlines_Pro[vn]-This is an indicator for trendline traders
-it statistics the upper and lower trend lines of the Multi Time Frame.
-Pine Script strategy draws pivot points and trendlines on the chart.
-This strategy allows the user to specify the interval to calculate the pivot points and the number of pivot points used to generate the trend lines.
-I use the "Trendlines_Pro " indicator to interpret the indicator "MTF trendlines_Pro " indicator for everyone to understand
-time frames are selected in settings like 1m,3m,15m,1h,2h,4h,6h,12h,1D.1W.1Month..
-If the price is in a wedge pattern, it is represented by the upper and lower parameters, the upper parameter is the resistance point of the upper trendline,the lower parameter is the support point of the below trendline
-when the price distance is <=1% from the trendline, the upper or lower parameter is colored blue (above) or red (below).
-when only the parameter is accompanied by the ⇗ or ⇘. symbol, it tells us that the price has not broken the corresponding trend line
-when showing green heart and % break .indicates that the price has broken the downtrend line to become an uptrend.
On the contrary, the red heart % breaks, it signals us to break the uptrend line to become a downtrend
-when showing parameters 12(1)|18(2)|20(3) and green heart, then :(3) shows that the price has broken out before 20 candles, (2) shows that there are 18 candles to close above The breakout point, (1) represents the last 12 candles that closed above the breakout point and as if a nice uptrend has occurred because 98% of the candles have closed above the breakout point....the opposite of The red heart is the price that broke below the trendline below.
-"MTF trendlines_Pro "indicator is integrated for both the trendline of the price line and the RSI. You can change it in the settings as shown below.
----------------------------------------------------------------------------
vietnamese
-Đây là chỉ báo dành cho các trader thuộc trường phái phân tích đường xu hướng
-nó thống kê các đường xu hướng trên và dưới của Multi Time Frame.
-Chiến lược Pine Script vẽ các điểm trục và đường xu hướng trên biểu đồ.
-Chiến lược này cho phép người dùng chỉ định khoảng thời gian tính toán các điểm xoay và số điểm xoay được sử dụng để tạo các đường xu hướng .
-tôi có dùng chỉ báo trendline_pro dùng để diễn giải chỉ báo MTF trendlines_pro cho mọi người dễ hiểu
-các khung thời gian được lựa chọn trong cài đặt như 1m,3m,15m,1h,2h,4h,6h,12h,....
-Nếu giá đang trong mô hình cái nêm thì được thể hiện bằng tham số trên và tham số dưới, tham số trên là điểm kháng cự của đường xu hướng bên trên,tham số dưới là điểm hỗ trợ của đường xu hướng bên dưới
-khi giá cách đường xu hướng <=1% thì tham số trên hoặc dưới được tô màu xanh (trên) hoặc đỏ(dưới)
-khi chỉ có tham số kèm theo biểu tượng ⇗ or ⇘.thì cho ta biết là giá chưa phá vỡ được đường xu hướng tương ứng
-khi hiện trái tim xanh và % phá vỡ .báo hiệu cho ta biết giá đã phá vỡ đường xu hướng giảm trở thành xu hướng tăng.
ngược lại trái tim đỏ % phá vỡ thì báo hiệu cho ta phá vỡ đường xu hướng tăng trở thành xu hướng giảm
-khi hiện thông số 12(1)|18(2)|20(3) và trái tim xanh thì :(3) thể hiện giá đã phá vỡ trước đó 20 nến,(2) thể hiện có 18 cây nến đóng cửa trên điểm phá vỡ,(1) thể hiện có 12 nến gần nhất đóng cửa trên điểm phá vỡ và như vạy xu hướng tăng đẹp đã xảy ra vì chiếm đến 98% nến đã đóng cửa trên điểm phá vỡ....ngược lại với trái tim đỏ là giá đã đột phá xuống dưới đường xu hướng bên dưới
-chỉ báo MTF trendlines_pro được tích hợp chung cho cả trendline của đường giá và RSI .các bạn có thể thay đổi trong phần cài đặt như hình bên dưới.
MTF CCI + Realtime DivergencesMulti-timeframe Commodity Channel Index (CCI) + Realtime Divergences + Alerts
This version of the CCI includes the following features:
- Optional 2x sets of triple-timeframe overbought and oversold signals with fully configurable timeframes and overbought and oversold thresholds, can indicate where 3 selected timeframes are all overbought or all oversold at the same time, with alert option.
- Optional divergence lines drawn directly onto the oscillator in realtime, with alert options.
- Configurable pivot periods to fine tune the divergences drawn in order to suit different trading styles and timeframes, including the ability to enable automatic adjustment of pivot period per chart timeframe.
- Alternate timeframe feature allows you to configure the oscillator to use data from a different timeframe than the chart it is loaded on.
- 'Hide oscillator' feature allows traders to hide the oscillator itself, leaving only the background colours indicating the overbought and oversold periods and/or MTF overbought and oversold confluences, as seen in the chart image.
- Also includes standard configurable CCI options, including CCI length and source type. Defaults set to length 20, and hlc3 source type.
- Optional Flip oscillator feature, allows users to flip the oscillator upside down, for use with Tradingviews 'Flip chart' feature (Alt+i), for the purpose of manually spotting divergences, where the trader has a strong natural bias in one direction, so that they can flip both the chart and the oscillator.
- Optional 'Fade oscillator' feature, which will fade out all but the most recent period, reducing visual noise on the chart.
While this version of the CCI has the ability to draw divergences in realtime along with related alerts so you can be notified as divergences occur without spending all day watching the charts, the main purpose of this indicator was to provide the triple-timeframe overbought and oversold confluence signals, in an attempt to add more confluence, weight and reliability to the single timeframe overbought and oversold states, commonly used for trade entry confluence. It's primary purpose is intended for scalping reversal trades on lower timeframes, typically between 1-15 minutes, which can be used in conjunction with the regular divergences the indicator can highlight. The triple timeframe overbought can often indicate near term reversals to the downside, with the triple timeframe oversold often indicating neartime reversals to the upside. The default timeframes for this confluence are set to check the 1m, 5m and 15m timeframes together, ideal for scalping the < 15 minute charts. The default settings for the MTF #1 timeframes (1m, 5m and 15m) are best used on a <5 minute chart.
Its design and use case is based upon the original MTF Stoch RSI + Realtime Divergences found here .
Commodity Channel Index (CCI)
Investopedia has described the popular oscillator as follows:
“The Commodity Channel Index (CCI) is a momentum-based oscillator used to help determine when an investment vehicle is reaching a condition of being overbought or oversold.
Developed by Donald Lambert, this technical indicator assesses price trend direction and strength, allowing traders to determine if they want to enter or exit a trade, refrain from taking a trade, or add to an existing position. In this way, the indicator can be used to provide trade signals when it acts in a certain way.”
You can read more about the CCI, its use cases and calculations here .
How do traders use overbought and oversold levels in their trading?
The oversold level, that is traditionally when the CCI is above the 100 level is typically interpreted as being 'overbought', and below the -100 level is typically considered 'oversold'. Traders will often use the CCI at an overbought level as a confluence for entry into a short position, and the CCI at an oversold level as a confluence for an entry into a long position. These levels do not mean that price will necessarily reverse at those levels in a reliable way, however. This is why this version of the CCI employs the triple timeframe overbought and oversold confluence, in an attempt to add a more confluence and reliability to this usage of the CCI. While traditionally, the overbought and oversold levels are below -100 for oversold, and above 100 for overbought, he default threshold settings of this indicator have been increased to provide fewer, stronger signals, especially suited to the low timeframes and highly volatile assets.
What are divergences?
Divergence is when the price of an asset is moving in the opposite direction of a technical indicator, such as an oscillator, or is moving contrary to other data. Divergence warns that the current price trend may be weakening, and in some cases may lead to the price changing direction.
There are 4 main types of divergence, which are split into 2 categories;
regular divergences and hidden divergences. Regular divergences indicate possible trend reversals, and hidden divergences indicate possible trend continuation.
Regular bullish divergence: An indication of a potential trend reversal, from the current downtrend, to an uptrend.
Regular bearish divergence: An indication of a potential trend reversal, from the current uptrend, to a downtrend.
Hidden bullish divergence: An indication of a potential uptrend continuation.
Hidden bearish divergence: An indication of a potential downtrend continuation.
How do traders use divergences in their trading?
A divergence is considered a leading indicator in technical analysis , meaning it has the ability to indicate a potential price move in the short term future.
Hidden bullish and hidden bearish divergences, which indicate a potential continuation of the current trend are sometimes considered a good place for traders to begin, since trend continuation occurs more frequently than reversals, or trend changes.
When trading regular bullish divergences and regular bearish divergences, which are indications of a trend reversal, the probability of it doing so may increase when these occur at a strong support or resistance level . A common mistake new traders make is to get into a regular divergence trade too early, assuming it will immediately reverse, but these can continue to form for some time before the trend eventually changes, by using forms of support or resistance as an added confluence, such as when price reaches a moving average, the success rate when trading these patterns may increase.
Typically, traders will manually draw lines across the swing highs and swing lows of both the price chart and the oscillator to see whether they appear to present a divergence, this indicator will draw them for you, quickly and clearly, and can notify you when they occur.
Setting alerts.
With this indicator you can set alerts to notify you when any/all of the above types of divergences occur, on any chart timeframe you choose, and also when the triple timeframe overbought and oversold confluences occur.
Configurable pivot period.
You can adjust the default pivot period values to suit your prefered trading style and timeframe. If you like to trade a shorter time frame, lowering the default lookback values will make the divergences drawn more sensitive to short term price action. By default, this indicator has enabled the automatic adjustment of the pivot periods for 4 configurable timeframes, in a bid to optimise the divergences drawn when the indicator is loaded onto any of the 4 timeframes. These timeframes and the auto adjusted pivot periods on each of them can also be reconfigured within the settings menu.
Disclaimer: This script includes code adapted from the Divergence for Many Indicators v4 by LonesomeTheBlue . With special thanks.
SSABU MTF Ichimoku Cloud✅ MTF Ichimoku Cloud (multi-time frame Ichimoku cloud) is an indicator.
This indicator is a supplementary indicator for viewing the cloud profile of a high-frame burst in a low-frame burst.
If you set the indicator instead of entering the time directly, you can set 1/3/5/13/30/45 minutes 1/2/3 / hour 1 day 1 day in Cloud MTF Set (Minute).
The default setting is 4H.
The screenshot above shows the Ichimoku Cloud with a 4-hour bar on a 15-minute chart.
Clouds of 4 hours seen from 15 minutes of sky blue, cloud of 15 minutes of blue
✅ MTF Ichimoku Cloud (멀티 타임 프레임 이치모쿠 클라우드) 지표입니다.
본 지표는 낮은 프레임의 분봉에서 높은 프레임의 분봉의 구름대 모습을 볼 수 있는 보조지표 입니다.
직접 시간을 입력 하는 건 아니고 지표를 설치하시면 Cloud MTF Set(Minute)에서 1/3/5/13/30/45분 1/2/3/시간 1일 1주로 설정이 가능합니다.
기본설정은 4H으로 되어있습니다.
위의 스크린샷은 15분봉의 차트에서 4시간봉의 Ichimoku Cloud를 적용한 모습입니다.
하늘색이 15분봉에서 보는 4시간봉의 구름, 파란색이 15분봉에 해당하는 구름
✅ Other indicators to help you trade
✅ 매매에 도움되는 다른 보조지표
Basel major 2.2






















