Liquidity Location Detector [BigBeluga]
This indicator helps traders identify potential liquidity zones by detecting significant volume levels at key highs and lows. By using color intensity and scoring numbers, it visually highlights areas where liquidity concentration may be highest while incorporating trend analysis through EMAs.
🔵Key Features:
Liquidity Zone Detection: Automatically detects and marks areas where significant volume has accumulated at swing highs and lows.
Dynamic Box Plotting: Draws liquidity boxes at key highs and lows, updating based on market conditions.
Volume Strength Scaling: Uses a scoring system to rank liquidity zones, helping traders identify the strongest areas.
Color Intensity for Volume Strength: More transperent color indicate less liquidity, while less transperent represent stronger volume concentrations.
Customizable Display: Users can adjust the number of displayed liquidity zones and modify colors to suit their trading style.
Real-Time Liquidity Adaptation: As price interacts with liquidity zones, the indicator updates dynamically to reflect changing market conditions.
Auto-Stopping Liquidity Zones: Liquidity boxes automatically stop extending to the right once price crosses them, preventing outdated zones from interfering with live market action.
Trend Analysis with EMAs: Includes two optional EMAs (fast and slow) to help traders analyze market trends. Users can enable or disable these EMAs in the settings and use crossover signals for trend confirmation.
🔵Usage:
Identify Key Liquidity Areas: Use color intensity and transparency levels to determine high-impact liquidity zones.
Support & Resistance Confirmation: Liquidity zones can act as potential support and resistance levels, enhancing trade decision-making.
Market Structure Analysis: Observe how price interacts with liquidity to anticipate breakout or reversal points.
Scalping & Swing Trading: Works for both short-term and long-term traders looking for liquidity-based trade setups.
Liquidation Map Insight: A liquidity map highlights areas where large amounts of leveraged positions (both long and short) are likely to get liquidated. Since many traders use leverage, sharp price movements can trigger a cascade of liquidations, leading to rapid price surges or drops. Monitoring these liquidity zones and trends helps traders anticipate where price might react strongly.
Liquidity Location Detector is an essential tool for traders seeking to map out potential liquidity zones, providing deeper insights into market structure and trading volume dynamics.
Indikator dan strategi
VWAP (Enhanced)Structured VWAP Enhanced
A dynamic, multi-functional VWAP indicator designed to help traders visualize key support and resistance levels during the trading session. This indicator computes the Volume Weighted Average Price (VWAP) along with two structured bands derived from customizable multipliers based on either standard deviation or percentage. In addition, it offers the following features:
Dual Bands: Displays two bands (Band #1 and Band #2) that adapt to market volatility, each with its own customizable multiplier.
Dynamic Midlines: Plots both the original midlines (the center of each band) and enhanced midlines between the VWAP and each band edge for clearer visual cues.
Fixed Offset Bands: Includes offset lines set at a fixed 0.25% above and below the VWAP and each band level to help highlight near-term price targets.
Custom VWAP Anchoring: Supports various anchoring periods (Session, Week, Month, etc.) and special events (Earnings, Dividends, Splits) to reset VWAP calculations, making it adaptable to different trading styles.
Visual Customization: Easily toggle the display of each component (bands, midlines, enhanced midlines, and offset lines) to suit your analysis needs.
Whether you are an intraday trader or a longer-term market participant, Structured VWAP Enhanced provides a robust framework to identify price imbalances and potential turning points throughout your trading day.
Add this indicator to your chart for a comprehensive view of VWAP dynamics and structured market levels.
Uwen FX: UWEN StrategyThis Pine Script defines a trading indicator called "Uwen FX: UWEN Strategy" Where ideas coming from Arab Syaukani and modified by Fiki Hafana. It combines a CCI-based T3 Smoothed Indicator with a MACD overlay. Here's a breakdown of what it does:
Key Components of the Script:
1. CCI (Commodity Channel Index) with T3 Smoothing
Uses a T3 smoothing algorithm on the CCI to generate a smoother momentum signal. The smoothing formula is applied iteratively using weighted averages. The final result (xccir) is plotted as a histogram, colored green for bullish signals and red for bearish signals.
2. MACD (Moving Average Convergence Divergence)
The MACD is scaled to match the range of the smoothed CCI for better visualization. Signal Line and MACD Line are plotted if showMACD is enabled. The normalization ensures that MACD values align with the CCI-based indicator.
3. Bar Coloring for Trend Indication
Green bars indicate a positive trend (pos = 1).
Red bars indicate a negative trend (pos = -1).
Blue bars appear when the trend is neutral.
How It Can Be Used:
Buy Signal: When the xccir (smoothed CCI) turns green, indicating bullish momentum.
Sell Signal: When xccir turns red, indicating bearish momentum.
MACD Confirmation: Helps confirm the trend direction by aligning with xccir.
I will add more interesting features if this indicator seems profitable
CCI with Signals & Divergence [AIBitcoinTrend]👽 CCI with Signals & Divergence (AIBitcoinTrend)
The Hilbert Adaptive CCI with Signals & Divergence takes the traditional Commodity Channel Index (CCI) to the next level by dynamically adjusting its calculation period based on real-time market cycles using Hilbert Transform Cycle Detection. This makes it far superior to standard CCI, as it adapts to fast-moving trends and slow consolidations, filtering noise and improving signal accuracy.
Additionally, the indicator includes real-time divergence detection and an ATR-based trailing stop system, helping traders identify potential reversals and manage risk effectively.
👽 What Makes the Hilbert Adaptive CCI Unique?
Unlike the traditional CCI, which uses a fixed-length lookback period, this version automatically adjusts its lookback period using Hilbert Transform to detect the dominant cycle in the market.
✅ Hilbert Transform Adaptive Lookback – Dynamically detects cycle length to adjust CCI sensitivity.
✅ Real-Time Divergence Detection – Instantly identifies bullish and bearish divergences for early reversal signals.
✅ Implement Crossover/Crossunder signals tied to ATR-based trailing stops for risk management
👽 The Math Behind the Indicator
👾 Hilbert Transform Cycle Detection
The Hilbert Transform estimates the dominant market cycle length based on the frequency of price oscillations. It is computed using the in-phase and quadrature components of the price series:
tp = (high + low + close) / 3
smooth = (tp + 2 * tp + 2 * tp + tp ) / 6
detrender = smooth - smooth
quadrature = detrender - detrender
inPhase = detrender + quadrature
outPhase = quadrature - inPhase
instPeriod = 0.0
deltaPhase = math.abs(inPhase - inPhase ) + math.abs(outPhase - outPhase )
instPeriod := nz(3.25 / deltaPhase, instPeriod )
dominantCycle = int(math.min(math.max(instPeriod, cciMinPeriod), 500))
Where:
In-Phase & Out-Phase Components are derived from a detrended version of the price series.
Instantaneous Frequency measures the rate of cycle change, allowing the CCI period to adjust dynamically.
The result is bounded within a user-defined min/max range, ensuring stability.
👽 How Traders Can Use This Indicator
👾 Divergence Trading Strategy
Bullish Divergence Setup:
Price makes a lower low, while CCI forms a higher low.
Buy signal is confirmed when CCI shows upward momentum.
Bearish Divergence Setup:
Price makes a higher high, while CCI forms a lower high.
Sell signal is confirmed when CCI shows downward momentum.
👾 Trailing Stop & Signal-Based Trading
Bullish Setup:
✅ CCI crosses above -100 → Buy signal.
✅ A bullish trailing stop is placed at Low - (ATR × Multiplier).
✅ Exit if the price crosses below the stop.
Bearish Setup:
✅ CCI crosses below 100 → Sell signal.
✅ A bearish trailing stop is placed at High + (ATR × Multiplier).
✅ Exit if the price crosses above the stop.
👽 Why It’s Useful for Traders
Hilbert Adaptive Period Calculation – No more fixed-length periods; the indicator dynamically adapts to market conditions.
Real-Time Divergence Alerts – Helps traders anticipate market reversals before they occur.
ATR-Based Risk Management – Stops automatically adjust based on volatility.
Works Across Multiple Markets & Timeframes – Ideal for stocks, forex, crypto, and futures.
👽 Indicator Settings
Min & Max CCI Period – Defines the adaptive range for Hilbert-based lookback.
Smoothing Factor – Controls the degree of smoothing applied to CCI.
Enable Divergence Analysis – Toggles real-time divergence detection.
Lookback Period – Defines the number of bars for detecting pivot points.
Enable Crosses Signals – Turns on CCI crossover-based trade signals.
ATR Multiplier – Adjusts trailing stop sensitivity.
Disclaimer: This indicator is designed for educational purposes and does not constitute financial advice. Please consult a qualified financial advisor before making investment decisions.
BTC-USDT Liquidity Trend [Ajit Pandit]his script helps traders visualize trend direction and identify liquidity zones where price might react due to past pivot levels. The color-coded candles and extended pivot lines make it easier to spot support/resistance levels and potential breakout points.
Key Features:
1. Trend Detection Using EMA
Uses two EMA calculations to determine the trend:
emaValue: Standard EMA based on length1
correction: Adjusted price movement relative to EMA
Trend: Another EMA of the corrected value
Determines bullish (signalUp) and bearish (signalDn) signals when Trend crosses emaValue.
2. Candlestick Coloring Based on Trend
Candlesticks are colored:
Uptrend → Blue (up color)
Downtrend → Pink (dn color)
Neutral → No color
3. Liquidity Zones (Pivot Highs & Lows)
Identifies pivot highs and lows using a customizable pivot length.
Draws liquidity lines:
High pivot lines (Blue, adjustable width)
Low pivot lines (Pink, adjustable width)
Extends lines indefinitely until price breaks above/below the level.
Removes broken pivot levels dynamically.
Median Volume Weighted DeviationMVWD (Median Volume Weighted Deviation)
The Median Volume-Weighted Deviation is a technical trend following indicator that overlays dynamic bands on the price chart, centered around a Volume Weighted Average Price (VWAP). By incorporating volume-weighted standard deviation and its median, it identifies potential overbought and oversold conditions, generating buy and sell signals based on price interactions with the bands. The fill color between the bands visually reflects the current signal, enhancing market sentiment analysis.
How it Works
VWAP Calculation: Computes the Volume-Weighted Average Price over a specific lookback period (n), emphasizing price levels with higher volume.
Volume Weighted Standard Deviation: Measures price dispersion around the VWAP, weighted by volume, over the same period.
Median Standard Deviation: Applies a median filter over (m) periods to smooth the stand deviation, reducing noise in volatility estimates.
Bands: Constructs upper and lower bands by adding and subtracting a multiplier (k) times the median standard deviation from the VWAP
Signals:
Buy Signal: Triggers when the closing price crosses above the upper band.
Sell Signal: Triggers when the closing price crosses below the lower band.
Inputs
Lookback (n): Number of periods for the VWAP and standard deviation calculations. Default is set to 14.
Median Standard Deviation (m): Periods for the median standard deviation. Default is set to 2.
Standard Deviation Multiplier (k): Multiplier to adjust band width. Default is set to 1.7 with a step of 0.1.
Customization
Increase the Lookback (n) for a smoother VWAP and broader perspective, or decrease the value for higher sensitivity.
Adjust Median Standard Deviation (m) to control the smoothness of the standard deviation filter.
Modify the multiplier (k) to widen or narrow the bands based on the market volatility preferences.
SuperTrend'ed Fibos - DolphinTradeBot
Overwiev
This indicator aims to assist in taking trades at relatively low price levels in the direction of the main trend and capturing profits at potential reversal points.
What is it for !
The indicator simply performs its calculations by using two multitimeframe SuperTrend indicators, Fibonacci levels, and pivot points. The reason for using MTF in both SuperTrend indicators is that the lengths of the levels are relatively limited, so it allows for a more detailed analysis on lower timeframes.
How is it work
When both the HTF SuperTrend and the main SuperTrend indicators are in the same direction,
For Uptrend:
Once the main SuperTrend line is violated it barcolor and draws the basic Fibonacci levels between the pivot high point and the SuperTrend line within the trend region . The TakeProfit level is drawn at a distance multiplied by the TakeProfit Multiplier, between the lowest and highest points of the level. When the main trend reverses or the TakeProfit level is violated, it stops drawing.
For Downtrend:
Once the main SuperTrend line is violated it barcolor and draws the basic Fibonacci levels between the pivot low point and the SuperTrend line within the trend region . The TakeProfit level is drawn at a distance multiplied by the TakeProfit Multiplier, between the lowest and highest points of the level. When the main trend reverses or the TakeProfit level is violated, it stops drawing.
How to Use:
To prevent the line thickness from being displayed on the screen, the indicator shows the direction of the HTF SuperTrend indicator by coloring the background. In the settings section, you can adjust:
TakeProfit Multiplier
Fibonacci line colors
HTF SuperTrend activation
HTF SuperTrend settings
Main SuperTrend settings
Fibonacci levels
Custom alert activation
Custom alert level
Alarm Section
By default, the indicator gives an alert when a level is formed or violated. Additionally, if you want to set an alert for a specific level, you can activate the Custom Alert option and choose your desired level.
Supertrend Trading✨ Supertrend Trading by Mars ✨
This indicator is an extension to the popular Supertrend indicator, adding trading information (long only) and a built-in backtest feature that helps you find the best stocks to trade using the Supertrend strategy.
Core Features
Clear entry signals (🟢) when trend turns bullish (with alert)
Clear exit signals (🔴) when trend reverses or stop loss is hit (with alert)
Built-in statistics table showing win rate, profit factor, and more
Risk:Reward visualization with target levels
Stop loss guidance with distance percentage
Active trade tracking with current P/L
How It Works
This indicator uses standard Supertrend calculation (ATR-based) to determine trend direction, but adds entry and exit rules with visual markers:
Entry Rules:
Enter long when Supertrend flips from bearish to bullish (red to green)
Entry marked with green circle (🟢)
Exit Rules:
Exit when Supertrend flips from bullish to bearish
Exit when price touches/crosses below the Supertrend line during uptrend
Exit when price gaps down below stop loss level
Exit marked with red circle (🔴)
Finding The Best Stocks
The built-in statistics table helps identify which stocks work best with the Supertrend strategy:
Look for win rates above 50%
Target profit factors above 2.0
Check for reasonable drawdowns (under 15-20%)
Review the automatic performance rating (Strong ✨, Good ✅, Mixed 📋, Poor ⚠️)
The ATR multiple used will significantly impact the trades performance, try 1.5, 2 or 3.
Risk Management Tools
The indicator provides multiple risk management features:
Stop loss line with percentage distance
R-multiple levels to visualize potential reward (1R, 2R, 3R)
Maximum drawdown tracking
Current position status with P/L percentage
Statistics Table
The backtest results display key metrics:
Total trades and win rate
Average win/loss percentages
Profit factor (total gains divided by total losses)
Maximum drawdown during trades
Average days held per trade
Usage Tips
Apply to multiple timeframes (daily/weekly recommended)
Compare backtest results across different stocks/instruments
Use R-multiple levels to set realistic profit targets
The statistics table helps identify which market environments work best
Default settings (10, 1.5) should work well for daily charts
This indicator provides a complete trading system based on Supertrend - from entry to exit, with performance tracking. The backtest feature lets you quickly test different stocks to find those that respond best to Supertrend strategy.
I welcome your feedback and suggestions!
Heikin-Ashi Reversals with Region & DotsIf you want to use Heiken Ashi candles as a way to screen for bullish and bearish reversal.
Green background is stay long and strong. Red background = potential top or bearish continuation.
Yellow dots show strong red heiken ashi candles with small upside wicks. The next candle determines whether it should be green or red. If next heiken ashi candle closes above the current candle = green, bull trend still in line. If next heiken ashi candle closes below, then time to sell
Sniper Trade Pro (ES 15-Min) - Topstep Optimized🔹 Overview
Sniper Trade Pro is an advanced algorithmic trading strategy designed specifically for E-mini S&P 500 (ES) Futures on the 15-minute timeframe. This strategy is optimized for Topstep 50K evaluations, incorporating strict risk management to comply with their max $1,000 daily loss limit while maintaining a high probability of success.
It uses a multi-confirmation approach, integrating:
✅ Money Flow Divergence (MFD) → To track liquidity imbalances and institutional accumulation/distribution.
✅ Trend Confirmation (EMA + VWAP) → To identify strong trend direction and avoid choppy markets.
✅ ADX Strength Filter → To ensure entries only occur in trending conditions, avoiding weak setups.
✅ Break-Even & Dynamic Stop-Losses → To reduce drawdowns and protect profits dynamically.
This script automatically generates Buy and Sell signals and provides built-in risk management for automated trading execution through TradingView Webhooks.
🔹 How Does This Strategy Work?
📌 1. Trend Confirmation (EMA + VWAP)
The strategy uses:
✔ 9-EMA & 21-EMA: Fast-moving averages to detect short-term momentum.
✔ VWAP (Volume-Weighted Average Price): Ensures trades align with institutional volume flow.
How it works:
Bullish Condition: 9-EMA above 21-EMA AND price above VWAP → Confirms buy trend.
Bearish Condition: 9-EMA below 21-EMA AND price below VWAP → Confirms sell trend.
📌 2. Liquidity & Money Flow Divergence (MFD)
This indicator measures liquidity shifts by tracking momentum changes in price and volume.
✔ MFD Calculation:
Uses Exponential Moving Average (EMA) of Momentum (MOM) to detect changes in buying/selling pressure.
If MFD is above its moving average, it signals liquidity inflows → bullish strength.
If MFD is below its moving average, it signals liquidity outflows → bearish weakness.
Why is this important?
Detects when Smart Money is accumulating or distributing before major moves.
Filters out false breakouts by confirming momentum strength before entry.
📌 3. Trade Entry Triggers (Candlestick Patterns & ADX Filter)
To avoid random entries, the strategy waits for specific candlestick confirmations with ADX trend strength:
✔ Bullish Entry (Buy Signal) → Requires:
Bullish Engulfing Candle (Reversal confirmation)
ADX > 20 (Ensures strong trending conditions)
MFD above its moving average (Liquidity inflows)
9-EMA > 21-EMA & price above VWAP (Trend confirmation)
✔ Bearish Entry (Sell Signal) → Requires:
Bearish Engulfing Candle (Reversal confirmation)
ADX > 20 (Ensures strong trending conditions)
MFD below its moving average (Liquidity outflows)
9-EMA < 21-EMA & price below VWAP (Trend confirmation)
📌 4. Risk Management & Profit Protection
This strategy is built with strict risk management to maintain low drawdowns and maximize profits:
✔ Dynamic Position Sizing → Automatically adjusts trade size to risk a fixed $400 per trade.
✔ Adaptive Stop-Losses → Uses ATR-based stop-loss (0.8x ATR) to adapt to market volatility.
✔ Take-Profit Targets → Fixed at 2x ATR for a Risk:Reward ratio of 2:1.
✔ Break-Even Protection → Moves stop-loss to entry once price moves 1x ATR in profit, locking in gains.
✔ Max Daily Loss Limit (-$1,000) → Stops trading if total losses exceed $1,000, complying with Topstep rules.
[GYTS] Ultimate Smoother (3-poles + 2 poles)Ultimate Smoother (3-pole)
🌸 Part of GoemonYae Trading System (GYTS) 🌸
🌸 --------- INTRODUCTION --------- 🌸
💮 Release of 3-Pole Ultimate Smoother
This indicator presents a new 3-pole version of John Ehlers' Ultimate Smoother (2024) . This results in an unconventional filter that exhibits effectively zero lag in practical trading applications, regardless of the set period. By using a 2-pole high-pass filter in its design, it responds to price direction changes on the same bar, while still allowing the user to control smoothness.
💮 What is the Ultimate Smoother?
The original Ultimate Smoother is a revolutionary filter designed by John Ehlers (2024) that smooths price data with virtually zero lag in the pass band. While conventional filters always introduce lag when removing market noise, the Ultimate Smoother maintains phase alignment at low frequencies while still providing excellent noise reduction.
💮 Mathematical Foundation
The Ultimate Smoother achieves its remarkable properties through a clever mathematical approach:
1. Instead of directly designing a low-pass filter (like traditional moving averages), it subtracts a high-pass filter from an all-pass filter (the original input data).
2. At very low frequencies, the high-pass filter contributes almost nothing, so the output closely matches the input in both amplitude and phase.
3. At higher frequencies, the high-pass filter's response increasingly matches the input data, resulting in cancellation through subtraction.
The 3-pole version extends this principle by using a higher-order high-pass filter, requiring additional coefficients and handling more terms in the numerator of the transfer function.
🌸 --------- USAGE GUIDE --------- 🌸
💮 Period Parameter Behaviour
The period parameter in the 3-pole Ultimate Smoother works somewhat counterintuitively:
- Longer periods: Result in less smooth, but more responsive following of the price. The filter output more closely tracks the input data.
- Shorter periods: Produce smoother output but may exhibit overshooting (extrapolating price movement) for larger movements.
This is different from most filters where longer periods typically produce smoother outputs with more lag.
💮 When to Choose 3-Pole vs. 2-Pole
- Choose the 3-pole version when you need zero-lag but want to control the smoothness
- Choose the 2-pole version when you are okay with some lag with the benefit of more smoothness.
🌸 --------- ACKNOWLEDGEMENTS --------- 🌸
This indicator builds upon the pioneering work of John Ehlers, particularly from his article April 2024 edition of TASC's Traders' Tips . The original version is published on TradingView by @PineCodersTASC .
This 3-pole extension was developed by @GoemonYae . Feedback is highly appreciated!
UT Bot Alerts – Time Filtered with ExitsThis indicator combines several technical approaches to generate precise entry and exit signals, while incorporating time filters that ensure signals are sent only during desired time windows and with defined cooldown periods. It is based on the original idea by QuantNomad.
Main Components:
ATR-based Trailing Stop:
Using the Average True Range (ATR) and an adjustable multiplier ("Key Value"), a dynamic trailing stop is calculated that adapts to the current price. This trailing stop forms the basis for the signal generation.
EMA-based Entry Signals:
A very short exponential moving average (EMA, period 1) is used in combination with the trailing stop to identify clear buy (long) and sell (short) signals via crossovers. An additional buffer zone helps reduce false signals.
Persistent Trade State:
The current state (long, short, or neutral) is maintained so that the system remains in the trend until a new signal is generated.
Linear Regression as Reference:
A linear regression line computed over a defined period serves as a reference for determining exit levels.
Exit Signals with Delay:
Exit signals are generated when the price deviates from the linear regression line by a defined percentage (Exit Signal Deviation) and the condition persists for at least a specified number of bars (Exit Signal Delay). Only one exit signal is issued per trade to avoid excessive exits.
Time Filters and Cooldown:
Session Filter: A user-defined session (e.g., "2200-0500") can disable signals during specified periods.
Cooldown Period: After a signal is triggered, a cooldown phase (in minutes) can be set during which no new signals are sent.
Visual Display and Alerts:
Entry Signals: Buy and sell signals are displayed as labels (green for long, red for short).
Exit Signals: Exit signals appear as triangles, with the exit long signal text displayed in white.
Reference Lines:
The upper exit level (Exit Short Level) is drawn as a solid line in turquoise (color.aqua).
The lower exit level (Exit Long Level) is drawn as a solid line in yellow.
Additionally, the ATR trailing stop and the linear regression line are clearly plotted on the chart.
Alerts can be configured for all signal types.
In Summary:
The indicator delivers precise entry signals based on an ATR trailing stop and a short EMA, supplemented by dynamic exit levels determined via linear regression. With integrated time filters (session and cooldown) and a flexible exit mechanism, this indicator offers controlled trade management—ideal for traders who wish to receive signals only during desired time periods.
Original Author: QuantNomad
FinFluential Global M2 Money Supply // Days Offset =The "Global M2 Money Supply" indicator calculates and visualizes the combined M2 money supply from multiple countries and regions worldwide, expressed in trillions of USD.
M2 is a measure of the money supply that includes cash, checking deposits, and easily convertible near-money assets. This indicator aggregates daily M2 data from various economies, converts them into a common USD base using forex exchange rates, and plots the total as a single line on the chart.
It is designed as an overlay indicator aligned to the right scale, making it ideal for comparing global money supply trends with price action or other market data.
Key Features
Customizable Time Offset: Users can adjust the number of days to shift the M2 data forward or backward (from -1000 to +1000 days) via the indicator settings. This allows for alignment with historical events or forward-looking analysis.
Global Coverage Includes:
Eurozone: Eurozone M2 (converted via EUR/USD)
North America: United States, Canada
Non-EU Europe: Switzerland, United Kingdom, Finland, Russia
Pacific: New Zealand
Asia: China, Taiwan, Hong Kong, India, Japan, Philippines, Singapore
Latin America: Brazil, Colombia, Mexico
Middle East: United Arab Emirates, Turkey
Africa: South Africa
CBA Block Tops/Bottoms w/TableHow It Works
Separate Block Sizes & Pre-Calculations: • Two inputs let you set the TOP block size and the BOTTOM block size independently (default both 5). • The script pre-calculates the highest high over the TOP block and the lowest low over the BOTTOM block using ta.highest and ta.lowest.
Horizontal Line Customization: • Users can toggle each horizontal line on or off (via showTopLine and showBottomLine). • Colors, widths, and line styles (Solid, Dotted, or Dashed) for TOP and BOTTOM lines are customizable with separate inputs. • When a block ends, if the corresponding line is enabled, a horizontal line is drawn using the user‑selected parameters.
Array Storage and Averaging: • The script appends each block’s TOP value to the tops array and each BOTTOM value to the bottoms array, keeping their sizes to a maximum defined by the lookback (default 25). • A helper function, f_avg(), safely computes the average of the array values.
Table Display: • A table is created with three columns: an index column (with fixed labels “Active”, “Prev”, “Prev-2”, “Prev-3”, “Prev-4”, “Avg”), a TOP column, and a BOTTOM column. • The first five rows display the most recent TOP and BOTTOM signals (“Active” being the most recent), and the final row shows the average values.
This code gives you full control over both the TOP and BOTTOM block calculations and the appearance of their horizontal lines, all while presenting the data in an informative table.
Time Box Breakout IndicatorPlots Boxes with breakout signals on whatever timeframe the user selects.
Allows for users to see higher timeframe ranges on lower timeframes.
Useful for scalpers taking advantage of momentum, combined with support and resistance on higher timeframes.
Aids in visualizing risk, ranges and trends.
Daily Standard Deviation (fadi)The Daily Standard Deviation indicator uses standard deviation to map out daily price movements. Standard deviation measures how much prices stray from their average—small values mean steady trends, large ones mean wild swings. Drawing from up to 20 years of data, it plots key levels using customizable Fibonacci lines tied to that standard deviation, giving traders a snapshot of typical price behavior.
These levels align with a bell curve: about 68% of price moves stay within 1 standard deviation, 95% within roughly 2, and 99.7% within roughly 3. When prices break past the 1 StDev line, they’re outliers—only 32% of moves go that far. Prices often snap back to these lines or the average, though the reversal might not happen the same day.
How Traders Use It
If prices surge past the 1 StDev line, traders might wait for momentum to fade, then trade the pullback to that line or the average, setting a target and stop.
If prices dip below, they might buy, anticipating a bounce—sometimes a day or two later. It’s a tool to spot overstretched prices likely to revert and/or measure the odds of continuation.
Settings
Open Hour: Sets the trading day’s start (default: 18:00 EST).
Show Levels for the Last X Days: Displays levels for the specified number of days.
Based on X Period: Number of days to calculate standard deviation (e.g., 20 years ≈ 5,040 days). Larger periods smooth out daily level changes.
Mirror Levels on the Other Side: Plots symmetric positive and negative levels around the average.
Fibonacci Levels Settings: Defines which levels and line styles to show. With mirroring, negative values aren’t needed.
Overrides: Lets advanced users input custom standard deviations for specific tickers (e.g., NQ1! at 0.01296).
Wick Order IndicatorThe script tells you what formed first in the wick, the high or the low.
If the high formed first, the upper wick would be labeled 1 and lower wick would be labeled 2.
If the low formed first, the lower wick would be labeled 1 and higher wick would be labeled 2.
If there's only one wick or no wicks, there would be no labels.
Normalised Price Crossover - MACD but TickersEver noticed two different tickers are correlated yet have different lags? Ever find one ticker moves first and when the other finally goes to catch up, the first one has already reversed?
So I thought to myself, would be wicked if I took the faster one and made it into a 'Signal Line' and the slow one and made it into a 'Slow Line' almost like a MACD if you will.
So that's what I did, I took the price charts of the tickers and I normalised the price data so they could actually cross, plotted it and sat back to see it generate signals, lo and behold!
Pretty neat, though I'd advise to use spreads and such for the different tickers to really feel the power of the indicator, works well when you use formulas that model actual mechanisms instead of arbitrary price data of different assets as correlation =/= causation.
Enjoy.
TickerLibLibrary "TickerLib"
Ticker Library
exists(tickerId)
Test if a tickerId exists
Parameters:
tickerId (string)
Returns: (bool)
notExist(tickerId)
Test if a tickerId do not exists
Parameters:
tickerId (string)
Returns: (bool)
getExchange(tickerId)
Pass a tickerId return the exchange
Parameters:
tickerId (string)
Returns: (string) exchange
isPerp(tickerId)
Test if tickerId is a perps pair
Parameters:
tickerId (string)
Returns: (bool)
isNotPerp(tickerId)
Test if tickerId is not a perps pair
Parameters:
tickerId (string)
Returns: (bool)
getPair(tickerId)
Pass a tickerId return the pair without exchange
Parameters:
tickerId (string)
Returns: (string) the pair
getSpotPair(tickerId)
Pass a tickerId return the pair without exchange and perps
Parameters:
tickerId (string)
Returns: (string) the pair
OPEX & VIX Expiry Markers (Past, Present, Future)Expiry Date Indicator for Options & Index Traders
Track Key Expiration Dates Automatically
For traders focused on options, indices, and expiration-based strategies, staying aware of key expiration dates is essential. This TradingView indicator automatically plots OPEX, VIX Expiry, and Quarterly Expirations on your charts—helping you plan trades more effectively without manual tracking.
Features:
✔ OPEX Expiration Markers – Highlights the third Friday of each month, when equity and index options expire.
✔ VIX Expiration Tracking – Marks Wednesday VIX expirations, useful for volatility-based trades.
✔ Quarterly Expiration Highlights – Identifies major market expiration cycles for better trade management.
✔ Live Countdown to Next OPEX – Displays how many days remain until the next expiration.
✔ Works on Any Timeframe – Past, present, and future expiration dates update dynamically.
✔ Customizable Settings – Enable or disable specific features based on your trading style.
Ideal for Traders Who Use:
📈 SPX / SPY / NDX / VIX Options Strategies
📅 Iron Condors, Credit Spreads, and Expiration-Based Trades
This tool helps traders stay ahead of expiration cycles, ensuring they never miss an important date. Simple, effective, and built for seamless integration into your trading workflow.
This keeps it professional and to the point without overhyping it. Let me know if you'd like any further refinements! 🚀
Hierarchical + K-Means Clustering Strategy===== USER GUIDE =====
Hierarchical + K-Means Clustering Strategy
OVERVIEW:
This strategy combines hierarchical clustering and K-means algorithms to analyze market volatility patterns
and generate trading signals. It uses a modified SuperTrend indicator with ATR-based volatility clustering
to identify potential trend changes and market conditions.
KEY FEATURES:
- Advanced volatility analysis using hierarchical clustering and K-means algorithms
- Modified SuperTrend indicator for trend identification
- Multiple filter options including moving average and ADX trend strength
- Volume-based exit mechanism to protect profits
- Customizable appearance settings
SETTINGS EXPLANATION:
1. SuperTrend Settings:
- ATR Length: Period for ATR calculation (default: 11)
- SuperTrend Factor: Multiplier for ATR to determine trend bands (default: 3)
2. Hierarchical Clustering Settings:
- Training Data Length: Number of bars used for clustering analysis (default: 200)
3. Appearance Settings:
- Transparency 1 & 2: Control the opacity of trend lines and fills
- Bullish/Bearish Color: Colors for uptrend and downtrend visualization
4. Time Settings:
- Start Year/Month: Define when the strategy should start executing trades
5. Filter Settings:
- Moving Average Filter: Uses SMA to filter trades (only enter when price is on correct side of MA)
- Trend Strength Filter: Uses ADX to ensure trades are taken in strong trend conditions
6. Volume Stop Loss Settings:
- Volume Ratio Threshold: Controls sensitivity of volume-based exits
- Monitoring Delay Bars: Number of bars to wait before monitoring volume for exit signals
HOW TO USE:
1. Apply the indicator to your chart
2. Adjust settings according to your trading preferences and timeframe
3. Long signals appear when price crosses above the SuperTrend line (▲k marker)
4. Short signals appear when price crosses below the SuperTrend line (▼k marker)
5. The strategy automatically manages exits based on volume balance conditions
INTERPRETATION:
- Green line/area: Bullish trend - consider long positions
- Red line/area: Bearish trend - consider short positions
- Yellow line: Moving average for additional trend confirmation
- Volume balance exits occur when buying/selling pressure equalizes
RECOMMENDED TIMEFRAMES:
This strategy works best on 1H, 4H, and daily charts for most markets.
For highly volatile assets, shorter timeframes may also be effective.
RISK MANAGEMENT:
Always use proper position sizing and consider setting additional stop losses
beyond the strategy's built-in exit mechanisms.
===== END OF USER GUIDE =====
Rolling Cumulative Volume DeltaRolling CVD is your market’s lie detector no resets, just raw volume truth! checks: close > open? Add volume (buyers flexing). Close < open? Subtract it (sellers sulking). Ties = zero. It rolls forever, plotting the vibe.
Use it when price fakes you out rising but CVD dips? Trouble. Dropping but CVD climbs? Sneaky strength. Perfect for scalpers sniffing momentum, swing traders riding waves, or that volume-obsessed buddy who overanalyses everything!
Shines best on timeframes under 15m to catch those sneaky price fibs in action!
Don’t bet your lunch money on Rolling CVD alone, you wild child! Pair it with your fave indicators RSI, moving averages, tea leaves, whatever because confluence is king. It’s a sly hint, not a crystal ball, so trade smart or the market’ll spank ya!
Quarterly Theory ICT 02 [TradingFinder] True Open Session 90 Min🔵 Introduction
The Quarterly Theory ICT indicator is an advanced analytical system built on ICT (Inner Circle Trader) concepts and fractal time. It divides time into four quarters (Q1, Q2, Q3, Q4), and is designed based on the consistent repetition of these phases across all trading timeframes (annual, monthly, weekly, daily, and even shorter trading sessions).
Each cycle consists of four distinct phases: the first phase (Q1) is the Accumulation phase, characterized by price consolidation; the second phase (Q2), known as Manipulation or Judas Swing, is marked by initial false movements indicating a potential shift; the third phase (Q3) is Distribution, where price volatility peaks; and the fourth phase (Q4) is Continuation/Reversal, determining whether the previous trend continues or reverses.
🔵 How to Use
The central concept of this strategy is the "True Open," which refers to the actual starting point of each time cycle. The True Open is typically defined at the beginning of the second phase (Q2) of each cycle. Prices trading above or below the True Open serve as a benchmark for predicting the market's potential direction and guiding trading decisions.
The practical application of the Quarterly Theory strategy relies on accurately identifying True Open points across various timeframes.
True Open points are defined as follows :
Yearly Cycle :
Q1: January, February, March
Q2: April, May, June (True Open: April Monthly Open)
Q3: July, August, September
Q4: October, November, December
Monthly Cycle :
Q1: First Monday of the month
Q2: Second Monday of the month (True Open: Daily Candle Open price on the second Monday)
Q3: Third Monday of the month
Q4: Fourth Monday of the month
Weekly Cycle :
Q1: Monday
Q2: Tuesday (True Open: Daily Candle Open Price on Tuesday)
Q3: Wednesday
Q4: Thursday
Daily Cycle :
Q1: 18:00 - 00:00 (Asian session)
Q2: 00:00 - 06:00 (True Open: Start of London Session)
Q3: 06:00 - 12:00 (NY AM)
Q4: 12:00 - 18:00 (NY PM)
90 Min Asian Session :
Q1: 18:00 - 19:30
Q2: 19:30 - 21:00 (True Open at 19:30)
Q3: 21:00 - 22:30
Q4: 22:30 - 00:00
90 Min London Session :
Q1: 00:00 - 01:30
Q2: 01:30 - 03:00 (True Open at 01:30)
Q3: 03:00 - 04:30
Q4: 04:30 - 06:00
90 Min New York AM Session :
Q1: 06:00 - 07:30
Q2: 07:30 - 09:00 (True Open at 07:30)
Q3: 09:00 - 10:30
Q4: 10:30 - 12:00
90 Min New York PM Session :
Q1: 12:00 - 13:30
Q2: 13:30 - 15:00 (True Open at 13:30)
Q3: 15:00 - 16:30
Q4: 16:30 - 18:00
Micro Cycle (22.5-Minute Quarters) : Each 90-minute quarter is further divided into four 22.5-minute sub-segments (Micro Sessions).
True Opens in these sessions are defined as follows :
Asian Micro Session :
True Session Open : 19:30 - 19:52:30
London Micro Session :
T rue Session Open : 01:30 - 01:52:30
New York AM Micro Session :
True Session Open : 07:30 - 07:52:30
New York PM Micro Session :
True Session Open : 13:30 - 13:52:30
By accurately identifying these True Open points across various timeframes, traders can effectively forecast the market direction, analyze price movements in detail, and optimize their trading positions. Prices trading above or below these key levels serve as critical benchmarks for determining market direction and making informed trading decisions.
🔵 Setting
Show True Range : Enable or disable the display of the True Range on the chart, including the option to customize the color.
Extend True Range Line : Choose how to extend the True Range line on the chart, with the following options:
None: No line extension
Right: Extend the line to the right
Left: Extend the line to the left
Both: Extend the line in both directions (left and right)
Show Table : Determines whether the table—which summarizes the phases (Q1 to Q4)—is displayed.
Show More Info : Adds additional details to the table, such as the name of the phase (Accumulation, Manipulation, Distribution, or Continuation/Reversal) or further specifics about each cycle.
🔵 Conclusion
The Quarterly Theory ICT, by dividing time into four distinct quarters (Q1, Q2, Q3, and Q4) and emphasizing the concept of the True Open, provides a structured and repeatable framework for analyzing price action across multiple time frames.
The consistent repetition of phases—Accumulation, Manipulation (Judas Swing), Distribution, and Continuation/Reversal—allows traders to effectively identify recurring price patterns and critical market turning points. Utilizing the True Open as a benchmark, traders can more accurately determine potential directional bias, optimize trade entries and exits, and manage risk effectively.
By incorporating principles of ICT (Inner Circle Trader) and fractal time, this strategy enhances market forecasting accuracy across annual, monthly, weekly, daily, and shorter trading sessions. This systematic approach helps traders gain deeper insight into market structure and confidently execute informed trading decisions.