Bull Market Support Bands (20W SMA & 21W EMA)This indicator plots the 20-week Simple Moving Average (SMA) and the 21-week Exponential Moving Average (EMA), together forming the Bull Market Support Bands (BMSB).
Fully compatible with any chart; values are calculated using the weekly timeframe, even if applied on daily charts.
Adjustable band transparency in settings.
Includes optional alerts when EMA crosses above/below SMA.
Cerca negli script per "weekly"
ICT GMMA VegasHigh-Level Summary
This indicator blends:
ICT concepts (Market Structure Shift, Break of Structure, Order Blocks, Liquidity Pools, Fair Value Gaps, Killzones, etc.).
GMMA (Guppy Multiple Moving Averages) to visualize short, medium, and long trend strength.
Vegas Tunnels (EMA channels 144/169 and 576/676, plus optional 288/388 mid-tunnels).
Vegas Touch entry module with candlestick patterns (Pin Bar 40%, Engulfing 60%).
Extra slope EMAs (EMA60 & EMA200 with color change by slope).
It not only shows the structure (OB, Liquidity, FVGs) but also plots entry arrows and alerts when Vegas Touch + GMMA align.
⚙️ Script Components
1. GMMA Visualization
Short-term EMAs (3–15, green).
Medium-term EMAs (30–60, red).
Long-term EMAs (100–250, blue).
Used to measure crowd sentiment: short EMAs = traders, long EMAs = investors.
The script counts how many EMAs the close is above/below:
If close above ≥17 → possible buy trend.
If close below ≥17 → possible sell trend.
Plots arrows for buy/sell flips.
2. Vegas Tunnels
Short-term tunnel → EMA144 & EMA169.
Long-term tunnel → EMA576 & EMA676.
Mid-tunnels → EMA288 & EMA388.
Plotted as orange/fuchsia/magenta bands.
Conditions:
Breakout checks → if close crosses above/below these EMAs compared to prior bar.
3. ICT Toolkit
Market Structure Shift (MSS) & BOS (Break of Structure): labels & dotted lines when price shifts trend.
Liquidity zones (Buy/Sell): boxes drawn around swing highs/lows with clustering.
Fair Value Gaps (FVG/IFVG): automatic box drawing, showing break status.
Order Blocks (OB): bullish/bearish blocks, breaker OB recognition.
Killzones: highlights NY open, London open/close, Asia session with background shading.
Displacement: plots arrows on large impulse candles.
NWOG/NDOG: Weekly/Monday Open Gaps.
Basically, this section gives a full ICT price action map on the chart.
4. Vegas Touch Entry Module (Pin40/Eng60 + EMA12 switch)
This is the custom entry system you added:
Logic:
If EMA12 > EMA169, use Tunnel (144/169) as reference.
If EMA12 ≤ EMA169, use Base (576/676).
Hard lock: no longs if EMA12 < EMA676; no shorts if EMA12 > EMA676.
Touch condition:
Long → price touches lower band (Tunnel/Base).
Short → price touches upper band (Tunnel/Base).
With ATR/Percent tolerance.
Trend filter:
Must also align with long-term Vegas direction (144/169 vs 576/676 cross).
Close must be on the outer side of the band.
Candlestick filter:
Pin Bar (≥40% wick) or
Engulfing (≥60% bigger body than previous).
Cooldown: avoids multiple signals in short succession.
Plots:
Green triangle below = Long entry.
Red triangle above = Short entry.
Alerts: triggers once per bar close with full message.
5. Slope EMAs (Extra)
EMA60 and EMA200 plotted as thick lines.
Color:
Green if sloping upward (current > value 2 bars ago).
Red if sloping downward.
📡 Outputs & Alerts
Arrows for GMMA trend flips.
Arrows for Vegas Touch entries.
Labels for MSS, BOS, FVGs, OBs.
Liquidity/FVG/OB boxes.
Background shading for killzones.
Alerts:
“📡 Entry Alert (Long/Short)” for GMMA.
“VT LONG/SHORT” for Vegas Touch.
📝 Key Idea
This is not just one system, but a multi-layered confluence tool:
ICT structure & liquidity context.
GMMA trend recognition.
Vegas Tunnel directional bias.
Candlestick-based confirmation (Pin/Engulf).
Alert automation for live trading.
👉 It’s essentially a trader’s dashboard: structural map + moving averages + entry signals all in one.
Multi HTF High/Low LevelsThis indicator plots the previous high and low from up to four user-defined higher timeframes (HTF), providing crucial levels of support and resistance. It's designed to be both powerful and clean, giving you a clear view of the market structure from multiple perspectives without cluttering your chart.
Key Features:
Four Customizable Timeframes: Configure up to four distinct higher timeframes (e.g., 1-hour, 4-hour, Daily, Weekly) to see the levels that matter most to your trading style.
Automatic Visibility: The indicator is smart. It automatically hides levels from any timeframe that is lower than your current chart's timeframe. For example, if you're viewing a Daily chart, the 4-hour levels won't be shown.
Clean On-Chart Lines: The high and low for each timeframe are displayed as clean, extended horizontal lines, but only for the duration of the current higher-timeframe period. This keeps your historical chart clean while still showing the most relevant current levels.
Persistent Price Scale Labels: For easy reference, the price of each high and low is always visible on the price scale and in the data window. This is achieved with an invisible plot, giving you the accessibility of a plot without the visual noise.
How to Use:
Go into the indicator settings.
Under each "Timeframe" group, check the "Show" box to enable that specific timeframe.
Select your desired timeframe from the dropdown menu.
The indicator will automatically calculate and display the previous high and low for each enabled timeframe.
FVG Fusion – by EB | Smart Money ConceptsFVG Fusion – by EB is an advanced indicator based on Smart Money Concepts (SMC).
It automatically detects Fair Value Gaps (FVG) on multiple timeframes, along with key PDH/PDL (Daily Previous) and PWH/PWL (Weekly Previous) levels.
🔹 Key Features
Automatic detection of bullish and bearish FVGs
Multi-timeframe (M5 to D1)
PDH/PDL and PWH/PWL levels with lightning bolts
Configurable alerts when tapping on a FVG
Customizable colors, thicknesses, and automatic clearing.
💡 Ideal for traders who use Price Action and SMC to identify imbalances and high-probability zones.
cd_RSI_Divergence_CxGeneral:
The Relative Strength Index (RSI) is a momentum oscillator widely used by traders in price analysis. In addition to showing overbought/oversold zones, divergences between RSI and price are also tracked to identify trading opportunities.
The general consensus is that oscillators alone are not sufficient for entries and should be evaluated together with multiple confirmations.
This oscillator is designed as an additional confirmation/compatible tool for strategies that already use higher time frame (HTF) sweeps and lower time frame (LTF) confirmations such as Change in State Delivery (CISD) or Change of Character (CHOCH).
Features:
While RSI oscillators are commonly displayed in line format (classic), this indicator also offers candlestick-style visualization.
Depending on the selected source, period length, and EMA length, RSI can be displayed as lines and/or candlesticks.
Divergence detection & tracking:
Price and RSI values are monitored on the chosen higher time frame (from the menu) to determine highs and lows. For divergence display, the user can choose between two modes:
1- Alignment with HTF Sweep
2- All
1 - Alignment with HTF Sweep:
First, the price must sweep the previous high/low of the candle on the HTF (i.e., break it) but fail to continue in that direction and return inside (sweep).
If this condition is met, RSI values are checked:
If price makes a high sweep but RSI fails to make a new high → divergence is confirmed.
If price makes a low sweep but RSI fails to make a new low → divergence is confirmed.
Divergence is then displayed on the chart.
2 - All:
In this mode, sweep conditions are ignored. Divergence is confirmed if:
Price makes a new high on HTF but RSI does not.
RSI makes a new high on HTF but price does not.
Price makes a new low on HTF but RSI does not.
RSI makes a new low on HTF but price does not.
Menu & Settings:
RSI visualization (source + period length + EMA period length)
Option to choose classic/candlestick style display
Color customization
Higher time frame selection
Adjustable HTF boxes and table display
Final notes:
This oscillator is designed as an additional confirmation tool for strategies based on HTF sweep + LTF CISD/CHOCH confirmation logic. The chosen HTF in the oscillator should match the time frame where sweeps are expected.
Divergence signals from this oscillator alone will not make you profitable.
For spot trades, monitoring sweeps and divergences on higher time frames is more suitable (e.g., Daily–H1 / Weekly–H4).
My personal usage preferences:
Entry TF: 3m
HTF bias: Daily + H1
Sweep + CISD: 30m / 3m
Market Structure: 3m
RSI divergence: HTF = 30m
If all of them align bullish or bearish ( timeframe alignment ), I try to take the trade.
I’d be glad to hear your feedback and suggestions for improvement.
Happy trading!
Fear & Greed Oscillator — LEAPs (v6, manual DMI/ADX)Fear & Greed Oscillator for LEAPs — a composite sentiment/trend tool that highlights long-term fear/greed extremes and trend quality for better LEAP entries and exits.
This custom Fear & Greed Oscillator (FGO-LEAP) is designed for swing trades and long-term LEAP option entries. It blends multiple signals — MACD (trend), ADX/DMI (trend quality), OBV (accumulation/distribution), RSI & Stoch RSI (momentum), and volume spikes — into a single score that ranges from –100 (extreme fear) to +100 (extreme greed). The weights are tuned for LEAPs, emphasizing slower trend and accumulation signals rather than short-term noise.
Use Weekly charts for the main signal and Daily only for entry timing. Entries are strongest when the score is above zero and rising, with both MACD and DMI positive. Extreme Fear (< –60) can mark long-term bottoms when followed by a recovery, while Extreme Greed (> +60) often signals overheated conditions. A cross below zero is an early warning to reduce or roll positions.
Pivot Matrix & Multi-Timeframe Support-Resistance Analytics________________________________________
📘 Study Material for Pivot Matrix & Multi Timeframe Support-Resistance Analytics
(By aiTrendview — Educational Use Only)
________________________________________
🎯 Introduction
The Pivot Matrix & Multi Timeframe Support-Resistance Analytics indicator is designed to help traders visualize pivot points, support/resistance levels, VWAP, and volume flow analytics all in one place. Rather than giving explicit buy/sell calls, the dashboard provides reference insights so a learner may understand how different technical levels interact in real time.
This document explains its functionality step by step with formulas and usage guides.
________________________________________
1️⃣ Pivot System Logic
Pivot points are classic tools for mapping market support and resistance levels.
✦ How Calculated?
Using the Traditional Method:
• Pivot Point (PP):
PP=Highprev+Lowprev+Closeprev3PP = \frac{High_{prev} + Low_{prev} + Close_{prev}}{3}PP=3Highprev+Lowprev+Closeprev
• First Support/Resistance:
R1=2×PP−Lowprev,S1=2×PP−HighprevR1 = 2 \times PP - Low_{prev}, \quad S1 = 2 \times PP - High_{prev}R1=2×PP−Lowprev,S1=2×PP−Highprev
• Second Support/Resistance:
R2=PP+(Highprev−Lowprev),S2=PP−(Highprev−Lowprev)R2 = PP + (High_{prev} - Low_{prev}), \quad S2 = PP - (High_{prev} - Low_{prev})R2=PP+(Highprev−Lowprev),S2=PP−(Highprev−Lowprev)
• Third Levels:
R3=Highprev+2×(PP−Lowprev),S3=Lowprev−2×(Highprev−PP)R3 = High_{prev} + 2 \times (PP - Low_{prev}), \quad S3 = Low_{prev} - 2 \times (High_{prev} - PP)R3=Highprev+2×(PP−Lowprev),S3=Lowprev−2×(Highprev−PP)
• Similarly, R4/R5 and S4/S5 are extrapolated from extended range multipliers.
✦ How Used?
• Price above PP → bullish control bias.
• Price below PP → bearish control bias.
• R1–R5 levels act as resistances; S1–S5 act as supports.
Learners should watch how candles behave when approaching R/S zones to spot breakout vs. rejection conditions.
________________________________________
2️⃣ Multi Timeframe Logic
The indicator allows using daily-based pivot values (via request.security). This ensures alignment with institutional daily levels, not just intraday recalculations.
✦ Teaching Value
Understanding MTF pivots shows how markets respect higher timeframe levels (daily > intraday, weekly > daily). This helps learners grasp nested support-resistance structures.
________________________________________
3️⃣ VWAP (Volume Weighted Average Price)
Formula:
VWAPt=∑(Pricei×Volumei)∑(Volumei),Pricei=High+Low+Close3VWAP_t = \frac{\sum (Price_i \times Volume_i)}{\sum (Volume_i)}, \quad Price_i = \frac{High + Low + Close}{3}VWAPt=∑(Volumei)∑(Pricei×Volumei),Pricei=3High+Low+Close
Usage:
• VWAP is used as an institutional benchmark of fair value.
• Above VWAP = bullish flow.
• Below VWAP = bearish flow.
Learners should check whether price respects VWAP as a magnet or uses it as support/resistance.
________________________________________
4️⃣ Volume Flow Analysis
The script classifies buy volume, sell volume, and neutral volume.
• Buy Volume = if close > open.
• Sell Volume = if close < open.
• Neutral Volume = if close = open.
For daily tracking:
Buy%=DayBuyVolDayTotalVol×100,Sell%=DaySellVolDayTotalVol×100Buy\% = \frac{DayBuyVol}{DayTotalVol} \times 100, \quad Sell\% = \frac{DaySellVol}{DayTotalVol} \times 100Buy%=DayTotalVolDayBuyVol×100,Sell%=DayTotalVolDaySellVol×100
Usage for Learners:
• Dominant Buy% → accumulation/ bullish pressure.
• Dominant Sell% → distribution/ bearish pressure.
• Balanced → sideways liquidity building.
This teaches observation of order flow bias rather than relying only on price.
________________________________________
5️⃣ Dashboard Progress Bars & Colors
The script uses visual progress bars and dynamic colors for clarity. For example:
• VWAP Backgrounds: Green shades when price strongly above VWAP, Red when below.
• Volume Bars: More green blocks mean buying dominance, red means selling pressure.
This visual design turns concepts into easy-to-digest cues, useful for training.
________________________________________
6️⃣ Market Status Summary
Finally, the dashboard synthesizes all data points:
• Price vs Pivot (above or below).
• Price vs VWAP (above or below).
• Volume Pressure (buy side vs sell side).
Status Rule:
• If all three align bullish → Status box turns green.
• If mixed → Neutral grey.
• If bearish dominance → weaker tone.
Why Important?
This teaches learners that market conditions should align in confluence across indicators before confidence arises.
________________________________________
⚠️ Strict Disclaimer (aiTrendview)
The Pivot Matrix & Multi Timeframe Support-Resistance Analytics tool is developed by aiTrendview for strictly educational and research purposes.
❌ It does NOT provide buy/sell recommendations.
❌ It does NOT guarantee profits.
❌ Unauthorized use, copying, or redistribution of this code is prohibited.
⚠️ Trading Risk Warning:
• Trading involves high risk of financial loss.
• You may lose more than your capital.
• Past levels and indicators do not predict future outcomes.
This tool must be viewed as a visual education aid to practice technical analysis skills, not as trading advice.
________________________________________
✅ Now you have a step by step study guide:
• Pivot calculations explained
• VWAP with logic
• Volume breakdown
• Visual analytics
• Status confluence logic
• Disclaimer for compliance
________________________________________
⚠️ Warning:
• Trading financial markets involves substantial risk.
• You can lose more money than you invest.
• Past performance of indicators does not guarantee future results.
• This script must not be copied, resold, or republished without authorization from aiTrendview.
By using this material or the code, you agree to take full responsibility for your trading decisions and acknowledge that this is not financial advice.
________________________________________
⚠️ Disclaimer and Warning (From aiTrendview)
This Dynamic Trading Dashboard is created strictly for educational and research purposes on the TradingView platform. It does not provide financial advice, buy/sell recommendations, or guaranteed returns. Any use of this tool in live trading is completely at the user’s own risk. Markets are inherently risky; losses can exceed initial investment.
The intellectual property of this script and its methodology belongs to aiTrendview. Unauthorized reproduction, modification, or redistribution of this code is strictly prohibited. By using this study material or the script, you acknowledge personal responsibility for any trading outcomes. Always consult professional financial advisors before making investment decisions.
Trapped Traders [ScorsoneEnterprises]This indicator identifies and visualizes trapped traders - market participants caught on the wrong side of price movements with significant volume imbalances. By analyzing volume delta at specific price levels, it reveals where traders are likely experiencing unrealized losses and may be forced to exit their positions.
The point of this tool is to identify where the liquidity in a trend may be.
var lowerTimeframe = switch
useCustomTimeframeInput => lowerTimeframeInput
timeframe.isseconds => "1S"
timeframe.isintraday => "1"
timeframe.isdaily => "5"
=> "60"
= ta.requestVolumeDelta(lowerTimeframe)
price_quantity = map.new()
is_red_candle = close < open
is_green_candle = close > open
for i=0 to lkb-1 by 1
current_vol = price_quantity.get(close)
new_vol = na(current_vol) ? lastVolume : current_vol + lastVolume
price_quantity.put(close, new_vol)
if is_green_candle and new_vol < 0
price_quantity.put(close, new_vol)
else if is_red_candle and new_vol > 0
price_quantity.put(close, new_vol)
We see in this snippet, the lastVolume variable is the most recent volume delta we can receive from the lower timeframe, we keep updating the price level we're keeping track of with that lastVolume from the lower timeframe.
This is the bulk of the concept as this level and size gives us the idea of how many traders were on the wrong side of the trend, and acting as liquidity for the profitable entries. The more, the stronger.
There are 3 ways to visualize this. A basic label, that will display the size and if positive or negative next to the bar, a gradient line that goes 10 bars to the future to be used as a support or resistance line that includes the quantity, and a bubble chart with the quantity. The larger the quantity, the bigger the bubble.
We see in this example on NYMEX:CL1! that there are lines plotted throughout this price action that price interacts with in meaningful way. There are consistently many levels for us.
Here on CME_MINI:ES1! we see the labels on the chart, and the size set to large. It is the same concept just another way to view it.
This chart of CME_MINI:RTY1! shows the bubble chart visualization. It is a way to view it that is pretty non invasive on the chart.
Every timeframe is supported including daily, weekly, and monthly.
The included settings are the display style, like mentioned above. If the user would like to see the volume numbers on the chart. The text size along with the transparency percentage. Following that is the settings for which lower timeframe to calculate the volume delta on. Finally, if you would like to see your inputs in the status line.
No indicator is 100% accurate, use "Trapped Traders" along with your own discretion.
RSI-MACD-trade"Strategic trading strategy using RSI and MASCD
Highest returns when applied to weekly charts"
Dove Capital Liquidity Expansion Map — Weekly 250‑pip Bands (v6)The Best Market Maker Liqudation zone Trap. Trade The highs and lows and make some money
Institutional Candles at Weekly/Monthly ExtremesMarket Makers use institutional candles to reverse price and they profit on the short and the long. That being said its important to know they will always come back and reverse price to close out their losing positions.
Daily Open/Close + Weekday ADR (price & pips) Market Maker TTMarket development for trading weekly highs and lows during consolidation markets
Sector Analysis BhupeshSector Analysis on a Daily, Weekly and Monthly Basis. We can check and track sectors through this.
Close Above/Below Prev 2 Candle Strategy (Any Timeframe)Title: Close Above/Below Previous 2 Candle Strategy (Any Timeframe)
Description:
This strategy identifies potential breakout and trend continuation signals by analyzing the closing price relative to the highs and lows of the previous two candles. It works on any chart timeframe, making it versatile for intraday, swing, and daily trading.
How it works:
Long Entry (Bullish Signal): Triggered when the current candle closes above the highs of the previous two candles.
Short Entry (Bearish Signal): Triggered when the current candle closes below the lows of the previous two candles.
Visual Indicators:
Green triangles above the bar indicate bullish signals.
Red triangles below the bar indicate bearish signals.
Strategy Features:
Works on any timeframe, from 1-minute charts to daily/weekly charts.
Configurable risk/reward ratio for automatic stop-loss and take-profit levels.
Alerts trigger immediately when the condition is met, helping traders react to potential breakouts.
Provides clean visual signals for easy chart reading and decision-making.
Benefits:
Reduces noise by focusing on candle close confirmations.
Versatile and suitable for intraday, swing, and long-term trading.
Easy to combine with other indicators or strategies.
RSI Dynamic Bands█ OVERVIEW
The "RSI Dynamic Bands" indicator is a variant of the Relative Strength Index (RSI) oscillator that brings its signals directly onto the price chart. It displays dynamic bands around the price, adjusted based on RSI levels, enabling easy identification of potential overbought or oversold conditions. The indicator also integrates a multi-timeframe RSI table, facilitating the analysis of trend strength across different timeframes.
█ CONCEPTS
The "RSI Dynamic Bands" indicator is designed to simplify the interpretation of price levels in the context of support and resistance zones, which can be correlated with other technical indicators and RSI values. Since the price itself does not display RSI values, a table showing RSI for four selected timeframes has been added, allowing traders to quickly assess trend strength across different time intervals. The most effective approach is to combine the indicator with other technical analysis tools, such as Fibonacci levels or pivot points, to confirm signals when the price approaches the bands and RSI values indicate a potential reversal.
Band Calculation
The bands are calculated based on the current closing price and RSI values, incorporating dynamic scaling to better adapt to market conditions. The formulas for the bands are as follows:
• Upper Band: close + (rsiUpper - rsi) * scaleFactor, where rsiUpper is the upper RSI level (default: 70), and scaleFactor accounts for market volatility.
• Lower Band: close + (rsiLower - rsi) * scaleFactor, where rsiLower is the lower RSI level (default: 30).
• Midline: The arithmetic average of the upper and lower bands: (upperBand + lowerBand) / 2.
Why Scaling? Without scaling, the bands would be chaotic and jagged, making them difficult to interpret. Scaling smooths the bands, making them wider during periods of high volatility and narrower during consolidation, better reflecting potential support and resistance levels.
Indicator Features
• Dynamic Price Bands: The bands adapt to market conditions, facilitating the identification of key price levels.
• Multi-Timeframe RSI Table: Displays RSI values for four selected timeframes (default: 15m, 1h, 4h, Daily), enabling comparison of trend strength across different perspectives.
• Style Customization: Users can adjust band colors, line thickness, and toggle the visibility of bands, fills, and the table.
How to Set Up the Indicator
1 — Add the "RSI Dynamic Bands" indicator to your TradingView chart.
2 — Configure parameters in the settings, such as RSI length, upper/lower levels, and scaling multiplier, to match your trading style.
3 — Enable or disable the display of bands, fills, or the RSI table based on your needs.
4 — Adjust band and table colors in the input section and line thickness in the "Style" section to better align the indicator with your chart.
█ OTHER SECTIONS
FEATURES
• RSI Length: The period for calculating RSI (default: 14).
• RSI Levels: Thresholds for overbought (default: 70) and oversold (default: 30).
• Scaling Multiplier: Adjusts bands based on market volatility (default: 0.15).
• Table Timeframes: Select four timeframes for the RSI table (default: 15m, 1h, 4h, Daily).
• Style Options: Customize band colors, fills, table, and line thickness.
HOW TO USE
Add the indicator to your chart, configure the parameters, and observe price interactions with the bands to identify potential entry and exit points. The RSI table allows you to compare RSI values across different timeframes, aiding in trading decisions. The most effective approach is to combine the indicator with other technical analysis tools, such as Fibonacci levels or pivot points, to confirm signals when the price approaches the bands and RSI values indicate a potential reversal.
Trading Strategies:
• Scalping: Use lower timeframes (e.g., 5m, 15m) in the RSI table to quickly identify short-term lows and highs. Wait for the price to approach the lower band in the RSI oversold zone, with RSI on lower timeframes starting to rise, and other tools, such as Fibonacci levels (e.g., 38.2%) or pivot points, confirming support.
• Medium-Term Trading: Focus on 1h and 4h timeframes. Look for confirmation of a low on a lower timeframe (e.g., 1h), where RSI indicates oversold conditions or starts rising, then check if RSI on a higher timeframe (e.g., 4h) confirms the trend. Confirmation from other tools, such as a Fibonacci level (e.g., 50%) or pivot point near the bands, strengthens the signal.
• Long-Term Trading: Use Daily and higher timeframes (e.g., Weekly). Wait for all relevant timeframes to confirm a low (e.g., RSI near oversold and price at the lower band), with lower timeframes (e.g., 4h) showing rising RSI. Other tools, such as Fibonacci levels (e.g., 61.8%) or pivot points near the bands, can further confirm a trend reversal signal.
Realized Volatility (StdDev of Returns, %)📌 Realized Volatility (StdDev of Returns, %)
This indicator measures realized volatility directly from price returns, instead of the common but misleading approach of calculating standard deviation around a moving average.
🔹 How it works:
Computes close-to-close log returns (the most common way volatility is measured in finance).
Calculates the standard deviation of these returns over a chosen lookback period (default = 200 bars).
Converts results into percentages for easier interpretation.
Provides three key volatility measures:
Daily Realized Vol (%) – raw standard deviation of returns.
Annualized Vol (%) – scaled by √250 trading days (market convention).
Horizon Vol (%) – volatility over a custom horizon (default = 5 days, i.e. weekly).
🔹 Why use this indicator?
Shows true realized volatility from historical returns.
More accurate than measuring deviation around a moving average.
Useful for traders analyzing risk, position sizing, and comparing realized vs implied volatility.
⚠️ Note:
It is best used on the Daily Chart!
By default, this uses log returns (which are additive and standard in quant finance).
If you prefer, you can easily switch to simple % returns in the code.
Volatility estimates depend on your chosen lookback length and may vary across timeframes.
FlowShift OscillatorFlowShift Oscillator
Overview
The FlowShift Oscillator is a sophisticated momentum indicator designed to capture short-term shifts in market strength, identify trend acceleration, and highlight potential reversals. Combining baseline trend analysis with normalized momentum displacement and volatility-adjusted thresholds, FlowShift provides traders with a responsive, adaptive, and visually intuitive tool suitable for multiple timeframes and asset classes. Whether used for intraday scalping or longer-term trend following, FlowShift helps traders make informed decisions with precision and confidence.
Features
Customizable Baseline Moving Average : Select from SMA, EMA, SMMA (RMA), WMA, or VWMA to define the underlying trend. Adjustable length allows for tuning to specific market conditions.
Normalized Momentum Calculation : Measures price displacement relative to the baseline MA, removing minor fluctuations while preserving meaningful momentum shifts.
Volatility-Adjusted Thresholds : Dynamic upper and lower bounds adapt to market volatility, helping identify overextended bullish or bearish conditions.
Optional Signal Markers : Buy/Sell triangles indicate potential turning points when momentum reaches critical levels, aiding trade timing and decision-making.
Visual Enhancements : Customizable area fills, line colors, and optional candle tinting allow traders to quickly interpret momentum, bias, and trend direction.
Flexible Timeframe Compatibility : Effective across all timeframes, from 1-minute intraday charts to daily and weekly analysis.
How It Works
FlowShift calculates the displacement of price from a baseline moving average to identify deviations from the prevailing trend. This displacement is normalized and smoothed using exponential moving averages, producing a clean oscillator line that highlights genuine momentum changes. The oscillator’s dynamic thresholds are determined by a percentile of recent absolute values, providing an adaptive reference for extreme conditions in both bullish and bearish markets.
Signals
Buy Signal : Triggered when the oscillator crosses above prior lows in an oversold region, suggesting potential upward momentum.
Sell Signal : Triggered when the oscillator crosses below prior highs in an overbought region, indicating potential downward momentum.
Signals are optional and can be displayed as triangles on the chart to clearly mark potential entry and exit points.
Visual Interpretation
FlowShift Line & Area : The oscillator line and area highlight momentum direction and intensity. Upward momentum is shown in green tones, downward momentum in red.
Baseline MA & Glow : Displays the selected baseline moving average with optional glow for trend reference.
Candle Tinting : Optionally tints bars based on the baseline MA bias, providing an at-a-glance view of market sentiment.
Usage Notes
FlowShift is best used in conjunction with other trend confirmation tools or support/resistance analysis.
Dynamic thresholds help identify potential reversal points, but traders should consider overall market context and not rely solely on signals.
Customize the baseline MA type and length to fit your trading style; shorter lengths increase sensitivity, while longer lengths provide smoother trend representation.
Use the optional signal markers as guidance for trade timing, combining with risk management strategies for optimal results.
Conclusion
FlowShift Oscillator delivers a powerful, adaptive, and visually intuitive approach to momentum analysis. By combining baseline trend assessment, normalized momentum, and dynamic volatility scaling, it enables traders to anticipate market shifts, spot trend accelerations, and make timely trading decisions across a wide range of markets and timeframes.
CNS - Multi-Timeframe Bollinger Band OscillatorMy hope is to optimize the settings for this indicator and reintroduce it as a "strategy" with suggested position entry and exit points shown in the price pane.
I’ve been having good results setting the “Bollinger Band MA Length” in the Input tab to between 5 and 10. You can use the standard 20 period, but your results will not be as granular.
This indicator has proven very good at finding local tops and bottoms by combining data from multiple timeframes. Use BB timeframes that are lower than the timeframe you are viewing in your price pane.
The default settings work best on the weekly timeframe, but can be adjusted for most timeframes including intraday.
Be cognizant that the indicator, like other oscillators, does occasionally produce divergences at tops and bottoms.
Any feedback is appreciated.
Overview
This indicator is an oscillator that measures the normalized position of the price relative to Bollinger Bands across multiple timeframes. It takes the price's position within the Bollinger Bands (calculated on different timeframes) and averages those positions to create a single value that oscillates between 0 and 1. This value is then plotted as the oscillator, with reference lines and colored regions to help interpret the price's relative strength or weakness.
How It Works
Bollinger Band Calculation:
The indicator uses a custom function f_getBBPosition() to calculate the position of the price within Bollinger Bands for a given timeframe.
Price Position Normalization:
For each timeframe, the function normalizes the price's position between the upper and lower Bollinger Bands.
It calculates three positions based on the high, low, and close prices of the requested timeframe:
pos_high = (High - Lower Band) / (Upper Band - Lower Band)
pos_low = (Low - Lower Band) / (Upper Band - Lower Band)
pos_close = (Close - Lower Band) / (Upper Band - Lower Band)
If the upper band is not greater than the lower band or if the data is invalid (e.g., na), it defaults to 0.5 (the midline).
The average of these three positions (avg_pos) represents the normalized position for that timeframe, ranging from 0 (at the lower band) to 1 (at the upper band).
Multi-Timeframe Averaging:
The indicator fetches Bollinger Band data from four customizable timeframes (default: 30min, 60min, 240min, daily) using request.security() with lookahead=barmerge.lookahead_on to get the latest available data.
It calculates the normalized position (pos1, pos2, pos3, pos4) for each timeframe using f_getBBPosition().
These four positions are then averaged to produce the final avg_position:avg_position = (pos1 + pos2 + pos3 + pos4) / 4
This average is the oscillator value, which is plotted and typically oscillates between 0 and 1.
Moving Averages:
Two optional moving averages (MA1 and MA2) of the avg_position can be enabled, calculated using simple moving averages (ta.sma) with customizable lengths (default: 5 and 10).
These can be potentially used for MA crossover strategies.
What Is Being Averaged?
The oscillator (avg_position) is the average of the normalized price positions within the Bollinger Bands across the four selected timeframes. Specifically:It averages the avg_pos values (pos1, pos2, pos3, pos4) calculated for each timeframe.
Each avg_pos is itself an average of the normalized positions of the high, low, and close prices relative to the Bollinger Bands for that timeframe.
This multi-timeframe averaging smooths out short-term fluctuations and provides a broader perspective on the price's position within the volatility bands.
Interpretation
0.0 The price is at or below the lower Bollinger Band across all timeframes (indicating potential oversold conditions).
0.15: A customizable level (green band) which can be used for exiting short positions or entering long positions.
0.5: The midline, where the price is at the average of the Bollinger Bands (neutral zone).
0.85: A customizable level (orange band) which can be used for exiting long positions or entering short positions.
1.0: The price is at or above the upper Bollinger Band across all timeframes (indicating potential overbought conditions).
The colored regions and moving averages (if enabled) help identify trends or crossovers for trading signals.
Example
If the 30min timeframe shows the close at the upper band (position = 1.0), the 60min at the midline (position = 0.5), the 240min at the lower band (position = 0.0), and the daily at the upper band (position = 1.0), the avg_position would be:(1.0 + 0.5 + 0.0 + 1.0) / 4 = 0.625
This value (0.625) would plot in the orange region (between 0.85 and 0.5), suggesting the price is relatively strong but not at an extreme.
Notes
The use of lookahead=barmerge.lookahead_on ensures the indicator uses the latest available data, making it more real-time, though its effectiveness depends on the chart timeframe and TradingView's data feed.
The indicator’s sensitivity can be adjusted by changing bb_length ("Bollinger Band MA Length" in the Input tab), bb_mult ("Bollinger Band Standard Deviation," also in the Input tab), or the selected timeframes.
Whale VWAP HeatmapWhat it does
This indicator paints a heatmap around an anchored VWAP to make market context obvious at a glance.
Above VWAP → cyan background
Below VWAP → amber background
The farther price is from VWAP (in %), the stronger the color intensity.
How it works
Uses an anchored VWAP that resets on the period you choose (Session / Week / Month / Quarter / Year / Decade / Century / Earnings / Dividends / Splits).
Computes the percentage distance between price and VWAP, then maps that distance to background opacity.
Optional VWAP line can be shown/hidden.
Inputs (Settings)
Anchor Period — choose when VWAP resets (Session→Year, plus E/D/S options).
Source — price source (default hlc3).
Hide on D/W/M (Session only) — hides the script on Daily/Weekly/Monthly when anchor=Session (avoids NA behavior).
Enable Heatmap — turn background coloring on/off.
Max distance for full color (%) — at/above this % from VWAP, color hits full intensity (typical 0.5–2% depending on volatility).
Show VWAP Line / Line Color/Width — visual preference.
How to read it (quick playbook)
Context first: color tells you if price is trading above/below “fair value” (VWAP).
Intensity = how stretched price is from VWAP.
Use it to frame bias (above/below VWAP) and to avoid chasing extended moves.
Notes & limitations
Requires volume (VWAP is volume-weighted). If the data vendor doesn’t provide volume for the symbol, the script will stop.
For intraday, Session anchor is common. For swing/context, try Week or Month.
🚀 Ultimate Trading Tool + Strat Method🎯 What You Get - Two Powerful Systems in One:
🔥 Original Ultimate Trading Tool:
✅ Automated trendlines with dynamic support/resistance
✅ Multi-factor analysis (trend, momentum, RSI, volume)
✅ Dynamic risk management with ATR-based stops/targets
✅ Real-time dashboard with all market conditions
🎯 Advanced Strat Method Integration:
✅ Classic patterns: 2-2, 1-2-2 setups
✅ Advanced patterns: 3-1-2, 2-1-2, F2→3 setups
✅ Timeframe continuity filter (Daily + Weekly alignment)
✅ Trigger confirmations for precise entries
Changing of the GuardChanging of the Guard (COG) - Advanced Reversal Pattern Indicator
🎯 What It Does
The Changing of the Guard (COG) indicator identifies high-probability reversal setups by detecting specific candlestick patterns that occur at key institutional levels. This indicator combines traditional price action analysis with volume-weighted and moving average confluence to filter out noise and focus on the most reliable trading opportunities.
🔧 Key Features
Multi-Timeframe VWAP Analysis
• Daily VWAP (Gray circles) - Intraday institutional reference
• Weekly VWAP (Yellow circles) - Short-term institutional bias
• Monthly VWAP (Orange circles) - Long-term institutional sentiment
Triple EMA System
• EMA 20 (Blue) - Short-term trend direction
• EMA 50 (Purple) - Medium-term momentum
• EMA 200 (Navy) - Long-term market structure
Adaptive COG Pattern Detection
• 2-Bar Mode: Quick reversal signals for scalping
• 3-Bar Mode: Balanced approach for swing trading (default)
• 4-Bar Mode: Conservative signals for position trading
📊 How It Works
The indicator identifies "changing of the guard" moments when:
1. Pattern Formation: 2-4 consecutive bars show exhaustion in one direction
2. Reversal Confirmation: A counter-trend bar appears with strong momentum
3. Confluence Trigger: The reversal bar crosses through a significant VWAP or EMA level
Bullish COG: Green triangle appears below bars when bearish exhaustion meets bullish reversal at key support
Bearish COG: Red triangle appears above bars when bullish exhaustion meets bearish reversal at key resistance
💡 Trading Applications
Swing Trading: Use 3-bar mode with EMA 50/200 confluence for multi-day holds
Day Trading: Use 2-bar mode with Daily VWAP confluence for intraday reversals
Position Trading: Use 4-bar mode with Monthly VWAP confluence for major trend changes
⚙️ Customization Options
• Toggle VWAP display on/off
• Toggle EMA display on/off
• Toggle COG signals on/off
• Select detection mode (2-bar, 3-bar, 4-bar)
• Built-in alert system for automated notifications
🎨 Visual Design
Clean, professional interface with:
• Subtle dotted lines for VWAPs to avoid chart clutter
• Color-coded EMAs for easy trend identification
• Clear triangle signals that don't obstruct price action
• Customizable display options for different trading styles
📈 Best Practices
• Combine with volume analysis for additional confirmation
• Use higher timeframe bias to filter trade direction
• Consider market structure and support/resistance levels
• Backtest different modes to find optimal settings for your strategy
⚠️ Risk Management
This indicator identifies potential reversal points but should be used with proper risk management. Always consider:
• Overall market trend and structure
• Volume confirmation
• Multiple timeframe analysis
• Appropriate position sizing
Perfect for traders who want to catch reversals at institutional levels with high-probability setups. The confluence requirement ensures you're trading with the smart money, not against it.
All-in-One EMA & BBThis script combines Bollinger Bands and multiple EMAs into one powerful tool. It includes:
1) Bollinger Bands with customizable MA type and colors.
2) EMA 21 on Daily and Weekly timeframes.
3) EMA 21, 50, 100, 200 on current chart timeframe.
4) Toggle options for each indicator for a clean, flexible view.
Ideal for traders seeking multi-timeframe trend analysis and volatility insights.
Extended CANSLIM Indicator❖ Extended CANSLIM Indicator.
The Extended CANSLIM indicator is an indicator that concentrates all the tools usually used by CANSLIM traders.
It shows a table where all the stock fundamental information is shown at once first for the last quarter and then up to 5 years back.
The fundamental data is checked against well known CANSLIM validation criteria and is shown over 4 state levels.
1. Good = Value is CANSLIM Compliant.
2. Acceptable = Value is not CANSLIM compliant but still good. value is shown with a lighter background color.
3. Warning = Value deserves special attention. Value is shown over orange background color.
3. Stop = Value is non CANSLIM compliant or indicates a stop trading condition. Value is shown over red background color.
The indicator has also a set of technical tools calculated on price or index and shown directly on the chart.
❖ Fundamental data shown in the table.
The table is arranged in 4 sets of data:
1. Table Header, showing Indicator and Company data.
2. CANSLIM.
3. 3Rs: RS Rating, Revenue and ROE.
4. Extra Data: Piotroski score, ATR, Trend Days, D to E, Avg Vol and Vol today.
Sets 3 and 4 can be hidden from the table.
❖ Indicator and Compay Data.
The table header shows, Indicator name and version.
It then displays Company Name, sector and industry, human size and its capitalization.
❖ CANSLIM Data.
Displays either genuine CANSLIM data from TradinView or custom data as best effort when that data cannot be obtained in TV.
C = EPS diluted growth, Quarterly YoY.
>= 25% = Good, >= 0% = Acceptable, < 0% = Stop
A = EPS diluted growth, Annual YoY.
>= 25% = Good, >= 0% = Acceptable, < 0% = Stop
N = New High as best effort (Cust).
Always Good
S = Float shares as best effort.
Always Good
L = One year performance relative to S&P 500 (Cust),
Positive : 0% .. 50% = Neutral, 50%+ = Leader, 80%+ = Leader+, 100%+ = Leader++
Negative : 0% .. -10% = Laggard, -10% .. -30% = Laggard+, -30%+ = Laggard++
>= 50% = Good, >= 0% = Acceptable, >= -10% Warning, < -10% = Stop
I = Accumulation/Distribution days over last 25 days as a clue for institutional support (Cust).
A delta is calculated by subtracting Distribution to Accumulation days.
> 0 = Good, = 0 = Acceptable, < 0 = Warning, < -5 = Stop
M = Market direction and exposure measured on S&500 closing between averages (Cust).
Varies from 0% Full Bear to 100% Full Bull
>= 80% = Good, >= 60% = Acceptable, >= 40% = Warning, < 40% = Stop
❖ Extra non CANSLIM Data.
RS = RS Rating.
>= 90 = Good, >= 80 = Accept, >= 50 = Warning, < 50 = Stop
Rev. = Revenue Growth Quarterly YoY.
>= 0% = Good, <0% = Stop
ROE = Return on Equity, Quarterly YoY.
>= 17% = Good, >= 0% = Acceptable, < 0% = Stop
Piotr. = Piotroski Score, www.investopedia.com (TV)
>= 7 = Good, >= 4 = Acceptable, < 4 = Stop
ATR = Average True Range over the last 20 days (Cust).
0% - 2% = Acceptable, 2% - 4% = Ideal, 4% - 6% = Warning, 5%+ = Stop.
Trend Days = Days since EMA150 is over EMA200 (Cust).
Always Good
D. to E. = Days left before Earnings. Maybe not a good idea buying just before earnings (Cust).
>= 28 = Good, >= 21 = Acceptable, >= 14 = Warning, < 14 = Stop
Avg Vol. = 50d Average Volume (Cust).
>= 100K = Good, < 100K = Acceptable
Vol. Today = Today's percentage volume compared to 50d average (Cust).
Always Good.
❖ Historical Data.
Optionally selectable historical data can be displayed for C, A, Revenue and ROE up to 20 quarters if available.
Quarterly numbers can also be displayed for A, C and Revenue.
Information can be shown in Chronological or Reverse Chronological order (default).
Increasing growth quarters are shown in white, while diminuing ones are shown in Yellow.
Transition from Losing to Profitable quarters are shown with an exclamation mark ‘!’
Finally, losing quarters are shown between parenthesis.
❖ MAs on chart.
Displays 200, 100, 50 and 20 days MAs on chart.
The MAs are also automatically scaled in the 1W time frame.
❖ New 52 Week High on chart.
A sun is shown on the chart the first time that a new 52 week high is reached.
The N cell shows a filled sun when a 52 week high is no older than a month, an lighter sun when it’s no older than a quarter or a moon otherwise.
❖ Pocket Pivots on chart.
Small triangles below the price are signaling pocket pivots.
❖ Bases on chart, formerly Darvas Boxes.
Draw bases as defined by Darvas boxes, both top or bottom of bases can be selected to be shown in order to only show resistance or support.
❖ Market exposure/direction indicator.
When charting S&P500 (SPX), Nasdaq 100 Index (NDX), Nasdaq composite (IXIC) or Dow Jownes Index (DJIA), the indicator switches to Market Exposure indicator, showing also Accumulation/Distribution days when volume information is available. This indication which varies from 0% to 100% is what is shown under the M letter in the CANSLIM table which is calculated on the S&P500.
❖ Follow Through Days indicator.
If you are an adept of the Low-cheat entry, then you will be highly interested by the Follow Through days indicator as measured in the S&P 500 and shown as diamonds on the chart.
The follow-through days are calculated on S&P500 but shown in current stock chart so you don’t need to chart the S&P 500 to know that a follow through day occurred.
Follow Through days show correctly on Daily time frame and most are also shown on the Weekly time frame as well.
They are also classified according to the market zone in which they occur:
0%-5% from peak = Pullback : FT day is not shown.
5%-10% from peak = Minor Correction : Minor FT days is shown.
10%-20% from peak = Correction : Intermediate FT days us shown
20+% from peak = Bear Market : Makor FT days is shown
❖ RS Line and Rating indicator.
A RS Line and Rating indicator can be added to the chart.
Relative Strength Rating Accuracy.
Please note that the RS Rating is not 100% accurate when compared to IBD values.
❖ Earning Line indicator.
An Earning Line indicator can be added to the chart.
❖ ATR Bands and ATR Trade calculator.
The motivation for this calculator came from my own need to enter trades on volatile stocks where the simple 7% Stop Loss rule doest not work.
It simply calculates the number of shares you can buy at any moment based on current stock price and using the lower ATR band as a stop loss.
A few words about the ATR Bands.
On this indicator the ATR bands are not drawn as a classical channel that follows the price.
The lower band is drawn as a support until it’s broken on a closing basis. It can’t be in a down trend.
The upper band is drawn as a resistance until it’s broken on a closing basis. It can’t be in an up trend.
The idea is that when price starts to fall down from a peak, it should not violate its lower band ATR and that means that we can use that level as a Stop Loss.
You must look back for the stock volatility and find out which ATR multiplier works well meaning that the ATR bands are not violated on normal pullbacks. By default, the indicator uses 5x multiplier.
❖ Extra things, visual features and default settings.
The first square cell of current quarter displays a check mark ‘V’ if the CANSLIM criteria is OK or acceptable or a cross ‘X’ otherwise.
The first square cell of historical C and Rev show respectively the count of last consecutive positive quarters.
There are different color themes from “Forest” to “Space” you can chose from to best fit your eyes.
You also have different table sizes going from “Micro” to “Huge” for better adjustment to the size of your display.
The default settings view show: Pocket Pivots, FT Days, MA50, RS Line and ATR Bands.
That's all, Enjoy!