Reversal Knockout v1.1\ Reversal Knockout v1.1 — User Manual \
Reversal Knockout is a technical indicator designed to detect potential price turning points using a dual approach: a reversal logic with bar coloring and a combined sequence of setups, countdowns, and exhaustion patterns.
\ What does this indicator do?\
\ Colors candles\ based on the relationship between two smoothed moving averages (T3).
\ Identifies overextension conditions\ based on a sequence of 9 consecutive closes aligned with price direction.
\ Confirms exhaustion\ if, after that setup, 13 follow-through conditions (countdown) are met.
\ Highlights special signals called “Knockouts”\ , which represent strong potential reversal scenarios.
\ Candle Coloring\
Candles are automatically colored to make trend and potential reversal points visually easier to interpret:
🔵 Bull Trend: User-defined color (default light blue)
🔴 Bear Trend: User-defined color (default light red)
🟡 Bullish Reversal: When price crosses below the slower average (default yellow)
🟡 Bearish Reversal: When price crosses above the slower average (default yellow)
This logic is based on the relationship between two T3 moving averages (one fast, one slow), calculated with a customizable smoothing factor.
\ Setup and Countdown Logic\
Setups (9):
A bullish setup forms if the price closes below the close from 4 bars earlier for 9 consecutive candles.
A bearish setup forms if the price closes above the close from 4 bars earlier for 9 consecutive candles.
When the ninth close is completed, a green “9” (buy) or purple “9” (sell) is displayed.
Countdowns (13):
After a setup, a follow-through phase begins.
If 13 additional conditions are met (price < low\ for buys or > high\ for sells), a purple “13” is shown, signaling potential exhaustion.
\ Knockout: Explosive Reversal Potential\
The indicator also identifies special reversal patterns called \ Knockout\ .
These signals appear when, in addition to a “9”, the price shows technical excess behavior near key support or resistance zones:
Knockout ▲ (buy): Appears below the candle when a buy signal is detected with specific downside pressure conditions.
Knockout ▼ (sell): Appears above the candle when a sell signal is detected with upside pressure conditions.
These signals stand out as high-probability reversal opportunities.
\ Usage Recommendations\
The indicator is designed to work on any timeframe, but it is recommended to use it alongside market structure and volume analysis.
“Knockout” signals may be used as high-probability trend change alerts, especially after a “13”.
Can be combined with momentum indicators and moving averages for greater effectiveness.
趨勢分析
π Pi-MA Bandπ Pi-MA Band – Parametric Moving Averages with π Scaling
The π Pi-MA Band is a custom moving average indicator that applies the mathematical constant π (3.14159) as a multiplier to traditional moving average lengths, offering a unique perspective on market smoothing and trend detection.
🔍 Core Features:
Three Dynamic MAs: Includes a Fast, Slow, and Long moving average, each with customizable base lengths and types (EMA, SMA, WMA, HMA, RMA, VWMA, DEMA, TEMA).
π-Based Lengths: Each MA length is automatically scaled by π to align with cyclical and fractal market behavior.
Color Adaptive Bands:
The fast/slow band dynamically changes color based on trend direction (green when fast > slow, red when fast < slow).
A secondary fill highlights when both fast and slow MAs are positioned above or below the long-term MA, indicating strong bullish or bearish alignment.
Visual Clarity: Distinct line thickness and color coding for fast, slow, and long MAs make it easy to assess momentum and trend shifts.
Alerts: Built-in alert conditions notify you of key crossover events between the fast and slow MAs.
📈 Use Cases:
Trend Confirmation: Use the alignment of all three MAs to validate bullish or bearish market conditions.
Momentum Shift Detection: Crossover alerts help traders identify emerging trends early.
Customization: Suitable for scalpers, swing traders, and long-term investors due to adjustable lengths and MA types.
Multi-Timeframe Trend Meter [ask2maniish]📊 Multi-Timeframe Trend Meter
A visual trend strength indicator that aggregates trend signals from multiple timeframes using EMA and VWAP, providing a weighted score to help traders gauge market direction and strength.
✅ Summary
This indicator gives a holistic view of the market by:
Combining EMA and VWAP conditions across timeframes.
Weighting larger timeframes more heavily.
Producing a percentage-based trend score.
Providing visual and alert-based feedback for strong trends.
Synapse Trade - Fair Value GapsNot your average FVG indicator. This FVG indicator allowed for overlapping, and invalidated FVGs to remain as the existence of Inversion Fair Value Gaps exists and, in my recent experience, has been incredibly useful finding new levels of support and resistance, even inside a currently FVG, the "invalidated" FVGs can still have an impact on price trend and react to it.
~edit: updated chart to be cleaner and include only the FVG indicator
[TehThomas] - Fair Value GapsThis script is designed to automatically detect and visualize Fair Value Gaps (FVGs) on your chart in a clean, intuitive, and highly responsive way. It’s built with active traders in mind, offering both dynamic updates and customization options that help you stay focused on price action without being distracted by outdated or irrelevant information.
What Are Fair Value Gaps?
Fair Value Gaps are areas on a chart where there’s an inefficiency in price, typically formed when price moves aggressively in one direction, leaving a gap between the wicks of consecutive candles. These gaps represent imbalanced price action where not all buy or sell orders were efficiently matched. As a result, they often become magnet zones where price returns later to "fill" the imbalance before continuing in its intended direction. Many traders use them as points of interest for entries, re-entries, or anticipating reversals and consolidations.
This concept is frequently used in Smart Money and ICT-based trading models, where understanding how price seeks efficiency is crucial to anticipating future moves. When combined with concepts like liquidity, displacement, and market structure, FVGs become powerful tools for technical decision-making.
Script Features & Functionality
1. Live Updating Gaps (Dynamic Shrinking)
One of the core features of this script is its ability to track and dynamically shrink Fair Value Gaps as price trades into them. Instead of leaving a static zone on your chart, the gap will adjust in real-time, reflecting the portion that has been filled. This gives you a much more accurate picture of remaining imbalance and avoids misleading zones.
2. Automatic Cleanup After Fill
Once price fully fills an FVG, the script automatically removes it from the chart. This helps keep your workspace clean and focused only on relevant price zones. There’s no need to manually manage your gaps, everything is handled behind the scenes to reduce clutter and distraction.
3. Static Mode Option
While dynamic updating is the default, some traders may prefer to keep the original size of the gap visible even after partial fills. For that reason, the script includes a toggle to switch from live-updating (shrinking) mode to static mode. In static mode, FVGs stay fixed from the moment they are drawn, giving you a more traditional visual reference point.
4. Multi-Timeframe Support (MTF)
You can now view higher timeframe FVGs, such as those from the 1H or 4H chart, while analyzing lower timeframes like the 5-minute. This allows you to see key imbalances from broader market context without having to flip between charts. FVGs from higher timeframes will be drawn distinctly so you can differentiate them at a glance.
5. Cleaner Visualization
The script is designed with clarity in mind. All drawings are streamlined, and filled gaps are removed to maintain a minimal, distraction-free chart. This makes it easier to combine this tool with other indicators or price-action-based strategies without overloading your workspace.
6. Suitable for All Market Types
This script can be used on any asset that displays candlestick-based price action — including crypto, forex, indices, and stocks. Whether you're scalping low-timeframe setups or swing trading with a higher timeframe bias, FVGs remain a useful concept and this script adapts to your trading style.
Use Case Examples
On a 5-minute chart, display 1-hour FVGs to catch major imbalance zones during intraday trading.
Combine the FVGs with liquidity levels and inducement patterns to build ICT-style trade setups.
Use live-updating gaps to monitor in-progress fills and evaluate whether a zone still holds validity.
Set the script to static mode to perform backtesting or visual replay with historical setups.
Final Notes
Fair Value Gaps are not a standalone trading signal, but when used with market structure, liquidity, displacement, and order flow concepts, they provide high-probability trade locations that align with institutional-style trading models. This script simplifies the visualization of those zones so you can react faster, stay focused on clean setups, and eliminate unnecessary distractions.
Whether you’re trading high volatility breakouts or patiently waiting for retracements into unfilled imbalances, this tool is designed to support your edge with precision and flexibility.
___________________________________
Thanks for your support!
If you found this indicator helpful or learned something new, drop a like 👍 and leave a comment, I’d love to hear your thoughts! 🚀
Make sure to follow me for more price action insights, free indicators, and trading strategies. Let’s grow and trade smarter together! 📈
Market Structure- ZigZag, Break of Structure & Order BlocksDescription:
This script is an all-in-one market structure tool designed for traders who follow price action, Smart Money Concepts (SMC), or institutional order flow. It combines Order Block detection , Break of Structure (BOS) , Internal Structure Shifts (CHoCH) , and a ZigZag swing framework to provide a clear and actionable view of market behavior.
Key Features:
Order Blocks (OB) :
-Detects Bullish (Green) and Bearish (Red) order blocks upon valid market structure shifts.
-Optional deletion of mitigated (touched) blocks to keep charts clean.
-Customizable block duration, fill color, and border color.
Break of Structure (BOS) :
-Marks BOS with horizontal dotted lines when price breaks previous swing highs/lows.
-Confirms new trends and structural shifts.
Internal Structure Shifts (CHoCH-like) :
-Detects early internal changes in direction before BOS.
-User-selectable logic: based on candle Open or High/Low.
-Plotted as small black triangle markers.
ZigZag Swings :
-Connects confirmed internal shifts with black zigzag lines.
-Visually simplifies trend structure and major swing points.
-Tracks last swing highs/lows for BOS validation.
Alerts :
-Bullish/Bearish Engulfments (OB signals)
-Internal Structure Shifts
-Bullish/Bearish Break of Structure
-OB Mitigation Events
Inputs & Settings :
-Show/Hide Bullish or Bearish Order Blocks
-Calculate internal shifts by: Open or High/Low
-Set order block fill and border colors
-Enable or disable automatic deletion of mitigated blocks
-Set duration for order block display
This tool is designed to support price action trading by visually mapping key structural changes and zones of interest directly on your chart. It is not intended to function as a standalone trading strategy , but rather as a supplementary tool to inform your own analysis and discretion.
Range Expansion Index (REI)Introduction and History
I'm sharing an indicator today that I have developed: the Range Expansion Index (REI). This powerful oscillator was developed by the renowned technical analyst Thomas DeM., known for his unique approach to market timing and price exhaustion. The REI was introduced as part of his comprehensive suite of technical tools, detailed in his influential work, such as "The New Science of Technical Analysis."
DeM. designed the REI to be a more refined momentum oscillator. His goal was to create an indicator that could accurately reflect the underlying strength or weakness of price movements while minimizing the false signals often generated by traditional oscillators during sideways or choppy markets. The REI achieves this by focusing on significant price expansions and contractions, comparing recent price behavior to the overall price changes over a specified lookback period.
You can find more information and the basis for this indicator here:
QuantifiedStrategies: www.quantifiedstrategies.com
Infront Help Center: infront-portfolio-manager.helpcenter.infront.co
How the REI Works
The core of the REI's calculation lies in identifying and quantifying "strong" price changes within a given period (typically 8 bars). It does this by evaluating specific price relationships and conditions between current and past bars. The indicator then computes a ratio comparing the sum of these "strong" price changes to the sum of the absolute total price changes over the lookback period, scaling the result to oscillate between -100 and +100.
The key levels for interpreting the REI are generally:
+60: Overbought Zone
-60: Oversold Zone
Unlike oscillators that might simply signal overbought/oversold upon entering these zones, the REI's interpretation, according to DeM., often focuses on the exit from these extreme areas.
Traditional Trading Signals
Based on DeM.'s methodology and the descriptions in the provided links, the primary trading signals generated by the REI occur when the indicator crosses back from an extreme zone:
Sell Signal: The REI moves above the +60 level and then crosses back down below +60. This suggests potential price weakness after a period of strong upward momentum.
Buy Signal: The REI moves below the -60 level and then crosses back up above -60. This indicates potential price strength after a period of strong downward momentum.
Duration Analysis: An Optional Signal Filter
The QuantifiedStrategies link highlights the concept of "Duration Analysis," suggesting that the amount of time (number of bars) the REI spends in the overbought or oversold region can add crucial context. A brief stay might precede a reversal, while a prolonged stay could indicate a strong, persistent trend.
The indicator incorporates this concept as an optional filter. You can enable this feature and specify a number of bars. When enabled, a buy or sell signal will only be triggered if the REI crosses the respective overbought/oversold level AND the duration of the REI being in that extreme zone precisely matches the number of bars you specify in the input settings.
Indicator Features in This Pine Script
The Pine Script code I have developed provides a comprehensive implementation of the REI with additional trading utilities:
REI Calculation: Implements the core REI formula based on conditional price changes and summations over a defined period.
Configurable REI Period: Easily adjust the main lookback period for the REI calculation.
Customizable Lookback Parameters: Fine-tune the specific lookback periods used in the internal conditions (n1L, n2L, n3L) as described in the calculation method.
Plotting: Displays the REI line in a separate pane, along with horizontal lines at +60 (Overbought), -60 (Oversold), and 0 (Zero Line) for clear visual analysis.
Configurable Alerts: Set up Buy and Sell alerts that trigger when the REI crosses the +60/-60 levels. Control global alert enabling, and specifically enable/disable Buy and Sell alerts.
Plot Shapes for Signals: Optionally display visual triangle shapes directly on the price chart (red triangle down for Sell above the bar, green triangle up for Buy below the bar) to easily spot signal occurrences. Control global shape enabling and specifically enable/disable Buy/Sell shapes.
Optional Duration Analysis Filter: Activate a filter that requires the REI to have spent an exact number of consecutive bars in the overbought/oversold zone at the moment of the cross for a signal to be considered valid. Configure the required number of bars.
How to Use This Code in TradingView
Open TradingView and navigate to the Pine Editor (usually the icon on the left sidebar or via the bottom panel).
Delete any existing code in the editor and paste the REI code.
Save the script (you can name it "Range Expansion Index with Duration Filter" or similar).
Add the indicator to your chart by clicking the "Add to Chart" button in the Pine Editor.
Access the indicator's settings on your chart to adjust the REI Period, Lookbacks, and enable/disable Alerts, Plot Shapes, and the optional Duration Filter (including setting the number of bars).
To receive actual notifications: You must set up alerts manually through the TradingView platform's alert system (right-click on the indicator -> Add alert on Range Expansion Index (REI)...). Select the specific conditions "REI Sell Signal" or "REI Buy Signal" from the dropdown menu and configure your desired notification methods (popup, email, etc.).
Disclaimer:
Trading financial markets involves risk, and past performance is not indicative of future results. This indicator is a tool for analysis and should be used as part of a comprehensive trading strategy, always combined with other techniques and proper risk management. Always conduct your own research and backtest the indicator to understand its behavior on the markets and timeframes you trade.
Choppiness Index Based RangesSideways ranges based on Choppiness Index.
CI > 61.8 indicates that price has been ranging in the past n = Length bars.
Previous Day/Week/Month - High/Lows (BHUVANESH Rajendran)Previous Day/Week/Month - High/Lows (BHUVANESH Rajendran)
VWAP Indicator Channel | Multi Timeframe by Osbrah📊 Multi-Timeframe VWAP Indicator (Session / Weekly / Monthly)
This powerful indicator plots the Volume Weighted Average Price (VWAP) across multiple timeframes: intraday session, weekly, and monthly. It's designed to give traders a clear understanding of the market’s fair value over different horizons.
Key Features:
* Display Session VWAP (resets daily)
* Enable Weekly and Monthly VWAPs for broader market context
* Customize colors, styles, and visibility for each VWAP
* Toggle between standard VWAP or anchored to session opens
Use Cases:
* Identify value zones where price tends to gravitate
* Spot institutional levels of interest and potential reversal points
* Align entries with VWAP bounces or breaks
* Combine with EMAs or price action for high-probability setups
Perfect for day traders, swing traders, and institutional-style strategies, this VWAP tool helps you stay aligned with volume-based price dynamics across all market phases.
Triple EMA Bundle (50, 100, 200) - Osbrah CRG📈 Advanced EMA Indicator – 50/100/200
This custom-built indicator displays the 50, 100, and 200 Exponential Moving Averages (EMAs), giving traders a powerful visual tool to identify key trend directions, dynamic support/resistance levels, and potential market reversals.
Designed for both beginners and advanced users, this tool offers extensive customization options:
* Select which EMAs to display (50, 100, 200)
* Adjust colors, line styles, and thickness
* Choose between different price sources (close, open, hl2, etc.)
* Set custom EMA lengths to fit your strategy
Use Cases:
* Spot trend direction and strength at a glance
* Identify key zones of support and resistance
* Confirm entries/exits based on EMA crossovers or rejections
* Align your trades with higher timeframe trends
Whether you're a swing trader or a scalper, this indicator helps you stay in sync with the market by bringing clarity to long-term momentum zones.
Intraday Fibs RetracementFibonacci (Fibs) levels are often used by traders as a way to find support and resistance, based on the Fibonacci sequence. These levels are widely used in technical analysis to identify potential reversal points in the price of an asset.
Fibs retracement draws lines at these Fibs level between a significant high and low point on a price chart.
What it shows:
This indicator will automatically draw Fibs Retracement Levels on your chart without any manual work.
It is designed to be used for day trading, especially in scenarios where a ticker gaps up/down large compared to the prior day close. (i.e. scenario where the difference of day's open and prior day close is large)
The drawing will happen on each trading day the moment trading hours open, and will NOT draw during pre-market and post-market.
User can see the line of each Fibs level, labelled with the Fib percentage and price value for the corresponding levels.
User will specify a start and end point of Fibs and based on the choice the indicator will automatically compute the other user defined Fibs levels and display on the chart.
How to use it:
The Fib levels drawn can be a potential support and resistance zone. Therefore in scenario where you already have a position and are approaching one of these levels it could be a point to close out some or all the position as you are approaching a resistance. On the other hand when price do approach these levels you could enter a position for a reversal trade. These are few ways to use the indicator but there are other ways that can be used, which can be found out by researching "Fibonacci (Fibs) Retracement".
In the example on the chart you can see a price bounce from the 0.7886 Fibs level on this particular day, where the price gapped up and was coming down after market hours opened.
Key settings:
1. Fibs Retracement Start and end Point: User selects where the Fibs levels should be drawn.
Available Options are:
Start Points:
Market Open
Market Open High (Dependent on the time frame you are on)
Pre-market High
Day's High
End Points:
Previous Day Close
Previous Day Low
Previous Day High
Pre-market Low (Current Day)
Day's Low
2. Custom Fib Levels: User can manually enter the Fib levels they want to see. (Max 9)
Default values are: 0,0.236,0.382,0.5,0.618,0.786,1,1.618,2.618.
3. Display settings: User can specify the line colour, thickness and style.
4. Label Setting: User can choose to turn on/off the labels for the each Fibs Level. Label will show the fib percentage and the corresponding price. User can also choose the location of the labels, defined by an offset from the current candle.
----------------------------------------------------------------------
If anything is not clear please let me know!
RSI Horizontal resistance levelsRSI Horizontal Resistance Levels
Purpose
This study automatically draws horizontal price rays every time the Relative Strength Index (RSI) trades inside a user‑defined band (default = 50 ± 1). The idea is to spotlight price levels that historically coincided with a specific RSI state—levels that often evolve into short‑term support or resistance as sentiment repeats.
How it works
Raw RSI – The script computes an un‑smoothed RSI of the closing price (rsiLength, default = 3).
Trigger zone – Whenever RSI falls within level ± tolerance (e.g., 49 – 51) the close price of that bar becomes a reference.
Horizontal ray – A ray (extend.right) is drawn from that close and continues indefinitely to the right, creating a live price level.
History management – Only the most recent N rays are kept (maxRays, default = 5); the oldest line is deleted automatically to avoid chart clutter.
Inputs
Name Default Description
RSI Length 3 Look‑back of the RSI calculation.
RSI Level 50 Center of the trigger zone. Common alternatives: 30, 70, custom mid‑lines.
Tolerance 1 Width of the RSI band on each side of RSI Level (set 0 for an exact hit).
Max Rays 5 Maximum number of active horizontal levels kept on screen.
Ray Color Yellow Visual color of the rays.
Ray Width 2 Thickness of the rays.
How to use it
Spot recurring reaction zones – Markets often hesitate near prices where momentum has flipped before. The rays reveal those spots automatically.
Combine with candlestick or volume cues – A level marked by this script plus a rejection wick, volume spike, or divergence can strengthen conviction.
Adapt the band –
50 ± tolerance → momentum balance line (trend pullbacks)
70 ± tolerance → overbought fade levels
30 ± tolerance → oversold bounce levels
Works on any asset or timeframe; shorter RSI periods highlight intraday rotations, longer periods capture swing pivots.
Tips & cautions
A drawn line is not a guarantee of future reversal—always validate with price action and risk management.
For high‑frequency strategies, consider lowering tolerance or increasing rsiLength to reduce noise.
You can add custom alerts on RSI crossing the band to receive push or email notifications.
Happy trading!
Hurst Exponent Oscillator [PhenLabs]📊 Hurst Exponent Oscillator -
Version: PineScript™ v5
📌 Description
The Hurst Exponent Oscillator (HEO) by PhenLabs is a powerful tool developed for traders who want to distinguish between trending, mean-reverting, and random market behaviors with clarity and precision. By estimating the Hurst Exponent—a statistical measure of long-term memory in financial time series—this indicator helps users make sense of underlying market dynamics that are often not visible through traditional moving averages or oscillators.
Traders can quickly know if the market is likely to continue its current direction (trending), revert to the mean, or behave randomly, allowing for more strategic timing of entries and exits. With customizable smoothing and clear visual cues, the HEO enhances decision-making in a wide range of trading environments.
🚀 Points of Innovation
Integrates advanced Hurst Exponent calculation via Rescaled Range (R/S) analysis, providing unique market character insights.
Offers real-time visual cues for trending, mean-reverting, or random price action zones.
User-controllable EMA smoothing reduces noise for clearer interpretation.
Dynamic coloring and fill for immediate visual categorization of market regime.
Configurable visual thresholds for critical Hurst levels (e.g., 0.4, 0.5, 0.6).
Fully customizable appearance settings to fit different charting preferences.
🔧 Core Components
Log Returns Calculation: Computes log returns of the selected price source to feed into the Hurst calculation, ensuring robust and scale-independent analysis.
Rescaled Range (R/S) Analysis: Assesses the dispersion and cumulative deviation over a rolling window, forming the core statistical basis for the Hurst exponent estimate.
Smoothing Engine: Applies Exponential Moving Average (EMA) smoothing to the raw Hurst value for enhanced clarity.
Dynamic Rolling Windows: Utilizes arrays to maintain efficient, real-time calculations over user-defined lengths.
Adaptive Color Logic: Assigns different highlight and fill colors based on the current Hurst value zone.
🔥 Key Features
Visually differentiates between trending, mean-reverting, and random market modes.
User-adjustable lookback and smoothing periods for tailored sensitivity.
Distinct fill and line styles for each regime to avoid ambiguity.
On-chart reference lines for strong trending and mean-reverting thresholds.
Works with any price series (close, open, HL2, etc.) for versatile application.
🎨 Visualization
Hurst Exponent Curve: Primary plotted line (smoothed if EMA is used) reflects the ongoing estimate of the Hurst exponent.
Colored Zone Filling: The area between the Hurst line and the 0.5 reference line is filled, with color and opacity dynamically indicating the current market regime.
Reference Lines: Dash/dot lines mark standard Hurst thresholds (0.4, 0.5, 0.6) to contextualize the current regime.
All visual elements can be customized for thickness, color intensity, and opacity for user preference.
📖 Usage Guidelines
Data Settings
Hurst Calculation Length
Default: 100
Range: 10-300
Description: Number of bars used in Hurst calculation; higher values mean longer-term analysis, lower values for quicker reaction.
Data Source
Default: close
Description: Select which data series to analyze (e.g., Close, Open, HL2).
Smoothing Length (EMA)
Default: 5
Range: 1-50
Description: Length for smoothing the Hurst value; higher settings yield smoother but less responsive results.
Style Settings
Trending Color (Hurst > 0.5)
Default: Blue tone
Description: Color used when trending regime is detected.
Mean-Reverting Color (Hurst < 0.5)
Default: Orange tone
Description: Color used when mean-reverting regime is detected.
Neutral/Random Color
Default: Soft blue
Description: Color when market behavior is indeterminate or shifting.
Fill Opacity
Default: 70-80
Range: 0-100
Description: Transparency of area fills—higher opacity for stronger visual effect.
Line Width
Default: 2
Range: 1-5
Description: Thickness of the main indicator curve.
✅ Best Use Cases
Identifying if a market is regime-shifting from trending to mean-reverting (or vice versa).
Filtering signals in automated or systematic trading strategies.
Spotting periods of randomness where trading signals should be deprioritized.
Enhancing mean-reversion or trend-following models with regime-awareness.
⚠️ Limitations
Not predictive: Reflects current and recent market state, not future direction.
Sensitive to input parameters—overfitting may occur if settings are changed too frequently.
Smoothing can introduce lag in regime recognition.
May not work optimally in markets with structural breaks or extreme volatility.
💡 What Makes This Unique
Employs advanced statistical market analysis (Hurst exponent) rarely found in standard toolkits.
Offers immediate regime visualization through smart dynamic coloring and zone fills.
🔬 How It Works
Rolling Log Return Calculation:
Each new price creates a log return, forming the basis for robust, non-linear analysis. This ensures all price differences are treated proportionally.
Rescaled Range Analysis:
A rolling window maintains cumulative deviations and computes the statistical “range” (max-min of deviations). This is compared against the standard deviation to estimate “memory”.
Exponent Calculation & Smoothing:
The raw Hurst value is translated from the log of the rescaled range ratio, and then optionally smoothed via EMA to dampen noise and false signals.
Regime Detection Logic:
The smoothed value is checked against 0.5. Values above = trending; below = mean-reverting; near 0.5 = random. These control plot/fill color and zone display.
💡 Note:
Use longer calculation lengths for major market character study, and shorter ones for tactical, short-term adaptation. Smoothing balances noise vs. lag—find a best fit for your trading style. Always combine regime awareness with broader technical/fundamental context for best results.
The Ultimate Buy and Sell Indicator: Unholy Grail Edition"You see, Watson, the market is not random—it simply whispers in a code too complex for the average trader. Lucky for you, I am not average."
They searched for the Holy Grail of trading for decades—promises, false prophets, and overpriced PDFs.
But they were all looking in the wrong place.
This isn’t a relic buried in the desert.
This is the Unholy Grail — a machine-forged fusion of logic, engineering, and tactical overkill .
Built by Sherlock Macgyver , this is not a mystical object. It’s a surveillance system for trend detection, signal validation, and precision entries .
⚠️ Important: This script draws its own candles.
To see it properly, disable regular candles by turning off "Body", "Wick" and "Border" colors.
🔧 What You’re Looking At
This overlay plots confirmed Buy/Sell signals , momentum-based “watch” zones , adaptive candle coloring , SuperTrend bias detection , dual Bollinger Bands , and a moving average ribbon .
It’s not “minimalist” —it’s comprehensive .
📍 Configuring the Tool: Follow the Breadcrumbs
Every setting includes a tooltip — read them . They're not filler. They explain exactly how each feature functions so you can dial this thing in like you're tuning a surveillance rig in a Cold War bunker .
If you skip them, you're walking blind in a minefield .
🕰️ Timeframes: The Signal Sweet Spot
Each asset has a tempo . You need to find the one where signals align with clarity —not chaos .
Start with 4H or 1H —work up or down from there.
Too many fakeouts? → Higher timeframe
Too slow? → Drop to 15m or 5m —but expect more noise and adjust settings accordingly.
The signals scale with time, but you must find the rhythm that best fits your asset—and your trading lifestyle .
♻️ RSI Cycle = Signal Sensitivity
This is the heart of the system . It controls how reactive the RSI engine is.
Adjust based on noise level and how often you can actually monitor your charts.
Short cycle (14–24): More signals, more speed, more noise
Longer cycle (36–64): Smoother entries, better for swing traders
Tip: If your signals feel too jittery, increase the cycle. If they lag too much, reduce it.
📉 SuperTrend: Your Trend Bias Compass
This isn’t your average SuperTrend. It adapts with RSI overlay logic and detects market “silence” via EMA compression— turning white right before the chaos . That said, you still control its aggression.
ATR Length = how many bars to average
ATR Factor = how tight or loose it hugs price
Lower = more sensitive (more trades, more noise)
Higher = confirmation only (fewer, but stronger signals)
Tweak until it feels like a sniper rifle.
No, you won’t get it perfect on the first try.
Yes, it’s worth it.
🛠️ Modular Signals: Why Things Fire (or Don’t)
Buy/Sell entries require conditions to align. The logic is modular, and that’s on purpose.
RSI signals only fire if RSI crosses its smoothed MA outside the dead zone and a “Watch” condition is active.
SuperTrend signals can be enabled to act on crossovers, optionally ignoring the Watch filter .
Watch conditions (colored squares) act as early recon and hint at possible upcoming trades.
Background color changes are “pre-signal warnings” and will repaint . Use them as leading signals, not gospel.
Want more trades? Loosen your filters .
Want sniper entries? Lock them down .
🌈 Candles and MAs: Visual Market Structure
Candles adapt in real-time to MA structure:
Green = bullish (above both fast/slow MAs)
Yellow = indecision (between)
Red = bearish (below both)
Buy/Sell signals override candles with bright orange and fuchsia —because subtlety doesn’t win wars .
You can also enable up to 8 customizable moving averages —great for confluence , trend confirmation , or just looking like a wizard .
🧠 Pro Usage Tips (TL;DR for Smart People):
Use tooltips in the settings menu —every toggle and slider is explained
Test timeframes until signal frequency and reliability match your goals
Adjust RSI cycle to reduce noise or speed up signals based on how frequently you trade
Tweak SuperTrend factor and ATR to fit volatility on your asset
Start with visual confirmation :
• Are watch signals lining up with trend zones?
• Are backgrounds firing before price moves?
• Are candle colors agreeing with signal direction?
📣 Alerts & Integration
Alerts are available for:
Buy/Sell entries (confirmed or advanced background)
Watch signals
Full band agreement (both Bollinger bands bullish or bearish)
Use these with webhook systems , bots , or your own trade journals .
Created by Sherlock Macgyver
Because sometimes the best trade…
is knowing exactly when not to take one.
Candle Wick Analysis🔍 What This Indicator Does
The Candle Wick Analysis indicator dynamically colors each candle body based on the comparative strength of its wicks and body, helping traders visually assess market sentiment, rejection zones, and momentum exhaustion with higher clarity.
This tool is especially useful for:
Price action traders
Scalpers
Reversal and trend continuation traders
Anyone who uses candlestick structure for confirmations
📊 How It Works
The indicator analyzes each candle and compares the percentage change of the upper wick, body, and lower wick relative to the opening price. Based on this relationship, it assigns a green or red color to the candle body to indicate likely price strength or weakness.
🧠 Logic Breakdown
✅ If the Candle is Bullish (close > open):
🔵 Green Candle Body: If the upper wick is smaller than the combined percentage size of the body + lower wick
→ Indicates strong bullish momentum with low upper rejection.
🔴 Red Candle Body: If the upper wick is larger than body + lower wick
→ Suggests potential exhaustion or rejection at the top.
✅ If the Candle is Bearish (close < open):
🔴 Red Candle Body: If the lower wick is smaller than the combined percentage size of the body + upper wick
→ Indicates strong bearish momentum with low lower support.
🟢 Green Candle Body: If the lower wick is larger than body + upper wick
→ Suggests potential downside rejection or support zone bounce.
⚪ Neutral Candles:
If the candle does not meet any specific wick/body criteria, it is displayed in gray to indicate neutrality or indecision (such as a doji).
🛠️ Technical Highlights
Built in Pine Script v5
Uses precise percentage-based wick/body comparison
Works on any timeframe and instrument
Minimalist coloring style: only the body color changes, while wicks stay gray
💡 Use Cases
Quickly spot exhaustion candles, where strong wicks may indicate a reversal or trap.
Validate trend strength: strong candles are colored green, weak ones red, even within bullish or bearish structures.
Filter entries and exits using visual confirmation of wick-to-body dynamics.
📌 Notes
This is a visual tool, not a buy/sell signal indicator.
Best used in conjunction with other forms of analysis (support/resistance, volume, moving averages, etc.)
Can be enhanced with alerts, filters (e.g., volume spikes), or labeling based on user feedback.
NYBREAKOUT by FliuxStrategy Concept
This strategy captures high-probability breakout moves by defining a tight 30-minute range during low-volatility hours and trading the first clear break beyond that range with a 2:1 reward-to-risk ratio.
Key Benefits
Simplicity: Clear, time-based range and mechanical entries/exits.
Defined R:R: Automatic 2:1 target ensures consistent risk management.
Time-filtered: Trades only the initial breakout of a calm, pre-session range.
How to Use
Add to Chart: Paste the Pine Script into TradingView’s Pine Editor, then click Add to Chart.
Backtest: Open Strategy Tester to review net profit, drawdown, win rate, and profit factor.
Optimize: Adjust stop-loss offset, R:R ratio, or session window parameters to suit different instruments or volatility regimes.
Mervin 2025 Predictive BOS Reversal DetectorObjective of the Script
To help traders predict and confirm market reversals using a combination of candlestick alignment, BOS logic, and trend strength indicators (CCI & ATR).
How the Script Works – Step-by-Step
Step 1: Detect Body Alignment Reversal
This step checks if the current candlestick is a potential reversal, defined as:
Opposite direction to the previous candle, and
Body alignment, meaning the previous close is nearly equal to the current open within a small tolerance.
✅ Conditions:
Bullish reversal: Previous candle is red (down), current candle is green (up).
Bearish reversal: Previous candle is green (up), current candle is red (down).
Aligned: abs(prevClose - currOpen) <= tolerance
If both alignment and reversal are detected:
A potential bullish BOS or potential bearish BOS is predicted.
📍 Displayed on Chart:
🔶 Orange triangle up = predicted bullish BOS
🔶 Orange triangle down = predicted bearish BOS
Step 2: Predict and Confirm Break of Structure (BOS)
Once a reversal is predicted, the script waits for a break above or below a key level from the previous candle:
Bullish BOS confirmed if the price breaks above the previous high.
Bearish BOS confirmed if the price breaks below the previous low.
📍 Displayed on Chart:
✅ Green label up = confirmed bullish BOS
❌ Red label down = confirmed bearish BOS
Step 3: Alerts
The script includes alerts that can be turned on in TradingView:
Predict Bullish BOS – potential long opportunity
Predict Bearish BOS – potential short opportunity
Confirmed BOS Bullish – confirmation to enter or add to a long
Confirmed BOS Bearish – confirmation to enter or add to a short
Step 4: Candle Strength and Forecast Bias Table
This section provides trend strength analysis using:
Candle strength: Percentage change from open to close
CCI (Commodity Channel Index): Detects trend direction and strength
ATR (Average True Range): Measures volatility
Bias Logic:
Buy: CCI is positive, increasing, and ATR is rising.
Sell: CCI is negative, decreasing, and ATR is rising.
Wait: No clear signal.
📍 Displayed on Chart:
A table in the top-right corner shows:
Candle strength and label (Bullish/Bearish)
Bias with color coding: ✅ Lime (Buy), ❌ Red (Sell), ⚪ Gray (Wait)
🛠️ Inputs You Can Customize
Input Name Description Default
Alignment Tolerance How closely previous close should match current open to consider aligned 0.01
Predict BOS within next N bars Number of bars to watch for BOS confirmation 2
CCI Length Period for CCI calculation 20
ATR Length Period for ATR calculation 14
🧭 Trading Strategy – Steps to Use
🔍 Step 1: Watch for BOS Prediction
Look for orange triangle up/down on the chart.
This is your heads-up for a potential reversal.
✅ Step 2: Wait for BOS Confirmation
Only trade if:
Price breaks above the high (for bullish) or below the low (for bearish) of the previous bar.
You’ll see green/red labels on the chart.
🛒 Step 3: Entry
Bullish Entry (Long):
After confirmed bullish BOS
Bias table shows "Buy"
Bearish Entry (Short):
After confirmed bearish BOS
Bias table shows "Sell"
🎯 Step 4: Stop Loss and Take Profit
Use ATR to gauge volatility and set stop loss.
Example: SL = Entry ± 1.5x ATR
Consider previous swing high/low for take profit levels.
🔔 Step 5: Set Alerts
Turn on alerts in TradingView to be notified of predictions and confirmations.
FVG + OB + RSI Divergence + Volume Spikes🧠 FVG + OB + RSI Divergence + Volume Spikes – Market Structure Confluence Tool
This all-in-one indicator brings together four powerful market concepts into a single script designed to help traders identify high-probability trade setups with precision and clarity:
🔍 What It Does
✅ Fair Value Gaps (FVG)
Highlights inefficiencies in price action, showing where the market may return to “rebalance.”
✅ Order Blocks (OB)
Marks key institutional footprints — bullish and bearish order blocks based on engulfing candle structures.
✅ RSI Divergence
Detects both bullish and bearish divergences between price and RSI, signaling potential reversals.
✅ Volume Spikes
Flags bars where volume significantly exceeds the average — a common footprint of smart money.
🎯 How to Use
Use this tool to spot confluences between price inefficiencies (FVG), key reversal zones (OB), momentum shifts (RSI Divergence), and institutional interest (Volume Spikes). The best setups often occur when multiple signals align — especially at key support/resistance or trend zones.
⚙️ Inputs
RSI length (for divergence)
Volume spike sensitivity (multiplier)
Lookback for Order Blocks and FVGs
⚠️ Notes
This is a non-repainting tool.
Ideal for price action, SMC, ICT, and order flow traders.
Combine with your existing strategy and higher time frame bias for best results.
Q Squeeze TrendQ Squeeze Trend
A sharp, signal-based trend tool that combines classic SuperTrend mechanics with configurable squeeze breakout logic and momentum confirmation. Built for clean entry points and minimalist charting — perfect for fast setups and real-time alerts.
🔧 Core Features
Configurable Squeeze Breakout Logic
• Detects low-volatility "squeeze" phases using customizable Bollinger Band vs. Keltner Channel logic
• Confirms breakouts only when momentum aligns with directional bias
SuperTrend Confirmation
• Filters noise and validates signals based on ATR-based trend logic
• Adds directional confidence before triggering signals
Alternating Signal Logic
• Ensures only one directional signal is active at a time
• Avoids repetitive entries and improves clarity
Clean Visual Feedback
• Directional arrows on confirmed buy/sell signals
• Optional colored fill between price and signal level
• Lightweight, non-intrusive label system
Real-Time Alerts
• Alerts for confirmed buy and sell setups
• Easy integration with webhooks, bots, or mobile notifications
⚙️ Configurable Inputs
• ATR Period & Multiplier – adjust SuperTrend sensitivity
• Squeeze Length, BB/KC Multipliers – fine-tune compression detection
• Signal Colors – customize arrow and background styling
✨ Highlights
• Designed for fast, visual trading with minimal clutter
• Non-repainting logic, effective across all timeframes
• Pairs well with structure, momentum, and volume strategies
📈 How to Use
• Enter on breakout arrows when trend, momentum, and squeeze align
• Use background fill to track current direction
• Exit on opposite signal, or combine with your own trade management logic
Enhanced Volume Trend Indicator with BB SqueezeEnhanced Volume Trend Indicator with BB Squeeze: Comprehensive Explanation
The visualization system allows traders to quickly scan multiple securities to identify high-probability setups without detailed analysis of each chart. The progression from squeeze to breakout, supported by volume trend confirmation, offers a systematic approach to identifying trading opportunities.
The script combines multiple technical analysis approaches into a comprehensive dashboard that helps traders make informed decisions by identifying high-probability setups while filtering out noise through its sophisticated confirmation requirements. It combines multiple technical analysis approaches into an integrated visual system that helps traders identify potential trading opportunities while filtering out false signals.
Core Features
1. Volume Analysis Dashboard
The indicator displays various volume-related metrics in customizable tables:
AVOL (After Hours + Pre-Market Volume): Shows extended hours volume as a percentage of the 21-day average volume with color coding for buying/selling pressure. Green indicates buying pressure and red indicates selling pressure.
Volume Metrics: Includes regular volume (VOL), dollar volume ($VOL), relative volume compared to 21-day average (RVOL), and relative volume compared to 90-day average (RVOL90D).
Pre-Market Data: Optional display of pre-market volume (PVOL), pre-market dollar volume (P$VOL), pre-market relative volume (PRVOL), and pre-market price change percentage (PCHG%).
2. Enhanced Volume Trend (VTR) Analysis
The Volume Trend indicator uses adaptive analysis to evaluate buying and selling pressure, combining multiple factors:
MACD (Moving Average Convergence Divergence) components
Volume-to-SMA (Simple Moving Average) ratio
Price direction and market conditions
Volume change rates and momentum
EMA (Exponential Moving Average) alignment and crossovers
Volatility filtering
VTR Visual Indicators
The VTR score ranges from 0-100, with values above 50 indicating bullish conditions and below 50 indicating bearish conditions. This is visually represented by colored circles:
"●" (Filled Circle):
Green: Strong bullish trend (VTR ≥ 80)
Red: Strong bearish trend (VTR ≤ 20)
"◯" (Hollow Circle):
Green: Moderate bullish trend (VTR 65-79)
Red: Moderate bearish trend (VTR 21-35)
"·" (Small Dot):
Green: Weak bullish trend (VTR 55-64)
Red: Weak bearish trend (VTR 36-45)
"○" (Medium Hollow Circle): Neutral conditions (VTR 46-54), shown in gray
In "Both" display mode, the VTR shows both the numerical score (0-100) alongside the appropriate circle symbol.
Enhanced VTR Settings
The Enhanced Volume Trend component offers several advanced customization options:
Adaptive Volume Analysis (volTrendAdaptive):
When enabled, dynamically adjusts volume thresholds based on recent market volatility
Higher volatility periods require proportionally higher volume to generate significant signals
Helps prevent false signals during highly volatile markets
Keep enabled for most trading conditions, especially in volatile markets
Speed of Change Weight (volTrendSpeedWeight, range 0-1):
Controls emphasis on volume acceleration/deceleration rather than absolute levels
Higher values (0.7-1.0): More responsive to new volume trends, better for momentum trading
Lower values (0.2-0.5): Less responsive, better for trend following
Helps identify early volume trends before they fully develop
Momentum Period (volTrendMomentumPeriod, range 2-10):
Defines lookback period for volume change rate calculations
Lower values (2-3): More responsive to recent changes, better for short timeframes
Higher values (7-10): Smoother, better for daily/weekly charts
Directly affects how quickly the indicator responds to new volume patterns
Volatility Filter (volTrendVolatilityFilter):
Adjusts significance of volume by factoring in current price volatility
High volume during high volatility receives less weight
High volume during low volatility receives more weight
Helps distinguish between genuine volume-driven moves and volatility-driven moves
EMA Alignment Weight (volTrendEmaWeight, range 0-1):
Controls importance of EMA alignments in final VTR calculation
Analyzes multiple EMA relationships (5, 10, 21 period)
Higher values (0.7-1.0): Greater emphasis on trend structure
Lower values (0.2-0.5): More focus on pure volume patterns
Display Mode (volTrendDisplayMode):
"Value": Shows only numerical score (0-100)
"Strength": Shows only symbolic representation
"Both": Shows numerical score and symbol together
3. Bollinger Band Squeeze Detection (SQZ)
The BB Squeeze indicator identifies periods of low volatility when Bollinger Bands contract inside Keltner Channels, often preceding significant price movements.
SQZ Visual Indicators
"●" (Filled Circle): Strong squeeze - high probability setup for an impending breakout
Green: Strong squeeze with bullish bias (likely upward breakout)
Red: Strong squeeze with bearish bias (likely downward breakout)
Orange: Strong squeeze with unclear direction
"◯" (Hollow Circle): Moderate squeeze - medium probability setup
Green: With bullish EMA alignment
Red: With bearish EMA alignment
Orange: Without clear directional bias
"-" (Dash): Gray dash indicates no squeeze condition (normal volatility)
The script identifies squeeze conditions through multiple methods:
Bollinger Bands contracting inside Keltner Channels
BB width falling to bottom 20% of recent range (BB width percentile)
Very narrow Keltner Channel (less than 5% of basis price)
Tracking squeeze duration in consecutive bars
Different squeeze strengths are detected:
Strong Squeeze: BB inside KC with tight BB width and narrow KC
Moderate Squeeze: BB inside KC with either tight BB width or narrow KC
No Squeeze: Normal market conditions
4. Breakout Detection System
The script includes two breakout indicators working in sequence:
4.1 Pre-Breakout (PBK) Indicator
Detects potential upcoming breakouts by analyzing multiple factors:
Squeeze conditions lasting 2-3 bars or more
Significant price ranges
Strong volume confirmation
EMA/MACD crossovers
Consistent price direction
PBK Visual Indicators
"●" (Filled Circle): Detected pre-breakout condition
Green: Likely upward breakout (bullish)
Red: Likely downward breakout (bearish)
Orange: Direction not yet clear, but breakout likely
"-" (Dash): Gray dash indicates no pre-breakout condition
The PBK uses sophisticated conditions to reduce false signals including minimum squeeze length, significant price movement, and technical confirmations.
4.2 Breakout (BK) Indicator
Confirms actual breakouts in progress by identifying:
End of squeeze or strong expansion of Bollinger Bands
Volume expansion
Price moving outside Bollinger Bands
EMA crossovers with volume confirmation
MACD crossovers with significant price range
BK Visual Indicators
"●" (Filled Circle): Confirmed breakout in progress
Green: Upward breakout (bullish)
Red: Downward breakout (bearish)
Orange: Unusual breakout pattern without clear direction
"◆" (Diamond): Special breakout conditions (meets some but not all criteria)
"-" (Dash): Gray dash indicates no breakout detected
The BK indicator uses advanced filters for confirmation:
Requires consecutive breakout signals to reduce false positives
Strong volume confirmation requirements (40% above average)
Significant price movement thresholds
Consistency checks between price action and indicators
5. Market Metrics and Analysis
Price Change Percentage (CHG%)
Displays the current percentage change relative to the previous day's close, color-coded green for positive changes and red for negative changes.
Average Daily Range (ADR%)
Calculates the average daily percentage range over a specified period (default 20 days), helping traders gauge volatility and set appropriate price targets.
Average True Range (ATR)
Shows the Average True Range value, a volatility indicator developed by J. Welles Wilder that measures market volatility by decomposing the entire range of an asset price for that period.
Relative Strength Index (RSI)
Displays the standard 14-period RSI, a momentum oscillator that measures the speed and change of price movements on a scale from 0 to 100.
6. External Market Indicators
QQQ Change
Shows the percentage change in the Invesco QQQ Trust (tracking the Nasdaq-100 Index), useful for understanding broader tech market trends.
UVIX Change
Displays the percentage change in UVIX, a volatility index, providing insight into market fear and potential hedging activity.
BTC-USD
Shows the current Bitcoin price from Coinbase, useful for traders monitoring crypto correlation with equities.
Market Breadth (BRD)
Calculates the percentage difference between ATHI.US and ATLO.US (high vs. low securities), indicating overall market direction and strength.
7. Session Analysis and Volume Direction
Session Detection
The script accurately identifies different market sessions:
Pre-market: 4:00 AM to 9:30 AM
Regular market: 9:30 AM to 4:00 PM
After-hours: 4:00 PM to 8:00 PM
Closed: Outside trading hours
This detection works on any timeframe through careful calculation of current time in seconds.
Buy/Sell Volume Direction
The script analyzes buying and selling pressure by:
Counting up volume when close > open
Counting down volume when close < open
Tracking accumulated volume within the day
Calculating intraday pressure (up volume minus down volume)
Enhanced AVOL Calculation
The improved AVOL calculation works in all timeframes by:
Estimating typical pre-market and after-hours volume percentages
Combining yesterday's after-hours with today's pre-market volume
Calculating this as a percentage of the 21-day average volume
Determining buying/selling pressure by analyzing after-hours and pre-market price changes
Color-coding results: green for buying pressure, red for selling pressure
This calculation is particularly valuable because it works consistently across any timeframe.
Customization Options
Display Settings
The dashboard has two customizable tables: Volume Table and Metrics Table, with positions selectable as bottom_left or bottom_right.
All metrics can be individually toggled on/off:
Pre-market data (PVOL, P$VOL, PRVOL, PCHG%)
Volume data (AVOL, RVOL Day, RVOL 90D, Volume, SEED_YASHALGO_NSE_BREADTH:VOLUME )
Price metrics (ADR%, ATR, RSI, Price Change%)
Market indicators (QQQ, UVIX, Breadth, BTC-USD)
Analysis indicators (Volume Trend, BB Squeeze, Pre-Breakout, Breakout)
These toggle options allow traders to customize the dashboard to show only the metrics they find most valuable for their trading style.
Table and Text Customization
The dashboard's appearance can be customized:
Table background color via tableBgColor
Text color (White or Black) via textColorOption
The indicator uses smart formatting for volume and price values, automatically adding appropriate suffixes (K, M, B) for readability.
MACD Configuration for VTR
The Volume Trend calculation incorporates MACD with customizable parameters:
Fast Length: Controls the period for the fast EMA (default 3)
Slow Length: Controls the period for the slow EMA (default 9)
Signal Length: Controls the period for the signal line EMA (default 5)
MACD Weight: Controls how much influence MACD has on the volume trend score (default 0.3)
These settings allow traders to fine-tune how momentum is factored into the volume trend analysis.
Bollinger Bands and Keltner Channel Settings
The Bollinger Bands and Keltner Channels used for squeeze detection have preset (hidden) parameters:
BB Length: 20 periods
BB Multiplier: 2.0 standard deviations
Keltner Length: 20 periods
Keltner Multiplier: 1.5 ATR
These settings follow standard practice for squeeze detection while maintaining simplicity in the user interface.
Practical Trading Applications
Complete Trading Strategies
1. Squeeze Breakout Strategy
This strategy combines multiple components of the indicator:
Wait for a strong squeeze (SQZ showing ●)
Look for pre-breakout confirmation (PBK showing ● in green or red)
Enter when breakout is confirmed (BK showing ● in same direction)
Use VTR to confirm volume supports the move (VTR ≥ 65 for bullish or ≤ 35 for bearish)
Set profit targets based on ADR (Average Daily Range)
Exit when VTR begins to weaken or changes direction
2. Volume Divergence Strategy
This strategy focuses on the volume trend relative to price:
Identify when price makes a new high but VTR fails to confirm (divergence)
Look for VTR to show weakening trend (● changing to ◯ or ·)
Prepare for potential reversal when SQZ begins to form
Enter counter-trend position when PBK confirms reversal direction
Use external indicators (QQQ, BTC, Breadth) to confirm broader market support
3. Pre-Market Edge Strategy
This strategy leverages pre-market data:
Monitor AVOL for unusual pre-market activity (significantly above 100%)
Check pre-market price change direction (PCHG%)
Enter position at market open if VTR confirms direction
Use SQZ to determine if volatility is likely to expand
Exit based on RVOL declining or price reaching +/- ADR for the day
Market Context Integration
The indicator provides valuable context for trading decisions:
QQQ change shows tech market direction
BTC price shows crypto market correlation
UVIX change indicates volatility expectations
Breadth measurement shows market internals
This context helps traders avoid fighting the broader market and align trades with overall market direction.
Timeframe Optimization
The indicator is designed to work across different timeframes:
For day trading: Focus on AVOL, VTR, PBK/BK, and use shorter momentum periods
For swing trading: Focus on SQZ duration, VTR strength, and broader market indicators
For position trading: Focus on larger VTR trends and use EMA alignment weight
Advanced Analytical Components
Enhanced Volume Trend Score Calculation
The VTR score calculation is sophisticated, with the base score starting at 50 and adjusting for:
Price direction (up/down)
Volume relative to average (high/normal/low)
Volume acceleration/deceleration
Market conditions (bull/bear)
Additional factors are then applied, including:
MACD influence weighted by strength and direction
Volume change rate influence (speed)
Price/volume divergence effects
EMA alignment scores
Volatility adjustments
Breakout strength factors
Price action confirmations
The final score is clamped between 0-100, with values above 50 indicating bullish conditions and below 50 indicating bearish conditions.
Anti-False Signal Filters
The indicator employs multiple techniques to reduce false signals:
Requiring significant price range (minimum percentage movement)
Demanding strong volume confirmation (significantly above average)
Checking for consistent direction across multiple indicators
Requiring prior bar consistency (consecutive bars moving in same direction)
Counting consecutive signals to filter out noise
These filters help eliminate noise and focus on high-probability setups.
MACD Enhancement and Integration
The indicator enhances standard MACD analysis:
Calculating MACD relative strength compared to recent history
Normalizing MACD slope relative to volatility
Detecting MACD acceleration for stronger signals
Integrating MACD crossovers with other confirmation factors
EMA Analysis System
The indicator uses a comprehensive EMA analysis system:
Calculating multiple EMAs (5, 10, 21 periods)
Detecting golden cross (10 EMA crosses above 21 EMA)
Detecting death cross (10 EMA crosses below 21 EMA)
Assessing price position relative to EMAs
Measuring EMA separation percentage
Recent Enhancements and Evolution
Version 5.2 includes several improvements:
Enhanced AVOL to show buying/selling direction through color coding
Improved VTR with adaptive analysis based on market conditions
AVOL display now works in all timeframes through sophisticated estimation
Removed animal symbols and streamlined code with bright colors for better visibility
Improved anti-false signal filters throughout the system
Optimizing Indicator Settings
For Different Market Types
Range-Bound Markets:
Lower EMA Alignment Weight (0.2-0.4)
Higher Speed of Change Weight (0.8-1.0)
Focus on SQZ and PBK signals for breakout potential
Trending Markets:
Higher EMA Alignment Weight (0.7-1.0)
Moderate Speed of Change Weight (0.4-0.6)
Focus on VTR strength and BK confirmations
Volatile Markets:
Enable Volatility Filter
Enable Adaptive Volume Analysis
Lower Momentum Period (2-3)
Focus on strong volume confirmation (VTR ≥ 80 or ≤ 20)
For Different Asset Classes
Equities:
Standard settings work well
Pay attention to AVOL for gap potential
Monitor QQQ correlation
Futures:
Consider higher Volume/RVOL weight
Reduce MACD weight slightly
Pay close attention to SQZ duration
Crypto:
Higher volatility thresholds may be needed
Monitor BTC price for correlation
Focus on stronger confirmation signals
Integrated Visual System for Trading Decisions
The colored circle indicators create an intuitive visual system for quick market assessment:
Progression Sequence: SQZ (Squeeze) → PBK (Pre-Breakout) → BK (Breakout)
This sequence often occurs in order, with the squeeze leading to pre-breakout conditions, followed by an actual breakout.
VTR (Volume Trend): Provides context about the volume supporting these movements.
Color Coding: Green for bullish conditions, red for bearish conditions, and orange/gray for neutral or undefined conditions.
Candlestick Patterns Zh# CandlePatternsZh
**CandlePatternsZh** aims to translate All Patterns indicators in TradingView into Chinese, combining educational content with TradingView's PineScript code tool to help traders better understand and apply technical analysis.
## 專案介紹 (Project Overview)
**CandlePatternsZh** 旨在將TradingView裡的All Patterns指標翻譯成中文,結合教育內容和TradingView的PineScript程式碼工具,幫助交易者更好地理解和應用技術分析。
- **中文化**:提供K線形態的中文名稱、解釋和交易策略。
- **PineScript工具**:自動檢測並視覺化K線形態,支援TradingView平台。
- **教育資源**:詳細的形態說明、圖表範例和中英對照表。
## 功能 (Features)
- Localized candlestick patterns with Chinese translations.
- PineScript scripts for detecting and visualizing patterns on TradingView.
- Educational guides with examples and trading strategies.
## 目前支援的K線形態 (Supported Patterns)
| 英文名稱 (English) | 中文名稱 (Chinese) | 說明 (Description) |
|--------------------------|--------------------|---------------------------------------------|
| Doji | 十字星 | 開盤價與收盤價接近,反映市場猶豫。 |
| Hammer | 錘形線 | 長下影線,短實體,可能預示底部反轉。 |
| Bullish Engulfing | 看漲吞沒 | 大陽線吞沒前一根陰線,表明買方力量增強。 |
| Bearish Engulfing | 看跌吞沒 | 大陰線吞沒前一根陽線,表明賣方力量增強。 |
更多形態請參閱 (docs/)。
## 快速開始 (Getting Started)
1. 複製專案:
```bash
git clone github.com
```
2. 瀏覽 `docs/` 資料夾,查看K線形態的教育內容。
3. 將 `scripts/` 資料夾中的PineScript程式碼複製到TradingView的Pine Editor以應用。
## 專案結構 (Project Structure)
```
CandlePatternsZh/
├── docs/ # 教育內容 (Educational content)
├── scripts/ # PineScript程式碼 (PineScript scripts)
├── examples/ # 圖表範例 (Chart examples)
├── translations/ # 中英對照翻譯 (Translations)
├── README.md # 專案介紹 (Project overview)
├── CONTRIBUTING.md # 貢獻指南 (Contribution guidelines)
├── LICENSE # MPL 2.0許可證 (MPL 2.0 License)
└── .gitignore # Git忽略檔案 (Git ignore file)
```
## 貢獻 (Contributing)
歡迎參與貢獻!請閱讀 (CONTRIBUTING.md) 了解如何提交翻譯、程式碼或範例。
## 許可證 (License)
This project is licensed under the Mozilla Public License 2.0 - see the (LICENSE) file for details.
## 聯繫 (Contact)
有任何問題或建議?請在GitHub上開啟 (github.com) 或聯繫我們!
3MA Signal Flow📘【概要 / Overview】
3本の移動平均線(短期・中期・長期)の「並び順」と「方向」が同時に揃ったとき、シグナル(▲)を表示するシンプルなトレンド補助インジケーターです。
- 上昇シグナル:短期 > 中期 > 長期 & すべて上向き
- 下降シグナル:短期 < 中期 < 長期 & すべて下向き
- それ以外:ノーシグナル
This indicator shows a triangle signal (▲) **only when both the correct order and direction** of short/mid/long moving averages align:
- Bullish: short > mid > long **AND** all sloping upward
- Bearish: short < mid < long **AND** all sloping downward
- Otherwise: no signal
---
🔧【用途 / Use Cases】
- トレンド初動の検出
- 押し目・戻り目後の再加速ポイント確認
- MACDなど他インジとの併用で精度向上
- マルチタイム分析にも対応(1分足〜日足OK)
- Detect early trends
- Confirm trend continuation after pullbacks
- Combine with indicators like MACD
- Works on all timeframes (1min to daily)
---
🤝【他のインジケーターや裁量との併用例 / Example Combinations】
このインジケーター単体でもシンプルに使えますが、以下のような併用例が実戦的に役立ちます:
▶ **MACDヒストグラムとの組み合わせ**
シグナル出現時にMACDが拡大傾向であれば、モメンタムが伴っていると判断しやすいです。
弱ければロット調整やスルーの判断材料に。
▶ **トレンドラインブレイクとの併用(裁量)**
自分で引いたトレンドラインを明確に抜けた直後に▲シグナルが出現するケースでは、初動キャッチの根拠となりやすく、エントリー検討の優先度が高まります。
This tool works best when combined with other context:
▶ **With MACD histogram**
A strong expanding histogram reinforces the signal.
Weak or flat? Consider skipping or reducing size.
▶ **With manual trendline breaks**
If a signal appears just after your own trendline is broken, it may indicate a trend initiation zone with high reliability.
---
⚙️【カスタマイズ可能な設定 / Adjustable Settings】
- MAの期間(デフォルト:25, 75, 200)
- シグナルの色やサイズ
- ラベル表示ON/OFFなど
- MA periods (default: 25 / 75 / 200)
- Signal colors & size
- Toggle label display
---
💬【メッセージ / Final Note】
このインジケーターは私自身の経験をもとに設計していますが、手法や使い方は人それぞれです。
ご自身の視点で活用した結果などをコメント欄で共有いただけたら嬉しいです。
お互いの知見を深めるきっかけになれば幸いです。
This indicator reflects my personal trading logic, but I welcome others to explore it in their own way.
If you find a unique or effective use case, I’d be happy to hear it.
Let’s grow together as traders.