Support/Resistance Breakout DetectorThis indicator automatically detects and plots dynamic support and resistance levels using pivot highs and lows.
✅ It draws red resistance lines and blue support lines,
✅ The lines extend forward but automatically stop when the price touches them,
✅ It monitors for breakouts with strong volume,
✅ When a breakout happens, it shows labels like “B” or “Bull Wick” / “Bear Wick” on the chart,
✅ It also triggers alerts when support or resistance breaks with high volume.
Main settings:
Pivot lookback period
Show/hide breakout labels
Minimum volume for breakout
Maximum extension length for lines
This tool helps traders easily spot key price levels and watch for meaningful breakouts.
Educational
DXY-XAUUSD Correlation with ThresholdsIndicator Description: "DXY-XAUUSD Correlation with Thresholds"
This indicator tracks the dynamic correlation between the US Dollar Index (DXY) and gold prices (XAUUSD) over a user-defined period, expressed as a percentage. It calculates the rolling correlation coefficient between the closing prices of these two assets, scaled to ±100%, and visualizes it as a histogram.
Key Features:
Adjustable correlation period (default: 30 bars) and configurable positive/negative thresholds (default: ±70%).
Color-coded histogram: Intense green/red highlights correlations exceeding thresholds, signaling strong positive/negative relationships.
Horizontal dotted lines mark threshold levels, aiding in identifying overextended "overbought" or "oversold" correlation conditions.
An info table displays the current correlation value and active thresholds for quick reference.
Designed for traders analyzing the inverse relationship between the dollar and gold, this tool helps spot periods of extreme correlation divergence or convergence. The visual alerts and customizable parameters make it adaptable to various trading strategies and timeframes.
Note: The indicator is plotted in a separate pane (non-overlay) for clarity.
High Volume Candle Node & S/R @MaxMaseratiHigh Volume Candle Node (HVCN)
The High Volume Candle Node (HVCN) indicator, developed by MaxMaserati, is a powerful tool for identifying significant volume-based support and resistance levels on TradingView. Built with Pine Script v5, it visualizes volume nodes and dynamic or semi-static lines to highlight key price levels where high, medium, and low volume activity occurs. This indicator is designed to assist traders in spotting potential breakout zones and critical price levels for decision-making.
Key Features
Volume Nodes: Displays volume distribution across price levels, categorized as High Volume Nodes (HVN), Medium Volume Nodes (MVN), and Low Volume Nodes (LVN).
Dynamic/Semi-Static Lines:
Dynamic Mode: Lines adjust to recent volume changes, reflecting current market activity.
Semi-Static Mode: Lines remain fixed at key price levels for consistent reference.
HVC/MVC/LVC Lines:
High Volume Candle (HVC): Represents price levels with significant trading activity (default threshold: 73%).
Medium Volume Candle (MVC): Indicates moderate volume zones (default threshold: 25%-73%).
Low Volume Candle (LVC): Highlights areas with minimal volume (default threshold: <25%).
Breakout Detection: Identifies price breakouts above or below HVC, MVC, or LVC lines, with customizable sensitivity thresholds.
Visual Enhancements: Includes glow effects, customizable colors, triangles at line ends, and volume labels for better readability.
Bullish/Bearish Coloring: Nodes and lines are colored based on whether bullish or bearish volume dominates, aiding in trend analysis.
LVC/MVC/HVC Labels and Percentages
HVC Labels (High Volume, >73%): Mark price levels with the highest trading activity, often acting as strong support or resistance. These zones indicate where large market participants are active.
MVC Labels (Medium Volume, 25%-73%): Highlight areas with moderate volume, often serving as secondary support/resistance or consolidation zones.
LVC Labels (Low Volume, <25%): Identify price levels with low trading activity, typically areas of low interest or potential breakout zones.
Label Display Options: Users can choose to show volume in normal format (e.g., 1.2M), percentage format (e.g., 73%), or both. Labels can be positioned at price levels or node edges, with customizable size and background opacity.
Settings
Profile Settings: Adjust the number of rows (10-100), lookback length (10-1500 bars), and profile width (10%-100%).
Node Thresholds: Customize HVC (50%-99%) and LVC (5%-49%) thresholds to define volume significance.
Display Toggles: Enable/disable HVC, MVC, LVC nodes, labels, breakout detection, and visual effects like glow or triangles.
Color Customization: Separate bullish and bearish colors for nodes and lines, with adjustable opacity for boxes and labels.
Breakout Sensitivity: Fine-tune breakout thresholds (0.1%-100%) for HVC, MVC, and LVC lines.
How It Works
The HVCN indicator analyzes volume distribution within a specified lookback period, dividing the price range into rows to calculate volume at each level. It then identifies HVC, MVC, and LVC zones based on user-defined thresholds. Dynamic or semi-static lines are drawn at the most significant price levels for each category, with optional breakout detection to signal when the price crosses these lines. Volume labels provide detailed insights into the strength of each level, expressed as a percentage of total volume or absolute value.
Use Cases
Support/Resistance Identification: HVC lines often act as strong barriers, while MVC and LVC indicate weaker zones.
Breakout Trading: Breakout labels and triangles help traders spot potential trend reversals or continuations.
Volume Analysis: Bullish/bearish volume coloring aids in understanding market sentiment at key levels.
Disclaimer
The use of the HVCN indicator is entirely at the user's responsibility. It is a tool for analysis and does not guarantee trading success. Always conduct thorough research and risk management before making trading decisions.
ICT Killzones Bias & Volume Sweeps @MaxMaserati📌 Overview
This indicator helps traders identify key ICT Killzones (Asian, London, NY AM, NY PM sessions) along with volume analysis and sweep detection. It highlights institutional order blocks, tracks session bias, and detects liquidity sweeps with volume confirmation.
Key Features:
✅ ICT Killzones (Asian, London, NY AM, NY PM)
✅ Volume Analysis (High/Low volume detection)
✅ Sweep Detection (Buyside/Sellside sweeps with volume confirmation)
✅ Session Bias (Bullish/Bearish bias based on price action)
✅ Customizable Sessions (Add personal trading hours)
✅ Institutional Order Build-up (30-min pre-session accumulation zones)
⚙️ Input Settings
1. Timezone Settings
Chart Timezone: Adjust to your local timezone (default: New York).
2. Session Toggles
Asian / London / NY AM / NY PM Sessions: Enable/disable each session.
NY Lunch Session: Optional session (disabled by default).
Personal Trading Time: Customize your trading hours.
3. Label Settings
Label Size: Tiny, Small, Normal, Large.
Session Labels: Customize text for High (H), Low (L), Mid (M) labels.
Background Transparency: Adjust session box opacity.
4. Volume Analysis
Show Volume Labels: Displays volume strength (🚀 Very High, 🔥 High, ⚖️ Normal, 💤 Low, 🐢 Very Low).
Volume Lookback Period: Adjusts volume comparison window.
High/Low Volume Thresholds: Define what constitutes high/low volume.
5. Sweep Detection
Buyside/Sellside Sweeps: Highlights liquidity sweeps.
Sweep Margin: Adjust sensitivity for sweep detection.
Fake Sweep Zones: Option to hide or highlight fakeouts.
Example of Session Sweep and Volume:
Here we have a Bullish Sweep of London Low session by NY AM
However, the volume was low suggesting buyers are not strong enough (M1)
And then the sellers took over and a pressure retest by the buyers of the level and then sellers entered with more power/pressure
6. Session Momentum & Bias
Show Session Bias: Indicates bullish/bearish bias for each session.
Bias Strength Threshold: Adjust sensitivity for bias detection.
📊 How It Works
1. Session Highs/Lows
The indicator tracks High, Low, and Mid prices for each session.
Lines and boxes are drawn to visualize the session range.
2. Volume Analysis
Compares current volume to historical average.
Displays volume strength with emojis (🚀, 🔥, ⚖️, 💤, 🐢).
Highlights high-volume sweeps for confirmation.
3. Sweep Detection
Detects buyside sweeps (liquidity above highs) and sellside sweeps (liquidity below lows).
Sweep zones expand if price lingers near the swept level.
4. 30 minute Pre-session Institutional order buildup
Highlights 30-minute pre-session zones where institutions may accumulate orders.
5. Session Bias
Calculates bias based on open/close price action within the session.
Displays Bullish, Bearish, or Neutral labels.
]
🎯 Trading Applications
1. Liquidity Sweeps
Look for sweeps with high volume as confirmation of institutional activity.
Fade fake sweeps (if enabled) when price reverses quickly.
2. Session Breakouts
Trade breakouts from Asian/London ranges during NY sessions.
Watch for volume expansion on breakouts for confirmation.
3. Pre- Session Institutional Block
Price often reacts to pre-session institutional position build-up (30-min before session opens).
LV:Low Volume, HV: High volume and MV: Medium Volume
NY AM Pre-Session institutional Order Build-up block with high sweep
🔧 Customization Tips
Adjust session times to normal future sessions to match your trading style.
Modify sweep sensitivity if too many/too few sweeps are detected.
Use volume thresholds to fine-tune high/low volume alerts.
📌 Final Notes
This indicator combines ICT concepts with volume analysis for a powerful trading edge. Use it alongside price action and market structure for best results at your own risk.
ETF Builder & Backtest System [TradeDots]Create, analyze, and monitor your own custom “ETF-like” portfolio directly on TradingView. This script merges up to 10 different assets with user-defined weightings into a single composite chart, allowing you to see how your personalized portfolio would have performed historically. It is an original tool designed to help traders and investors quickly gauge risk and return profiles without leaving the TradingView platform.
📝 HOW IT WORKS
1. Custom Portfolio Construction
Multiple Assets : Combine up to 10 different stocks, ETFs, cryptocurrencies, or other symbols.
User-Defined Weights : Allocate each asset a percentage weight (e.g., 15% in AAPL, 10% in MSFT, etc.).
Single Composite Value : The script calculates a weighted “ETF-style” price, effectively simulating a merged portfolio curve on your chart.
2. Performance Tracking & Return Analysis
Automatic History Capture : The indicator records each asset’s starting price when it first appears in your chosen date range.
Rolling Updates : As time progresses, all asset prices are continually evaluated and the portfolio value is updated in real time.
Buy & Hold Returns : See how each asset—and the overall portfolio—performed from the “start” date to the most recent bar.
Annualized Return : Automatically calculates CAGR (Compound Annual Growth Rate) to help visualize performance over varying timescales.
3. Table & Visual Output
Performance Table : A comprehensive table displays individual asset returns, annualized returns, and portfolio totals.
Normalized Chart Plot : The composite ETF value is scaled to 100 at the start date, making it easy to compare relative growth or decline.
Optional Time Filter : You can define a specific date range (Start/End Dates) to focus on a particular period or to limit historical data.
⚙️ KEY FEATURES
1. Flexible Asset Selection
Choose any symbols from multiple asset classes. The script will only run calculations when data is available—no need to worry about missing quotes.
2. Dynamic Table Reporting
Start Price for each asset
Percentage Weight in the portfolio
Total Return (%) and Annualized Return (%)
3. Simple Backtesting Logic
This script takes a straightforward Buy & Hold perspective. Once the start date is reached, the portfolio remains static until the end date, so you can quickly assess hypothetical growth.
4. Plot Customization
Toggle the main “ETF” plot on/off.
Alter the visual style for tables and text.
Adjust the time filter to limit or extend your performance measurement window.
🚀 HOW TO USE IT
1. Add the Script
Search for “ETF Builder & Backtest System ” in the Indicators & Strategies tab or manually add it to your chart after saving it in your Pine Editor.
2. Configure Inputs
Enable Time Filter : Choose whether to restrict the analysis to a particular date range.
Start & End Date : Define the period you want to measure performance over (e.g., from 2019-12-31 to 2025-01-01).
Assets & Weights : Enter each symbol and specify a percentage weight (up to 10 assets).
Display Options : Pick where you want the Table to appear and choose background/text colors.
3. Interpret the Table & Plots
Asset Rows : Each asset’s ticker, weighting, start price, and performance metrics.
ETF Total Row : Summarizes total weighting, composite starting value, and overall returns.
Normalized Plot : Tracks growth/decline of the combined portfolio, starting at 100 on the chart.
4. Refine Your Strategy
Compare how different weights or a new mix of assets would have performed over the same period.
Assess if certain assets contribute disproportionately to your returns or volatility.
Use the results to guide allocations in your real trading or paper trading accounts.
❗️LIMITATIONS
1. Buy & Hold Only
This script does not handle rebalancing or partial divestments. Once the portfolio starts, weights remain fixed throughout the chosen timeframe.
2. No Reinvestment Tracking
Dividends or other distributions are not factored into performance.
3. Data Availability
If historical data for a particular asset is unavailable on TradingView, related results may display as “N/A.”
4. Market Regimes & Volatility
Past performance does not guarantee similar future behavior. Markets can change rapidly, which may render historical backtests less predictive over time.
⚠️ RISK DISCLAIMER
Trading and investing carry significant risk and can result in financial loss. The “ETF Builder & Backtest System ” is provided for informational and educational purposes only. It does not constitute financial advice.
Always conduct your own research.
Use proper risk management and position sizing.
Past performance does not guarantee future results.
This script is an original creation by TradeDots, published under the Mozilla Public License 2.0.
Use this indicator as part of a broader trading or investment approach—consider fundamental and technical factors, overall market context, and personal risk tolerance. No trading tool can assure profits; exercise caution and responsibility in all financial decisions.
Power Law Global Liquidity Price Model & OscillatorDescription:
This Pine Script implements a predictive Bitcoin (BTC) price model derived from an observed power-law relationship between BTC price and Global Liquidity (specifically Global M2).
To clarify, the indicator doesn't show M2 directly as many indicators do, but uses an empirical observed relationship between BTC price and M2. This is an important difference from other Global Liquidity indicators and makes it very useful because it allows for making predictions on the future of Bitcoin price.
The model is based on the relationship BTC ~ GL^9.3, where GL represents Global M2, and the best correlation is achieved with an 85-period lead in GL, making it a leading indicator for BTC price movements. The observed correlation is higher than 0.92, giving high confidence in the model's validity. The 85-day lead was chosen by calculating the predictive rate of the model (how many times a positive/negative return in the model correlates with the price) with a given lead. The relationship between a chosen delay and predictive power has a maximum at 85 days.
Features:
BTC Price Model:
Calculates a BTC price model using the power-law relationship (BTC ~ GL^9.3) with an 85-period lead in Global Liquidity data.
The model is superimposed on the chart using forced overlay for clear visualization of the predicted BTC price trend relative to actual price.
Directional Oscillator:
Displayed in a lower panel, the oscillator compares the structural similarity between the actual BTC price and the GL-based price model.
Computes the win rate of the averaged BTC price (over a 1-year period) versus the price model to highlight structural alignment.
Projects future oscillator values based on the 85-period lead in the GL model, providing insight into potential price direction.
This feature is also very unique, and it is not present in most Global Liquidity indicators. The reason to choose the win rate is that this parameter doesn't depend on a precise scaling
between the BTC price and GL. This allows for better identification of changes in features between the 2 time series (for example, a downturn, a run up, peaks, bottoms, and similar).
Purpose:
This script serves as a predictive tool for traders and analysts by leveraging the leading relationship between Global Liquidity and BTC price. The overlay model and oscillator provide both a visual and quantitative framework to anticipate BTC price trends and assess structural alignment with global economic indicators.
The indicator allows for early identification of bottoms, peaks, and possible local bull or bear runs.
Usage Notes:
This indicator works best when used with the "All Time History" BTCUSD index.
The 85-period lead in GL allows for forward-looking projections, making this tool suitable for strategic planning.
The oscillator aids in confirming the structural validity of the model, enhancing confidence in its projections.
Custom Rotatable PinwheelCustom Rotatable Pinwheel – Art Generator (Fully Color-Configurable)
This visual indicator draws a rotating pinwheel using radial spokes. It's designed purely for artistic and decorative purposes — not for trading signals. Use it to create abstract, mandala-like effects by layering multiple instances with different rotation angles and color palettes.
Fully Customizable Spoke Colors
You can now define up to 8 custom spoke colors, which cycle across the pinwheel arms.
Optionally, enable "Use Single Color" to override all spokes with a single color.
This gives full creative control over your color palette and design aesthetic.
Controls:
Number of Spokes – Total number of radial arms
Rotation Offset (°) – Adjusts the starting angle, useful when layering multiple instances
Spin Speed – Controls how fast the pinwheel rotates with each bar
Inner / Outer Radius – Adjusts the spoke arm lengths
Transparency – Controls how visible the lines are
Use Single Color – Toggle between a single color or a full custom palette
Color 1–8 – Set your preferred spoke colors (used when single color is off)
Setup for a Clean Chart Canvas (No Price Bars or Gridlines)
To hide all default chart visuals and show only the pinwheel design:
Right-click chart → Settings
Symbol tab: Uncheck "Show Bars"
Scales tab: Uncheck "Price Scale" and "Time Scale"
Appearance tab:
Set background to black
Uncheck grid lines, watermark, etc.
Status Line and Events: Uncheck all
Entropy Bands (TechnoBlooms)Entropy Bands — A New Era of Volatility and Trend Analysis
Entropy Bands is our next indicator as a part of the Quantum Price Theory (QPT) Series of indicators.
🧠 Overview
Entropy Bands are an advanced volatility-based indicator that reimagines traditional banded systems like Bollinger Bands.
Built on entropy theory, adaptive moving averages, and dynamic volatility measurement, Entropy Bands provide deeper insights into market randomness, trend strength, and breakout potential.
Instead of only relying on price deviation (like Bollinger Bands), Entropy Bands integrate chaos theory principles to create smarter, more responsive dynamic bands that adapt to real market behavior.
🚀Why is Entropy Bands Different — and Better
Dynamic Band Width : Adjusts using both entropy and ATR, creating smarter expansion/contraction.
Multi-Moving Average Core : Choose between SMA, EMA, or WMA for optimal centerline behavior.
Noise and Breakout Filtering : Filters fake breakouts by analyzing candle body size and entropy conditions.
Visual Clarity : Background and candle coloring highlight chaotic/noisy zones, trend zones, and breakout moments.
Entropy Bands don't just react to price — they analyze the underlying market behavior, offering superior decision-making signals.
📚 Watch Band Behavior:
Bands expand during volatility spikes or chaotic conditions.
Bands contract during low volatility or tight consolidation zones.
📚 Analyze Candle Coloring:
Green = Bullish breakout (closing above upper band).
Pink = Bearish breakout (closing below lower band).
Gray = Inside bands (neutral/random noise).
✨ Key Features of Entropy Bands:
Entropy-Based Band Width Calculation: A scientific edge over pure price deviation methods.
Dynamic Background Coloring: Highlights high entropy areas where randomness dominates.
Candle Breakout Coloring: Easy-to-spot trend breakouts and strength moves.
Multi-MA Flexibility: Adapt the bands’ core to trending, ranging, or volatile markets.
Body Size Filter: Protects against fake breakouts by requiring meaningful candle body moves.
Custom Time Session Background (Amsterdam Time, DST Safe)This indicator highlights two custom intraday time ranges with background colors on your chart. The times are set based on your local Amsterdam time and automatically adjust for Daylight Saving Time (DST).
📌 Features:
- Define two separate time ranges (Start & End) in local Amsterdam time
- Background color highlighting for each range
- Fully DST-aware using the "Europe/Amsterdam" timezone
- Works across all intraday timeframes
🎯 Use Cases:
- Highlight key market sessions (e.g., EU open, NY overlap)
- Visually segment your trading hours
- Eliminate manual DST adjustments
Developed with Pine Script v5.
Made for traders who want clarity during specific time zones, without worrying about time shifts across the year.
Price Channel MarkerThis indicator identifies a dynamic price channel based on the most relevant recent price action. It draws two horizontal lines:
* 🔴 Red Line – Marks the high of the most recent red candle (bearish) whose high is just below the current price. It selects the red candle with the high closest in price to the current close, and ensures it is from a valid historical context (ignoring recent highs above the current price).
* 🟢 Green Line – Marks the low of the most recent green candle (bullish) whose low is just above the current price, also selected based on proximity to the current price.
Together, these two lines define a potential price compression zone or "trap" area — showing where price may currently be trading between recent supply (red candle) and demand (green candle). The lines update dynamically and extend into the future to help visualize breakout or rejection levels.
Use Cases:
* Spot potential breakout zones.
* Define short-term support and resistance.
* Filter for entries in range-bound or squeeze conditions.
Customization:
* Adjustable lookback range (up to 5000 bars).
* Colors and line style are easily customizable.
Bitcoin Spot ETF Combined Volume (with MA)Bitcoin Spot ETF Combined Volume Indicator
This TradingView script tracks and combines the daily trading volumes of major Bitcoin Spot ETFs, including:
• IBIT (BlackRock)
• FBTC (Fidelity)
• ARKB (ARK Invest)
• BITB (Bitwise)
• HODL (Valkyrie)
• GBTC (Grayscale)
It plots:
• The total combined volume
• A moving average of combined volume
• Dynamic color changes (green = strong volume, red = weak volume)
• Optional alerts when volume crosses above or below the moving average
Why it matters:
Rising ETF volume often signals increased institutional interest, potential accumulation, or distribution.
Watching volume trends helps spot shifts in Bitcoin’s broader market sentiment.
⸻
Disclaimer:
This tool is for informational and educational purposes only.
It does not constitute financial advice.
Always do your own research (DYOR) and consult a professional before making investment decisions.
Use at your own risk.
MyBoxMyBox - Display Text with Customizable Position and Size
This indicator allows you to display a customizable message on your chart, with adjustable font size, position, and background color. You can input your desired message, choose the font size (small, normal, large, huge), and place it in various positions on the chart (top-left, top-center, top-right, etc.). Additionally, you can customize the background color of the box where the text is displayed.
Features:
Display a custom message on your chart (e.g., "FOMO Incoming!!").
Adjustable font size (small, normal, large, huge).
Choose from multiple position options for text placement (e.g., top-left, middle-center, bottom-right).
Customize the box background color for better visibility.
Perfect for displaying personal notes, reminders, or trading signals while analyzing the market!
ULTIMATE Price Action Oscillator with Volume-Based S/R - MehtaULTIMATE Price Action Oscillator with Volume-Based S/R (UPO-PRO-VOL)
Key Features:
Smart Oscillator: Combines price action momentum with customizable smoothing.
Volume-Confirmed S/R: Identifies high-confidence Support/Resistance levels when price crosses above-average volume.
Real-Time Tracking: Displays S/R levels with timestamps (IST) in a clean table.
Visual Alerts: Dashed lines + labels mark key levels for easy spotting.
⚠️ STRONG DISCLAIMER
❌ This indicator is for educational purposes only.
❌ Not financial advice. Trading involves risk—always conduct your own analysis.
❌ No guarantee of accuracy. Past performance ≠ future results.
❌ Adjust settings carefully. Test in a demo account first.
❌ Volume thresholds may vary by asset. Customize Volume Threshold Multiplier as needed.
📝 How to Use:
S/R Signals: Green "S" = Support (oscillator crosses up with high volume). Red "R" = Resistance (oscillator crosses down with high volume).
Table: Tracks latest S/R prices and formation time (IST).
Tweak Settings: Adjust Oscillator Length, Smoothing, and Volume Threshold for your trading style.
Tip: Combine with trend analysis for higher-probability trades!
Script Settings (Default):
Oscillator Length: 5 (Can be adjusted upto a maximum value of 200)
Smoothing: 3
S/R Lookback: 100 bars
Volume Threshold: 1.5x avg volume
OpeningRange (Trading_Tix)Purpose:
The indicator highlights the high, low, and middle (50%) price levels of a specified session's opening range. These levels can serve as key support and resistance zones for trading strategies. The indicator also offers options to extend these levels beyond the session into later timeframes, making it useful for tracking breakout or trend continuation setups.
Key Features:
1. Session Detection:
The indicator identifies a specific session period using the user-defined Session Time. It calculates the start time, high, and low prices during this period:
rangeTime: Defines the session time range (default: 5:00 PM to 2:59 AM).
extendTime: Defines the extended time range where lines/backgrounds can be prolonged.
2. Opening Range Calculation:
High (high_val) and Low (low_val)**:
Tracks the highest and lowest prices during the session.
Middle Line:
A midpoint is calculated by averaging high_val and low_val.
3. Visual Elements:
Horizontal Lines:
Drawn at the high, low, and middle levels.
Customizable in width and color.
Shaded Background Box:
Covers the range between high and low prices.
The box’s color and transparency can be adjusted.
Line and Box Extension:
Optionally extends these elements into the extended time range.
4. Customization:
Users have the flexibility to:
Toggle visibility of lines, middle line, and background box.
Adjust colors, line thickness, and style.
Enable or disable the extension of lines and backgrounds into the extended period.
How It Works:
Initialization:
The script initializes variables to store range data (startTime, high_val, low_val) and drawing objects (lines, boxes).
It detects whether the current bar falls within the session (inSession) or extended timeframe (inExtend).
Plotting:
During the session:
Deletes previous lines and boxes from prior sessions.
Draws new lines at the high, low, and middle levels.
Creates a background box covering the range, if enabled.
During the extended period:
Extends the session lines and box, if the user has opted for extensions.
Updates:
Continuously adjusts the high/low values and updates the lines as new price data arrives.
Use Cases:
This indicator can be valuable for traders who:
Use the opening range to identify potential breakout zones.
Trade based on price consolidation within the range.
Want a visual representation of key price levels to plan entries and exits.
Would you like help refining this script further or adjusting its settings to match your trading style?
Swing + 3-Bar Breakout(Mastersinnifty)Overview
This script is a hybrid trading tool combining swing-based structural analysis, momentum filtering, and breakout validation — designed to detect early reversals and confirm trend continuations within a single unified system.
It integrates five major components:
- ZigZag Structural Detection — to identify critical swing highs and lows.
- Momentum Validation — using RSI and Rate of Change (ROC) to confirm the strength behind swings.
- Three-Bar Breakout Confirmation — spotting trend continuation beyond swing structures.
- Dynamic Trailing Stop System — managing trades adaptively via ATR-based trailing stops.
- Projected Target Levels — estimating future price destinations based on measured swings.
---
What Makes This Script Unique
Rather than using standard indicators in isolation, this script layers multiple conditions sequentially and contextually:
- Structural Foundation: Identifies pivots through a tight ZigZag algorithm tuned with a low-depth setting for early detection.
- Momentum Checkpoint: Validates pivots only if RSI extremes and ROC momentum surges align, reducing false breakouts during sideways movements.
- Breakout Validation: Confirms trend continuation when price breaches critical multi-bar highs/lows post-swing formation.
- Risk-Managed Progression: Initiates adaptive ATR-based trailing stops immediately after signal generation, tightening risk dynamically as trends unfold.
- Target Projection: Estimates potential move size by projecting the magnitude of the last completed swing, offering realistic price milestones.
This combination provides a dual-purpose tool for both reversals and breakouts, allowing flexible trading styles within a single indicator.
---
How the Script Works
- Swing Detection
- A swing low is identified when a price bottom forms (via ZigZag) and momentum conditions are met (RSI < 20, ROC > +0.5).
- A swing high is identified when a price top forms and momentum conditions are met (RSI > 80, ROC < -0.5).
- Breakout Confirmation
- After a swing is detected, if price crosses above/below a three-bar swing structure, a secondary breakout signal is triggered.
- Trailing Stop Activation:
- Upon a confirmed swing or breakout, an ATR-multiplied trailing stop is initialized below/above the entry point to secure profits dynamically.
- Projection Logic
- Swing height is measured from the latest high-low sequence, and potential future targets are plotted for visual guidance.
---
Who Can Benefit From This Indicator
- Swing Traders — who seek early entries around reversal zones.
- Scalpers & Intraday Traders — needing fast-reacting momentum-based confirmation.
- Breakout Traders — to time entries after multi-bar compressions.
- Risk Managers — through integrated ATR trailing stops for dynamic exit management.
- Price Action Analysts — utilizing projected swing targets for strategic planning.
---
How to Use
- Entry Identification
- Look for buy signals at swing lows with strong positive momentum.
- Look for sell signals at swing highs with strong negative momentum.
- Use breakout confirmations to validate the trend continuation beyond swings.
- Risk Management
- Monitor trailing stop lines to track trade health.
- Watch projected targets to anticipate realistic move completions.
- Chart Visibility
- All plotted points, breakout markers, trailing stops, and projected levels are generated automatically for clarity.
---
Disclaimer
This script is intended for educational and analytical purposes only.
It does not constitute financial advice, and past performance does not guarantee future results.
All trading involves risk. Users are responsible for their own trading decisions.
Bitcoin as % Global M2 signalThis script provides signal system:
Buy signal: each time the YoY of the Global M2 rises more than 2.5% while the distance between the bitcoin price as a percentage of the Global M2 is below its yearly SMA.
Sell signal: the distance between the bitcoin price as a percentage of the Global M2 and its yearly SMA is > 0.7
This is a very simple system, but it seems to work pretty well to ride the bitcoin price cycle wave.
The parameters are hard coded but they can be easily changed to test different levels for both the buy and sell signals.
Global M2 YoY % Increase signalThe script produces a signal each time the global M2 increases more than 2.5%. This usually coincides with bitcoin prices pumps, except when it is late in the business cycle or the bitcoin price / halving cycle.
It leverages dylanleclair Global M2 YoY % change, with several modifications:
adding a 10 week lead at the YoY Change plot for better visibility, so that the bitcoin pump moreless coincides with the YoY change.
signal increases > 2.5 in Global M2 at the point at which they occur with a green triangle up.
First Presented Fair Value Gap [TakingProphets]🧠 Indicator Purpose:
The "First Presented Fair Value Gap" (FPFVG) by Taking Prophets is a precision tool designed for traders utilizing Inner Circle Trader (ICT) concepts. It automatically detects and highlights the first valid Fair Value Gap (FVG) that forms between 9:30 AM and 10:00 AM New York time — one of the most critical windows in ICT-based trading frameworks.
It also plots the Opening Range Equilibrium (the average of the previous day's 4:14 PM close and today's 9:30 AM open) — a key ICT reference point for premium/discount analysis.
🌟 What Makes This Indicator Unique:
This script is highly specialized for early session trading and offers:
Automatic Detection: Finds the first Fair Value Gap after the 9:30 AM NYSE open.
Clear Visualization: Highlights the FVG zone and labels it with optional time stamps.
Equilibrium Line: Plots the Opening Range Equilibrium for instant premium/discount context.
Time-Sensitive Logic: Limits detection to the most volatile early session (9:30 AM - 10:00 AM).
Extension Options: You can extend both the FVG box and Equilibrium line out to 3:45 PM (end of major session liquidity).
⚙️ How the Indicator Works (Detailed):
Pre-Market Setup:
Captures the previous day's 4:14 PM close.
Captures today's 9:30 AM open.
Calculates the Equilibrium (midpoint between the two).
After 9:30 AM (New York Time):
Monitors each 1-minute candle for the creation of a Fair Value Gap:
Bullish FVG: Low of the current candle is above the high two candles ago.
Bearish FVG: High of the current candle is below the low two candles ago.
The first valid gap is boxed and optionally labeled.
Post-Detection Management:
The FVG box and label extend forward in time until 3:45 PM (or the current time, based on settings).
If enabled, the Equilibrium line and label also extend to help with premium/discount analysis.
🎯 How to Use It:
Step 1: Wait for market open (9:30 AM New York time).
Step 2: Watch for the first presented FVG on the 1-minute chart.
Step 3: Use the FPFVG zone to guide entries (retracements, rejections, or breaks).
Step 4: Use the Opening Range Equilibrium to determine premium vs. discount conditions:
Price above Equilibrium = Premium market.
Price below Equilibrium = Discount market.
Best Application:
In combination with ICT Killzones, especially during the London or New York Open.
When framing intraday bias and identifying optimal trade locations based on liquidity theory.
🔎 Underlying Concepts:
Fair Value Gaps: Price imbalances where liquidity is likely inefficient and future rebalancing can occur.
Opening Range Equilibrium: Key ICT price anchor used to separate premium and discount conditions post-open.
Time-Gated Setup: Limits focus to early session price action, aligning with inner circle trader timing models.
🎨 Customization Options:
FVG color, label visibility, and label size.
Opening Range Equilibrium line visibility and label styling.
Extend lines and boxes to 3:45 PM automatically for full session tracking.
✅ Recommended for:
Traders applying Inner Circle Trader (ICT) models.
Intraday scalpers or day traders trading the New York session open.
Traders who want to frame early session bias and liquidity traps effectively.
Flow State Model [TakingProphets]🧠 Indicator Purpose:
The "Flow State Model" by Taking Prophets is a precision-built trading framework based on the Inner Circle Trader (ICT) methodology. This script implements and automates the Flow State Model, a highly effective multi-timeframe trading system created and popularized by ITS Johnny.
It is designed to help traders systematically align higher timeframe liquidity draws with lower timeframe confirmation patterns, offering a clear roadmap for catching institutional moves with high confidence.
🌟 What Makes This Indicator Unique:
This is not a simple liquidity indicator or a basic FVG plotter. The Flow State Model executes a full multi-step process:
Higher Timeframe PD Array Detection: Automatically identifies and displays Fair Value Gaps (FVGs) from Daily, Weekly, and Monthly timeframes.
Liquidity Sweep Monitoring: Tracks swing highs and lows to detect Buyside or Sellside Liquidity sweeps into the HTF PD Arrays.
CISD Detection: Waits for a Change in State of Delivery (CISD) by monitoring bullish or bearish displacement after a sweep.
Full Trade Checklist: Visual checklist ensures all critical conditions are met before signaling a completed Flow State setup.
Sensitivity Control: Adapt detection strictness (High, Medium, Low) based on market volatility.
⚙️ How the Indicator Works (Detailed):
Fair Value Gap Mapping:
The indicator constantly scans higher timeframes (4H, Daily, Weekly) for valid bullish or bearish Fair Value Gaps that are large enough (based on ATR multiples) and not weekend gaps.
These FVGs are displayed on the current timeframe with full extension logic and mitigation handling (clearing when invalidated).
Liquidity Sweep Detection:
Swing highs and lows are identified using pivot logic (3-bar pivots). When price sweeps beyond a recent liquidity point into an active FVG, it flags the potential for a Flow State setup.
Change in State of Delivery (CISD) Confirmation:
After a sweep, the script monitors price action for a sequence of bullish or bearish candles followed by displacement (break in delivery).
Only after displacement closes beyond the initiating sequence does a CISD level plot, confirming the market's new delivery state.
Execution Checklist:
An optional table tracks whether critical components are present:
Higher Timeframe PD Array.
Aligned Timeframe Bias.
Liquidity Sweep into FVG.
SMT Divergence (optional manual confirmation).
CISD Confirmation.
Dynamic Management:
Active gaps are extended automatically.
Cleared gaps and mitigated CISDs are deleted to keep charts clean.
Distance-to-FVG prioritization keeps only the nearest active setups visible.
🎯 How to Use It:
Step 1: Identify the bias by locating active higher timeframe FVGs.
Step 2: Wait for a Liquidity Sweep into a PD Array (active FVG).
Step 3: Watch for a CISD event (the Flow State confirmation).
Step 4: Once all conditions are checked off, execute trades based on retracements to CISD levels or continuation after displacement.
Best Timing:
During ICT Killzones: London Open, New York AM.
After daily or weekly liquidity events.
🔎 Underlying Concepts:
Liquidity Theory: Markets seek to engineer liquidity for real institutional entries.
Fair Value Gaps: Imbalances where price is expected to react or rebalance.
Change in State of Delivery (CISD): Confirmation that the market's delivery mechanism has shifted, validating bias continuation.
Flow State Principle: Seamlessly aligning higher timeframe liquidity draws with lower timeframe confirmation to maximize trade probability.
🎨 Customization Options:
Adjust sensitivity (High / Medium / Low) for volatile or calm conditions.
Customize FVG visibility, CISD display, labels, line colors, and sizing.
Set checklist visibility and manual tracking of SMT or aligned bias.
✅ Recommended for:
Traders studying Inner Circle Trader (ICT) models.
Intraday scalpers and swing traders seeking confluence-driven setups.
Traders looking for a structured, checklist-based execution process.
Rejection Blocks [Taking Prophets]🧠 Indicator Purpose:
The "Rejection Blocks" indicator is built for traders using Inner Circle Trader (ICT) concepts. It identifies key reversal zones where price action shows strong rejection through wick-dominant behavior around major swing points — often signaling institutional activity. Traders can use these rejection blocks to anticipate future support, resistance, and mitigation zones based on ICT principles.
🌟 What Makes This Indicator Unique:
Unlike standard support/resistance indicators, this script detects true rejection points by filtering only candles where the wick is significantly larger than the body, confirming potential order flow shifts according to ICT methodology.
It not only marks these zones but also:
Dynamically extends the blocks into the future.
Deletes blocks that get invalidated (mitigation logic).
Optionally plots a 50% midline within each block to refine entry or exit precision.
⚙️ How the Indicator Works:
Swing Detection: Identifies significant highs and lows based on pivot structures.
Rejection Filtering: Confirms strong rejections with wick-to-body ratio validation.
Block Creation: Highlights bullish or bearish rejection zones with customizable visuals.
Midline Plotting: (Optional) Marks the 50% midpoint of the block for entry targeting.
Mitigation and Cleanup: Blocks are deleted automatically when their structure is invalidated, maintaining a clean and accurate chart view.
🎯 How to Use It:
Identify Reaction Zones: Use rejection blocks as potential areas for price reversals or consolidations.
Plan Trade Entries: Monitor retests of the block boundaries or 50% lines for precision entries.
Manage Risk: If price closes beyond the block, treat it as a potential invalidation or Change in State of Delivery (CISD) event.
Best Contexts:
Near higher timeframe Points of Interest (POIs) such as Order Blocks or Fair Value Gaps.
During ICT Killzones (London Open, New York AM).
🔎 Underlying Concepts:
Wick Rejections: Indicate strong liquidity rejection, aligning with ICT liquidity sweep theories.
Mitigation Behavior: Blocks often serve as revisit zones where price rebalances after an aggressive move.
Adaptive Market Behavior: Rejection Blocks adjust dynamically based on real-time price action according to ICT market structure logic.
🎨 Customization Options:
Bullish and Bearish block colors with adjustable opacity.
Border visibility, border width, and 50% midline display toggles.
Label size customization for optimal chart clarity.
✅ Recommended for:
Traders following Inner Circle Trader (ICT) concepts.
Scalpers, intraday, and swing traders seeking accurate reversal and mitigation zones.
Traders looking to improve precision around liquidity rejection events.
CISD [TakingProphets]🧠 Indicator Purpose:
The "CISD - Change in State of Delivery" is a precision tool designed for traders utilizing ICT (Inner Circle Trader) conecpets. It detects critical shifts in delivery conditions after liquidity sweeps — helping you spot true smart money activity and optimal trade opportunities. This script is especially valuable for traders applying liquidity concepts, displacement recognition, and market structure shifts at both intraday and swing levels.
🌟 What Makes This Indicator Unique:
Unlike basic trend-following or scalping tools, CISD operates through a two-phase smart money logic:
Liquidity Sweep Detection (sweeping Buyside or Sellside Liquidity).
State of Delivery Change Identification (through bearish or bullish displacement after the sweep).
It intelligently tracks candle sequences and only signals a CISD event after true displacement — offering a much deeper context than ordinary indicators.
⚙️ How the Indicator Works:
Swing Point Detection: Identifies recent pivot highs/lows to map Buyside Liquidity (BSL) and Sellside Liquidity (SSL) zones.
Liquidity Sweeps: Watches for price breaches of these liquidity points to detect institutional stop hunts.
Sequence Recognition: Finds series of same-direction candles before sweeps to mark institutional accumulation/distribution.
Change of Delivery Confirmation: Confirms CISD only after significant displacement moves price against the initial candle sequence.
Visual Markings: Automatically plots CISD lines and optional labels, customizable in color, style, and size.
🎯 How to Use It:
Identify Liquidity Sweeps: Watch for CISD levels plotted after a liquidity sweep event.
Plan Entries: Look for retracements into CISD lines for high-probability entries.
Manage Risk: Use CISD levels to refine your stop-loss and profit-taking zones.
Best Application:
After stop hunts during Killzones (London Open, New York AM).
As part of the Flow State Model: identify higher timeframe PD Arrays ➔ wait for lower timeframe CISD confirmation.
🔎 Underlying Concepts:
Liquidity Pools: Highs and lows cluster stop orders, attracting institutional sweeps.
Displacement: Powerful price moves post-sweep confirm smart money involvement.
Market Structure: CISD frequently precedes major Change of Character (CHoCH) or Break of Structure (BOS) shifts.
🎨 Customization Options:
Adjustable line color, width, and style (solid, dashed, dotted).
Optional label display with customizable color and sizing.
Line extension settings to keep CISD zones visible for future reference.
✅ Recommended for:
Traders studying ICT Smart Money Concepts.
Intraday scalpers and higher timeframe swing traders.
Traders who want to improve entries around liquidity sweeps and institutional displacement moves.
🚀 Bonus Tip:
For maximum confluence, pair this with the HTF POI, ICT Liquidity Levels, and HTF Market Structure indicators available at TakingProphets.com! 🔥
Kalman Filtered RSI | [DeV]The Kalman Filtered RSI indicator is an advanced tool designed for traders who want precise, noise-free market insights. By enhancing the classic Relative Strength Index (RSI) with a Kalman filter, this indicator delivers a smoother, more reliable view of market momentum, helping you identify trends, reversals, and overbought/oversold conditions with greater accuracy. It’s an ideal choice for traders seeking clear signals amidst market volatility, giving you a competitive edge across any trading environment.
The RSI measures momentum by analyzing price movements over a set period, typically 14 bars. It calculates the average of price gains on up days and the average of price losses on down days, then compares these to produce a value between 0 and 100. An RSI above 70 often indicates an overbought market that may reverse downward, while below 30 suggests an oversold market that could reverse upward. RSI is great for spotting momentum shifts, potential reversals, and trend strength, but it can be noisy in choppy markets, leading to misleading signals.
That's where the Kalman filter comes in; it enhances the RSI by applying a sophisticated smoothing process that predicts the RSI’s next value based on its historical trend, then updates this prediction with the actual RSI reading. It operates in two phases: prediction and correction. In the prediction phase, it uses the previous filtered RSI and adds uncertainty from process noise (Q), which is derived from the historical variance of RSI changes, reflecting how much the RSI might unexpectedly shift. In the correction phase, it calculates a Kalman gain based on the ratio of prediction uncertainty to measurement noise (R), which is determined from the variance between raw RSI and a smoothed version, indicating the raw data’s noisiness. This gain weights how much the filter trusts the new RSI versus the prediction, blending them to produce a smoothed RSI that reduces noise while staying responsive to real trends, outperforming simpler methods like moving averages that often lag or oversmooth.
With the Kalman Filtered RSI, you get a refined view of momentum, making it easier to spot trends and reversals with clarity. This indicator’s ability to dynamically adapt to market changes delivers timely, reliable signals, making it a powerful addition to your trading strategy for any market or timeframe.
Sharpe Ratio Forced Selling StrategyThis study introduces the “Sharpe Ratio Forced Selling Strategy”, a quantitative trading model that dynamically manages positions based on the rolling Sharpe Ratio of an asset’s excess returns relative to the risk-free rate. The Sharpe Ratio, first introduced by Sharpe (1966), remains a cornerstone in risk-adjusted performance measurement, capturing the trade-off between return and volatility. In this strategy, entries are triggered when the Sharpe Ratio falls below a specified low threshold (indicating excessive pessimism), and exits occur either when the Sharpe Ratio surpasses a high threshold (indicating optimism or mean reversion) or when a maximum holding period is reached.
The underlying economic intuition stems from institutional behavior. Institutional investors, such as pension funds and mutual funds, are often subject to risk management mandates and performance benchmarking, requiring them to reduce exposure to assets that exhibit deteriorating risk-adjusted returns over rolling periods (Greenwood and Scharfstein, 2013). When risk-adjusted performance improves, institutions may rebalance or liquidate positions to meet regulatory requirements or internal mandates, a behavior that can be proxied effectively through a rising Sharpe Ratio.
By systematically monitoring the Sharpe Ratio, the strategy anticipates when “forced selling” pressure is likely to abate, allowing for opportunistic entries into assets priced below fundamental value. Exits are equally mechanized, either triggered by Sharpe Ratio improvements or by a strict time-based constraint, acknowledging that institutional rebalancing and window-dressing activities are often time-bound (Coval and Stafford, 2007).
The Sharpe Ratio is particularly suitable for this framework due to its ability to standardize excess returns per unit of risk, ensuring comparability across timeframes and asset classes (Sharpe, 1994). Furthermore, adjusting returns by a dynamically updating short-term risk-free rate (e.g., US 3-Month T-Bills from FRED) ensures that macroeconomic conditions, such as shifting interest rates, are accurately incorporated into the risk assessment.
While the Sharpe Ratio is an efficient and widely recognized measure, the strategy could be enhanced by incorporating alternative or complementary risk metrics:
• Sortino Ratio: Unlike the Sharpe Ratio, the Sortino Ratio penalizes only downside volatility (Sortino and van der Meer, 1991). This would refine entries and exits to distinguish between “good” and “bad” volatility.
• Maximum Drawdown Constraints: Integrating a moving window maximum drawdown filter could prevent entries during persistent downtrends not captured by volatility alone.
• Conditional Value at Risk (CVaR): A measure of expected shortfall beyond the Value at Risk, CVaR could further constrain entry conditions by accounting for tail risk in extreme environments (Rockafellar and Uryasev, 2000).
• Dynamic Thresholds: Instead of static Sharpe thresholds, one could implement dynamic bands based on the historical distribution of the Sharpe Ratio, adjusting for volatility clustering effects (Cont, 2001).
Each of these risk parameters could be incorporated into the current script as additional input controls, further tailoring the model to different market regimes or investor risk appetites.
References
• Cont, R. (2001) ‘Empirical properties of asset returns: stylized facts and statistical issues’, Quantitative Finance, 1(2), pp. 223-236.
• Coval, J.D. and Stafford, E. (2007) ‘Asset Fire Sales (and Purchases) in Equity Markets’, Journal of Financial Economics, 86(2), pp. 479-512.
• Greenwood, R. and Scharfstein, D. (2013) ‘The Growth of Finance’, Journal of Economic Perspectives, 27(2), pp. 3-28.
• Rockafellar, R.T. and Uryasev, S. (2000) ‘Optimization of Conditional Value-at-Risk’, Journal of Risk, 2(3), pp. 21-41.
• Sharpe, W.F. (1966) ‘Mutual Fund Performance’, Journal of Business, 39(1), pp. 119-138.
• Sharpe, W.F. (1994) ‘The Sharpe Ratio’, Journal of Portfolio Management, 21(1), pp. 49-58.
• Sortino, F.A. and van der Meer, R. (1991) ‘Downside Risk’, Journal of Portfolio Management, 17(4), pp. 27-31.