Kaufman Trend Navigator [QuantAlgo]🟢 Overview
The Kaufman Trend Navigator is an adaptive trend following system that combines efficiency-weighted price smoothing with volatility-adjusted bands to identify and track directional market movements. The indicator dynamically adjusts its sensitivity based on market conditions, becoming more responsive during trending periods and more conservative during consolidation. This dual-layer approach provides traders and investors with a systematic framework for trend identification, entry timing, and risk management across multiple timeframes and asset classes.
🟢 How It Works
The indicator employs an efficiency ratio mechanism that measures the directional movement of price relative to total price volatility over a defined lookback period. This ratio determines the adaptive response rate, allowing the system to distinguish between genuine directional moves and random market noise. When price exhibits strong directional characteristics, the internal smoothing accelerates to track the trend more closely. Conversely, during periods of low efficiency or choppy price action, the smoothing becomes more conservative to filter out false signals.
Volatility bands are constructed using normalized range measurements, creating dynamic upper and lower boundaries around the adaptive trend calculation. These bands expand and contract based on recent market volatility, providing context-dependent thresholds for trend validation. The trend line itself updates through a band-following logic where it tracks the relevant boundary based on the current directional bias, creating a stepping mechanism that maintains trend persistence while allowing for validated reversals.
The visual representation uses a gradient-weighted display to emphasize the primary trend line while maintaining clarity on price charts. Trend direction changes trigger when the internal logic confirms a boundary crossover, generating signals for potential position entries or exits. The system includes preset configurations calibrated for different trading timeframes, from responsive settings for scalping to smoother parameters suited for swing and position trading.
🟢 How to Use It
▶ Enter Long positions when the trend line transitions to Bullish (Green) coloring, which indicates upward directional bias has been established. Conversely, enter Short positions or exit Longs when the trend line shifts to Bearish (Red), which signals confirmed downward momentum.
The trend line itself can be used as dynamic support during uptrends and resistance during downtrends, providing logical areas for position management and stop placement. Price remaining above the line during bullish phases or below during bearish phases can also be used as a confirmation of trend strength and continuation probability.
▶ Built-in alert functionality provides real-time notifications for trend changes without requiring continuous chart monitoring. Configure alerts for Bullish Trend Signal to capture upward reversals, Bearish Trend Signal for downward shifts, or the general Trend Change alert to monitor both directions simultaneously. These alerts trigger only on confirmed trend transitions, reducing noise from intrabar fluctuations.
The indicator also includes six color presets (Classic, Aqua, Cosmic, Ember, Neon, Custom) to optimize visual clarity across different chart themes and lighting conditions. Select presets based on your monitor setup and background preference to ensure immediate trend recognition without visual strain. Bar coloring can be enabled to highlight trend direction directly on the price chart, eliminating the need to reference the trend line position during rapid market analysis.
🟢 Pro Tips for Trading and Investing
▶ Match the preset configuration (or your preferred settings) to your trading timeframe: use Fast Response for intraday charts (1-15 minutes), Default for swing trading (hourly to daily), and Smooth Trend for position trading (4-hour to weekly).
▶ Combine trend signals with volume analysis and market structure to filter lower-probability setups. During sideways markets, expect increased signal frequency with reduced reliability; consider waiting for the trend line to establish a clear slope before committing capital.
▶ Use the trend line as a trailing reference rather than a fixed stop level, allowing normal intrabar volatility while protecting against genuine reversals.
▶ For portfolio management, align position sizing with trend strength by observing the angle and consistency of the trend line progression.
Indicators
Filter Ribbon1. Indicator Name
Filter Ribbon
2. One-line Introduction
A trend visualization ribbon that uses linear regression and directional scoring to highlight bullish and bearish strength with intuitive color gradients.
3. General Overview
Filter Ribbon is a minimalistic yet powerful trend visualization tool that leverages linear regression slope ordering to determine directional momentum. It analyzes the ordering of regression values over a defined lookback period and quantifies how consistently the price has been trending upward or downward.
Using a pairwise comparison system, it calculates a trend "score" and compares this to a configurable threshold to determine if a bullish, bearish, or neutral condition exists.
The result is a color-coded ribbon that sits over the chart, changing hue and opacity based on both the direction and strength of the trend. The stronger the directional alignment, the more opaque the ribbon becomes, offering traders a fast, intuitive way to assess market sentiment at a glance.
It also includes an optional linear regression line to further help visualize the central trend.
This indicator is best used in trend-following systems or as a dynamic background layer when combined with signal-based strategies.
Thanks to its efficient design and protected logic, Filter Ribbon offers high-performance visualization without compromising strategy integrity.
4. Key Advantages
🌈 Visual Trend Heatmap
Dynamic color ribbon gives real-time visual feedback on both trend direction and strength.
🔢 Quantified Trend Scoring
Calculates a mathematically sound trend score using pairwise linear regression comparisons.
⚖️ Adjustable Sensitivity
Users can tune lookback and threshold parameters to fit different asset classes and timeframes.
📉 Smooth Ribbon Effect
Plots upper/lower bands around regression line with smooth filling for a professional chart look.
🎯 Precise Trend Confirmation
Acts as a confidence layer for other entry/exit signals by confirming broader trend bias.
🔒 Secure and Minimal Codebase
Core logic is embedded securely with minimal exposure, reducing risk of replication or misuse.
📘 Indicator User Guide
📌 Basic Concept
Filter Ribbon determines trend direction and intensity by comparing the order of linear regression values over time.
It forms a ribbon on the chart that changes color based on trend direction and opacity based on trend strength.
This makes it ideal for identifying clear trending periods vs. uncertain consolidations.
⚙️ Settings Explained
Lookback Period: Number of bars for scoring the trend direction (higher = smoother trend)
Range Tolerance (%): Determines how aggressive the trend classification is (lower = stricter)
Regression Length: Period for calculating the base linear regression line
Ribbon Colors: Customize colors for bullish and bearish conditions
📈 Bullish Timing Example
Ribbon color is green and becomes increasingly opaque
Regression line slopes upward and price remains above it
Can be used as trend confirmation for long trades
📉 Bearish Timing Example
Ribbon color is red with higher opacity
Price consistently below the regression line
Useful for confirming short trade setups or avoiding long entries
🧪 Recommended Use Cases
Combine with breakout indicators to validate if the breakout aligns with broader trend
Use in swing or trend-following strategies as a background filter
Helps filter out trades during unclear, sideways market conditions
🔒 Precautions
Not a signal generator on its own — meant for trend context only
Ribbon may lag slightly during sudden trend reversals; best used with reactive entry tools
Always test ribbon parameters on your specific market/timeframe before applying live
Avoid using solely in low-volatility or flat markets — sensitivity may require tuning
+++
Liquidation Cascade Detector [QuantAlgo]🟢 Overview
The Liquidation Cascade Detector employs multi-dimensional microstructure analysis to identify forced liquidation events by synthesizing volume anomalies, price acceleration dynamics, and volatility regime shifts. Unlike conventional momentum indicators that merely track directional bias, this indicator isolates the specific market conditions where leveraged positions experience forced unwinding, creating asymmetric opportunities for mean reversion traders and market makers to take advantage of temporary liquidity imbalances.
These liquidation cascades manifest through various catalysts: overwhelming spot selling coupled with leveraged long liquidation forced unwinding creates downward spirals where organic sell pressure triggers margin calls, which generate additional selling that triggers more margin calls. Conversely, sudden large buy orders or coordinated buying can squeeze overleveraged shorts, forcing buy-to-cover orders that push price higher, triggering additional short stops in a self-reinforcing feedback loop. The indicator captures both scenarios, regardless of whether the initial catalyst is organic flow or forced liquidation.
For sophisticated traders/market makers deploying amplification strategies, this indicator serves as an early warning system for distressed order flow. By detecting the moments when cascading stop-losses and margin calls create self-reinforcing price movements, the system enables traders to: (1) identify forced participants experiencing capital pressure, (2) strategically add liquidity in the direction of panic flow to amplify displacement, (3) accumulate contra-positions during the overshoot phase, and (4) capture mean reversion profits as equilibrium pricing reasserts itself. This approach transforms destructive liquidation events into potential profit opportunities by systematically front-running and then fading coordinated forced selling/buying.
🟢 How It Works
The detection engine operates through a three-tier confirmation framework that validates liquidation events only when multiple independent market stress indicators align simultaneously:
► Tier 1: Volume Anomaly Detection
The system calculates bar-to-bar volume ratios to identify abnormal participation spikes characteristic of forced liquidations. The Volume Spike threshold filters for transactions where current volume significantly exceeds previous bar volume. When leveraged positions hit stop-losses or margin requirements, their simultaneous unwinding creates distinctive volume signatures absent during organic price discovery. This metric isolates moments when market makers face one-sided order flow from distressed participants unable to control execution timing, whether triggered by whale orders absorbing liquidity or cascading margin calls creating relentless directional pressure.
► Tier 2: Price Acceleration Measurement
By comparing current bar's absolute body size against the previous bar's movement, the algorithm quantifies momentum acceleration. The Price Acceleration threshold identifies scenarios where price velocity increases dramatically, a hallmark of cascading liquidations where each stop-loss triggers additional stops in a feedback loop. This calculation distinguishes between gradual trend development (irrelevant for amplification attacks) and explosive moves driven by forced order flow requiring immediate liquidity provision. The metric captures both panic selling scenarios where spot sellers overwhelm bid liquidity triggering long liquidations, and short squeeze dynamics where aggressive buying exhausts offer-side depth forcing short covering.
► Tier 3: Volatility Expansion Analysis
The indicator measures bar range expansion by computing the current high-low range relative to the previous bar. The Volatility Spike threshold captures regime shifts where intrabar price action becomes erratic, evidence that market depth has evaporated and order book imbalance is driving price. Combined with body-to-range analysis indicating strong directional conviction, this metric confirms that volatility expansion reflects genuine liquidation pressure rather than random noise or low-volume chop.
*Supplementary Confirmation Metrics
Beyond the three primary detection tiers, the system analyzes additional candle characteristics that distinguish genuine liquidation events from ordinary volatility:
► Candle Strength: Measures the ratio of candle body size to total bar range. High readings (above 60%) indicate strong directional conviction where price moved decisively in one direction with minimal retracement. During liquidations, distressed traders execute market orders that drive price aggressively without the normal back-and-forth of balanced trading. Strong-bodied candles with minimal wicks confirm forced participants are accepting any available price rather than attempting to minimize slippage, validating that observed volume and price acceleration stem from liquidation pressure rather than routine trading.
► Volume Climax: Identifies when current volume reaches the highest level within recent history. Climax volume events mark terminal liquidation phases where maximum panic or squeeze intensity occurs. These extreme participation spikes typically represent the final wave of forced exits as the last remaining stops are triggered or the final shorts capitulate. For mean reversion traders, volume climax signals provide optimal reversal entry timing, as they mark maximum displacement from equilibrium when all forced sellers/buyers have been exhausted.
*Directional Classification
The system categorizes cascades into two actionable classes:
1. Short Liquidation (Bullish Cascade): Upward price movement combined with cascade patterns equals forced short covering. This occurs when aggressive spot buying (often from whales placing large market orders) or coordinated buy programs exhaust available offer liquidity, spiking price upward and triggering clustered short stop-losses. Short sellers experiencing margin pressure must buy-to-close regardless of price, creating artificial demand spikes that compound the initial buying pressure. The combination of organic buying and forced covering creates explosive upward moves as each liquidated short adds buy-side pressure, triggering additional shorts in a self-reinforcing loop. Market makers can amplify this by lifting offers ahead of forced buy orders, then selling into the exhaustion at elevated levels.
2. Long Liquidation (Bearish Cascade): Downward price movement combined with cascade patterns equals forced long liquidation. This manifests when heavy spot selling (panic sellers, large institutional unwinds, or coordinated distribution) overwhelms bid-side liquidity, breaking through support levels where long stop-losses cluster. Over-leveraged longs facing margin calls must sell-to-close at any price, generating artificial supply waves that compound the initial selling pressure. The dual force of organic selling coupled with forced long liquidation creates downward spirals where each margin call triggers additional margin calls through further price deterioration. Amplification opportunities exist by hitting bids ahead of panic selling, accumulating long positions during the capitulation, and reversing as sellers exhaust.
🟢 How to Use
1. For Mean Reversion Traders
When the indicator highlights a short liquidation cascade (green background), this signals that shorts are experiencing forced buy-to-cover pressure, often initiated by whale bids or aggressive spot buying that triggered the squeeze. Mean reversion traders can interpret this as a temporary upward dislocation from fair value. As the dashboard shows declining momentum metrics and the cascade highlighting stops, this represents a potential fade opportunity. Enter short positions expecting price to revert back toward pre-cascade levels once the forced buying exhausts and the initial large buyer completes their accumulation.
When a long liquidation cascade triggers (red background), longs are undergoing forced sell-to-close liquidation, typically catalyzed by overwhelming spot selling that breached key support levels. This creates artificial downward pressure disconnected from fundamental value, as margin-driven forced selling compounds organic sell flow. Mean reversion traders wait for the cascade to complete (dashboard transitions from active liquidation status to neutral), then enter long positions anticipating snap-back toward equilibrium pricing as panic subsides and forced sellers are exhausted.
You can also monitor the dashboard's Volume Climax indicator. When it displays "YES" during an active cascade, this suggests the liquidation is reaching its terminal phase, whether driven by the final shorts being squeezed out or the last leveraged longs capitulating. Mean reversion entries become highest probability at this point, as maximum displacement from fair value has occurred. Wait for the next 1-3 bars after climax confirmation, then enter contra-trend positions with tight stops.
The Candle Strength metric also helps validate entry timing. When candle strength readings drop significantly after maintaining elevated levels during the cascade, this divergence indicates absorption is occurring. Market makers are stepping in to provide liquidity, supporting your mean reversion thesis. Strong candle bodies during the cascade followed by weaker bodies signal the forced flow is diminishing.
2. For Momentum & Trend Following Traders
When price breaks through a significant resistance level and immediately triggers a short liquidation cascade (green background), this confirms breakout validity through forced participation. Shorts positioned against the breakout are now experiencing margin pressure from the combination of breakout momentum and potential whale buying, creating self-reinforcing buying that propels price higher. Enter long positions during the cascade or immediately after, as the forced covering provides fuel for extended momentum continuation.
Conversely, when price breaks below key support and triggers a long liquidation cascade (red background), the breakdown is validated by forced selling from trapped longs. Heavy spot selling coupled with margin liquidations creates accelerated downside momentum as liquidations cascade through clustered stop-loss levels. Enter short positions as the cascade develops, riding the combined force of organic selling and forced liquidation for extended trend moves.
3. For Sophisticated Traders & Market Makers
► Amplification Attack Execution
Sophisticated operators can exploit cascades through systematic amplification positioning. When a short liquidation is detected (green highlight activating), often initiated by whale bids absorbing offer liquidity, place aggressive buy orders to front-run and amplify the forced short covering. This exacerbates upward pressure, pushing price further from equilibrium and triggering additional clustered stops. Simultaneously begin accumulating short positions at these artificially elevated levels. As dashboard metrics indicate cascade exhaustion (volume spike declining, climax signal appearing, candle strength weakening), flatten amplification longs and hold accumulated shorts into the mean reversion.
For long liquidations (red highlight), typically catalyzed by heavy spot selling overwhelming bid depth, execute the inverse strategy. Place aggressive sell orders to compound the panic selling, amplifying downward displacement and accelerating margin call triggers. Layer long entries at depressed prices during this amplification phase as forced liquidation selling creates artificial supply. When dashboard signals cascade completion (metrics normalizing, volume climax passing), exit amplification shorts and maintain long positions for the reversal trade.
► Market Making During Liquidity Crises
During detected cascades, temporarily adjust quote placement strategy. When dashboard shows all three confirmation metrics activating simultaneously with strong candle bodies, this indicates the highest probability liquidation event, whether from whale order flow or cascading margin calls. Widen spreads dramatically to capture enhanced edge during the liquidity vacuum. Alternatively, step away from quote provision entirely on your natural inventory side (stop offering during short cascades driven by aggressive buying, stop bidding during long cascades driven by overwhelming selling) to avoid adverse selection from forced flow.
Use cascade detection to inform inventory management. During short cascades initiated by large buy orders or short squeezes, reduce existing short inventory exposure while allowing the forced buying to push price higher. Rebuild short inventory only at the inflated levels created by liquidation pressure. During long cascades where spot selling compounds leveraged liquidation, reduce long inventory and use the forced selling to reaccumulate at artificially depressed prices rather than providing stabilizing liquidity too early.
► Sequential Positioning Strategy
Advanced traders can structure trades in phases: (1) Initial amplification orders placed immediately upon cascade detection to front-run forced flow, (2) Contra-position accumulation scaled in as displacement extends and dashboard readings intensify, (3) Amplification trade exit when metrics show deceleration or candle strength weakens, (4) Contra-position hold through mean reversion, targeting pre-cascade price levels. This sequential approach extracts profit from both the dislocation phase and the subsequent equilibrium restoration.
► Risk Monitoring
If cascade highlighting persists across many consecutive bars while dashboard volume readings remain extremely elevated with sustained strong candle bodies, this suggests sustained institutional deleveraging or persistent whale activity rather than simple retail liquidation. Reduce amplification position sizing significantly, as these extended events can exhibit delayed mean reversion. Professional counter-parties may be establishing dominant positions, limiting your edge.
When volatility spike metrics decline while cascade highlighting continues, professional absorption is occurring. Proceed cautiously with amplification strategies, as intelligent liquidity providers are already positioning for the reversal, potentially front-running your intended reversal trade. Similarly, if large liquidation wicks appear during cascades, this indicates partial absorption is happening, suggesting more sophisticated players are taking the opposite side of distressed flow.
Trading Sessions [QuantAlgo]🟢 Overview
The Trading Sessions indicator tracks and displays the four major global trading sessions: Sydney, Tokyo, London, and New York. It provides session-based background highlighting, real-time price change tracking from session open, and a data table with session status. The script works across all markets (forex, equities, commodities, crypto) and helps traders identify when specific geographic markets are active, which directly correlates with changes in liquidity and volatility patterns. Default session times are set to major financial center hours in UTC but are fully adjustable to match your trading methodology.
🟢 Key Features
→ Session Background Color Coding
Each trading session gets a distinct background color on your chart:
1. Sydney Session - Default orange, 22:00-07:00 UTC
2. Tokyo Session - Default red, 00:00-09:00 UTC
3. London Session - Default green, 08:00-16:00 UTC
4. New York Session - Default blue, 13:00-22:00 UTC
When sessions overlap, the color priority is New York > London > Tokyo > Sydney. This means if London and New York are both active, the background shows New York's color. The priority matches typical liquidity and volatility patterns where later sessions generally show higher volume.
→ Color Customization
All session colors are configurable in the Color Settings panel:
1. Click any session color input to open the color picker
2. Select your preferred color for that session
3. Use the "Background Transparency" slider (0-100) to adjust opacity. Lower values = more visible, higher values = more subtle
4. Enable "Color Price Bars" to color candlesticks themselves according to the active session instead of just the background
The Color column in the info table shows a block (█) in each session's assigned color, matching what you see on the chart background.
→ Information Table Breakdown
→ Timeframe Warning
If you're viewing a timeframe of 12 hours or higher, a red warning label appears center-screen. Session boundaries don't render accurately on high timeframes because the time() function in Pine Script can't detect intra-bar session changes when each bar spans multiple sessions. The warning tells you to switch to sub-12H timeframes (e.g., 4H, 1H, 30m, 15m, etc.) for proper session detection. You can disable this warning in Color Settings if needed, but session highlighting can be unreliable on 12H+ charts regardless.
→ Time Range Configuration
Every session's time range is editable in Session Settings:
1. Click the time input field next to each session
2. Enter time as HHMM-HHMM in 24-hour format
3. All times are interpreted as UTC
4. Modify these to account for daylight saving shifts or to define custom session periods based on your backtested optimal trading windows
For example, if your strategy performs best during London/NY overlap specifically, you could set London to 08:00-17:00 and New York to 13:00-22:00 to ensure you see the full overlap highlighted.
→ Weekdays Filter
The "Weekdays Only (Mon-Fri)" toggle controls whether sessions display on weekends:
Enabled: Sessions only show Monday-Friday and hide on Saturday-Sunday. Use this for markets that close on weekends (most equities, forex).
Disabled: Sessions display 24/7 including weekends. Use this for markets that trade continuously (crypto).
→ Table Display Options
The info table has several configuration options in Table Settings:
Visibility: Toggle "Show Info Table" on/off to display or hide the entire table.
Position: Nine position options (Top/Middle/Bottom + Left/Center/Right) let you place the table wherever it doesn't block your price action or other indicators.
Text Size: Four size options (Tiny, Small, Normal, Large) to match your screen resolution and visual preferences.
→ Color Schemes:
Mono: Black background, gray header, white text
Light: White background, light gray header, black text
Blue: Dark blue background, medium blue header, white text
Custom: Manual selection of all five color components (table background, header background, header text, data text, borders)
→ Alert Functionality
The indicator includes ten alert conditions you can access via TradingView's alert system:
Session Opens:
1. Sydney Session Started
2. Tokyo Session Started
3. London Session Started
4. New York Session Started
5. Any Session Started
Session Closes:
6. Sydney Session Ended
7. Tokyo Session Ended
8. London Session Ended
9. New York Session Ended
10. Any Session Ended
These alerts fire when sessions transition based on your configured time ranges, letting you automate monitoring of session changes without watching the chart continuously. Useful for strategies that trade specific session opens/closes or need to adjust position sizing when volatility regime shifts between sessions.
NHEST Liquidity Ultra Minimal (Short Labels)
NHEST Liquidity Ultra Minimal is a clean, lightweight, and distraction-free liquidity mapping tool designed for traders who want institutional-grade clarity without chart noise.
It highlights only the most important liquidity zones — nothing extra, nothing cluttered — giving you a pure view of where price is most likely to react, reverse, or sweep.
✔ Ultra-Minimal Design
This indicator removes all unnecessary visuals and focuses solely on key liquidity levels derived from price structure. No boxes, no labels, no shading overload — just the critical price zones that matter.
✔ Smart Liquidity Levels
NHEST Liquidity Ultra Minimal automatically detects major liquidity pools such as:
• Buy-side liquidity (BSL) above price
• Sell-side liquidity (SSL) below price
• Primary and secondary liquidity shelves
These levels help traders anticipate where smart money may target next.
✔ Higher-Timeframe Stability
Built to work cleanly across all timeframes, from scalping to swing trading. Liquidity zones update smoothly and remain stable even during high-volatility conditions.
✔ Perfect for Smart Money Concepts (SMC)
This indicator is ideal for traders who follow:
• ICT concepts
• Liquidity hunts
• Market structure
• Breakers & mitigation blocks
• Sweep-into-imbalance setups
✔ No Lag — No Repaints
All levels are calculated in real-time using non-repainting logic.
✔ Clean Visuals for Any Style
Whether you’re using a dark chart or a white chart, NHEST Liquidity Ultra Minimal keeps your workspace clean, organized, and easy to read — perfect for professional analysis, live streaming, and trading education content.
⸻
How to Use
1. Identify zones above price (BSL) as potential liquidity targets for bullish expansions.
2. Identify zones below price (SSL) as downside liquidity targets for bearish expansions.
3. Expect price to gravitate toward the nearest liquidity pool during consolidation.
4. Use the levels to anticipate sweeps, reversals, or continuation moves.
⸻
Best For
• Smart money traders
• Gold (XAUUSD) traders
• Crypto, Forex, Indices
• Scalpers & intraday traders
• Price-action purists
• Traders who want a clean chart
⸻
Disclaimer
This script is for educational purposes only and is not financial advice.
Always use proper risk management.
By NHEST TRADING LLC
Frequency Momentum Oscillator [QuantAlgo]🟢 Overview
The Frequency Momentum Oscillator applies Fourier-based spectral analysis principles to price action to identify regime shifts and directional momentum. It calculates Fourier coefficients for selected harmonic frequencies on detrended price data, then measures the distribution of power across low, mid, and high frequency bands to distinguish between persistent directional trends and transient market noise. This approach provides traders with a quantitative framework for assessing whether current price action represents meaningful momentum or merely random fluctuations, enabling more informed entry and exit decisions across various asset classes and timeframes.
🟢 How It Works
The calculation process removes the dominant trend from price data by subtracting a simple moving average, isolating cyclical components for frequency analysis:
detrendedPrice = close - ta.sma(close , frequencyPeriod)
The detrended price series undergoes frequency decomposition through Fourier coefficient calculation across the first 8 harmonics. For each harmonic frequency, the algorithm computes sine and cosine components across the lookback window, then derives power as the sum of squared coefficients:
for k = 1 to 8
cosSum = 0.0
sinSum = 0.0
for n = 0 to frequencyPeriod - 1
angle = 2 * math.pi * k * n / frequencyPeriod
cosSum := cosSum + detrendedPrice * math.cos(angle)
sinSum := sinSum + detrendedPrice * math.sin(angle)
power = (cosSum * cosSum + sinSum * sinSum) / frequencyPeriod
Power measurements are aggregated into three frequency bands: low frequencies (harmonics 1-2) capturing persistent cycles, mid frequencies (harmonics 3-4), and high frequencies (harmonics 5-8) representing noise. Each band's power normalizes against total spectral power to create percentage distributions:
lowFreqNorm = totalPower > 0 ? (lowFreqPower / totalPower) * 100 : 33.33
highFreqNorm = totalPower > 0 ? (highFreqPower / totalPower) * 100 : 33.33
The normalized frequency components undergo exponential smoothing before calculating spectral balance as the difference between low and high frequency power:
smoothLow = ta.ema(lowFreqNorm, smoothingPeriod)
smoothHigh = ta.ema(highFreqNorm, smoothingPeriod)
spectralBalance = smoothLow - smoothHigh
Spectral balance combines with price momentum through directional multiplication, producing a composite signal that integrates frequency characteristics with price direction:
momentum = ta.change(close , frequencyPeriod/2)
compositeSignal = spectralBalance * math.sign(momentum)
finalSignal = ta.ema(compositeSignal, smoothingPeriod)
The final signal oscillates around zero, with positive values indicating low-frequency dominance coupled with upward momentum (trending up), and negative values indicating either high-frequency dominance (choppy market) or downward momentum (trending down).
🟢 How to Use This Indicator
→ Long/Short Signals: the indicator generates long signals when the smoothed composite signal crosses above zero (indicating low-frequency directional strength dominates) and short signals when it crosses below zero (indicating bearish momentum persistence).
→ Upper and Lower Reference Lines: the +25 and -25 reference lines serve as threshold markers for momentum strength. Readings beyond these levels indicate strong directional conviction, while oscillations between them suggest consolidation or weakening momentum. These references help traders distinguish between strong trending regimes and choppy transitional periods.
→ Preconfigured Presets: three optimized configurations are available with Default (32, 3) offering balanced responsiveness, Fast Response (24, 2) designed for scalping and intraday trading, and Smooth Trend (40, 5) calibrated for swing trading and position trading with enhanced noise filtration.
→ Built-in Alerts: the indicator includes three alert conditions for automated monitoring - Long Signal (momentum shifts bullish), Short Signal (momentum shifts bearish), and Signal Change (any directional transition). These alerts enable traders to receive real-time notifications without continuous chart monitoring.
→ Color Customization: four visual themes (Classic green/red, Aqua blue/orange, Cosmic aqua/purple, Custom) allow chart customization for different display environments and personal preferences.
DeMARK 9-13For the first time ever, the power and precision of DeMARK is now available on TradingView. Combining core elements of the renowned Sequential® and Combo® studies, the DeMARK 9-13® indicator delivers the same unique insights in a streamlined interface.
The Sequential and Combo family of indicators have been trusted by the top financial firms, funds and figures for decades to enhance their trading and investment strategies. Known for their 9 Setup® and 13 Countdown® readings, these studies are designed to highlight potential market reversals as well as key areas of support, resistance and momentum. With DeMARK 9-13, users can access these groundbreaking techniques in one integrated offering.
While it's often said, "the trend is your friend," it's also crucial to recognize when it's about to end. Identifying potential market inflection points allows you to buy weakness and sell strength, improving your cost basis, reducing risk and allowing you to capitalize on a greater portion of the reversal.
At its core, 9s and 13s are constructed to measure market momentum and exhaustion. Both Sequential and Combo consist of two phases: Setup and Countdown. The Setup phase compares price activity across nine consecutive bars to define the market environment, while the Countdown phase performs a separate 13-bar comparison to indicate when a reversal may be imminent. A 9-13 reading reflects the fulfillment of both phases. When combined with TDST® lines and Risk Levels®, this approach provides a more comprehensive view of the market.
The DeMARK 9-13 indicator consists of:
Sequential
Combo
9 Setup
13 Countdown
TD Setup Trend (TDST)
Perfected® Setup
Risk Levels & Zones
Together, these elements provide an unparalleled view into the inner workings of the market, helping you anticipate shifts and act with greater precision.
🟡 DESCRIPTION
SETUP
The initial stage of the DeMARK 9-13 indicator is the Setup phase. This series is the same for both Sequential and Combo and compares the close of the current bar to the close four bars earlier. Buy Setup counts are displayed in blue below the data set and fulfilled when there are nine consecutive closes less than the close four bars earlier. Sell Setup counts are displayed in blue above the data set and fulfilled when there are nine consecutive closes greater than the close four bars earlier.
During the active Setup, all number counts remain visible to show the progress of the series. Upon completing the Setup, the 9 is recorded and the 1-8 counts are removed. This reduces visual distraction and allows for more result history (due to TradingView’s 500-label limit). Setups are always counting, with Price Flips® occurring as the series alternates between Buy and Sell Setups.
PERFECTED SETUPS
Setups can be classified as either “Perfected” or “Imperfected.” The Setup is Perfected when the 9 is completed and the 6 and 7 bars have been exceeded. In the case of a Buy Setup, the low of bars 8 or 9 must be less than the low of bars 6 and 7. Conversely, in the case of a Sell Setup, the high of bars 8 or 9 must be greater than the high of bars 6 and 7. The point at which the Setup is perfected is displayed with a solid blue dot, matching the color of the Setup series.
Generally speaking, the market will reverse or stabilize within one to four bars of a completed and Perfected Setup 9. The strength and duration of this response can be assessed with the implementation of other indicators, such as TDST® lines.
TD SETUP TREND (TDST)
The TDST indicator is derived from the Setup phase and is used to confirm market trends and identify likely trend failures. A TDST resistance line is drawn from the highest true high of the completed 9 Buy Setup series, while a TDST support line is drawn from the lowest true low of the completed 9 Sell Setup series. These TDST lines provide an indication of market support, resistance and momentum to help evaluate the integrity of the move.
TDST lines are displayed in a lighter blue than the Setup phase. When Breakout Qualifiers are enabled, TDST lines can be considered qualified or disqualified. Disqualified TDSTs appear as a dashed line, indicating potential support in the case of TDST support lines or resistance in the case of TDST resistance lines. Qualified TDSTs appear as a solid line and will stop drawing when a breakout or breakdown occurs, suggesting continued momentum.
COUNTDOWN
Once the Setup phase is completed, the second stage of the DeMARK 9-13 indicator can begin — the Countdown phase. Sequential and Combo share the same Setup series, but there are subtle differences in their respective Countdown phases, each constructed to identify areas of potential trend exhaustion in different market conditions.
Sequential is designed to respond in both trending and consolidating markets, while Combo is more responsive in trending environments and inactive during periods of market consolidation. For that reason, we often say that Combo identifies the highest or lowest points of a move, with Sequential identifying secondary tests. When aligned, these results are even more powerful.
SEQUENTIAL COUNTDOWN
A Sequential Buy Countdown is possible upon completion of a Buy Setup and looks for 13 closes less than or equal to the low two bars earlier. Sequential Buy Countdown counts are displayed as a dark green number below the data set and can begin as early as the 9 bar of a completed Buy Setup. A Sequential Sell Countdown is possible upon completion of a Sell Setup and looks for 13 closes greater than or equal to the high two bars earlier. Sequential Sell Countdown counts are displayed as a dark red number above the data set and can begin as early as the 9 bar of a Sell Setup. Because of this overlap, Sequential Countdown requires as few as 12 bars beyond the 9 Setup to complete the cycle.
Unlike the Setup phase, Countdown counts need not be consecutive. During the active Countdown, all number counts remain visible to display the progress of the series. Upon completing the Countdown, the 13 is confirmed and the 1-12 counts are removed. This reduces visual distraction and allows for more result history (due to TradingView’s 500-label limit).
A completed Sequential 13 Countdown marks the fulfillment of the 9-13 reading and identifies potential market exhaustion. Additional elements of Sequential Countdown like Intersection, Countdown Deferral, Risk Levels and the 12-bar rule can be used to provide further detail and are outlined below.
COMBO COUNTDOWN
A Combo Buy Countdown is possible upon completion of a Buy Setup and looks for 13 closes less than or equal to the low two bars earlier, with additional rules based on the Combo version selected. Combo Buy Countdown counts are displayed as a light green number below the data set and can begin as early as the 1 bar of a completed Buy Setup. A Combo Sell Countdown is possible upon completion of a Sell Setup and looks for 13 closes greater than or equal to the high two bars earlier, with additional rules based on the Combo version selected. Combo Sell Countdown counts are displayed as a magenta number above the data set and can begin as early as the 1 bar of a Sell Setup. Because of this overlap, Combo Countdown requires as few as four bars beyond the 9 Setup to complete the cycle.
Unlike the Setup phase, Countdown counts need not be consecutive. During the active Countdown, all number counts remain visible to display the progress of the series. Upon completing the Countdown, the 13 is confirmed and the 1-12 counts are removed. This reduces visual distraction and allows for more result history (due to TradingView’s 500-label limit).A completed Combo 13 Countdown marks the fulfillment of the 9-13 reading and identifies potential market exhaustion. Additional elements of Combo Countdown like Risk Levels and the 12-bar rule can be used to provide further detail and are outlined below.
RISK LEVELS
When a 9 Setup or 13 Countdown indication is recorded, a Risk Level is generated to identify the zone within which a reversal should occur. This level accounts for any residual trend momentum without invalidating the buy or sell indication. For a completed buy indication, the Risk Level marks the price above which the 9 or 13 remains active and serves as additional support. Conversely, for a completed sell indication, it marks the price below which the 9 or 13 remains active and serves as additional resistance. This level can be viewed as the maximum threshold the indication can withstand before the prevailing momentum overwhelms and negates it and is often used to establish stop-loss areas.
Risk Level line colors correspond to the completed Setup, Sequential Countdown or Combo Countdown that generated it. Shaded risk zones can also be displayed, further highlighting the indication window. When Breakout Qualifiers are enabled, the Risk Level can be considered qualified or disqualified. Disqualified Risk Levels appear as a dashed line, indicating likely support in the case of a buy indication and likely resistance in the case of a sell indication. Qualified Risk Levels appear as a solid line and will stop drawing when a breakout or breakdown occurs, suggesting continued momentum.
4-BAR & 12-BAR METRICS
Generally speaking, the market should see some sort of response within four bars of a completed 9 Setup indication and 12 bars of a completed 13 Countdown indication. If the chart has not responded in that time the existing trend is likely to continue.
INTERSECTION
Intersection is an elective setting unique to Sequential Countdown. When enabled, it postpones the start of the Countdown phase until the price range of the later Setup counts overlap with the price activity of any Setup count occurring three or more bars earlier. This is intended as a pressure release to avoid commencing the count during an extraordinary breakaway market event or aberration. The Intersection level’s color matches its corresponding Buy and Sell Countdown reading and is displayed as a horizontal line on the confirming bar.
COUNTDOWN DEFERRAL
The Sequential Countdown phase of the DeMARK 9-13 indicator includes two optional Countdown Deferral qualifiers — the 13 vs. 8 rule and the 8 vs. 5 rule.
The 13 vs. 8 Countdown Deferral rule is designed to ensure that the tail end of the Countdown is representative of the existing trend. To fulfill this restriction, the low of the 13 bar must be less than or equal to the close of the 8 bar in the case of a Sequential Buy Countdown, while the high of the 13 bar must be greater than or equal to the close of the 8 bar in the case of a Sequential Sell Countdown. Because Countdown counts can increment in a sideways market, this rule helps to confirm that a trend has remained intact and improves accuracy as the series reaches its completion.
When enabled, this Countdown Deferral condition substitutes a “+” for what would otherwise be a “13,” thereby postponing the count. A Sequential Buy Countdown deferral is displayed in dark green below the data set, while a Sequential Sell Countdown deferral is displayed in dark red above the data set. Note that this optional setting is enabled by default and labeled “Last vs. 8 Qualifier” in the DeMARK 9-13 indicator settings.
Whereas the 13 vs. 8 rule is designed to ensure that the tail end of the Sequential series is representative of the existing trend, the 8 vs. 5 Countdown Deferral rule is designed to ensure that the body of the Countdown phase is properly configured. As with the 13 vs. 8 rule, the 8 vs. 5 rule matches the color and placement of its corresponding Buy or Sell Countdown series and substitutes a “+” for what would otherwise be a “5”, thereby postponing the count. The 13 vs. 8 comparison is critical to the Countdown phase, while the 8 vs. 5 comparison is elective and provides additional confidence that the trend has remained intact.
COUNTDOWN RECYCLE®
Markets are constantly evolving to reflect new information. Just as fundamentals experience occasional adjustments impacting the expectations of the asset, so too do technical analysis and market timing. This is most often reflected in the Sequential and Combo Countdown phase by a process known as Recycling.
Recycling occurs when a Countdown 13 is interrupted by a subsequent overlapping “22” Setup count in the same direction. Recycling suggests that the new Setup is sufficiently strong to weaken the impact of a confirmed Countdown series and resets the process. A recycling indication is represented as an “R” where the Countdown 13 was previously displayed, matching the color and placement of that Buy or Sell Countdown series.
COUNTDOWN CANCELLATION
Once completed, a 9 Setup and 13 Countdown confirmation is permanent and never altered. However, it’s important to note that Countdowns can be cancelled during their construction phase. There are two scenarios where a Countdown series would be removed from the chart.
The first Countdown cancellation scenario occurs when a subsequent 9 Setup is confirmed in the opposite direction prior to the completion of the Countdown phase. The reasoning is that market conditions have changed from what they were when the initial Setup was fulfilled, making the newer Setup more relevant. Upon confirming an opposing 9 Setup, the incomplete Countdown phase is canceled and removed from the chart.
The second Countdown cancellation scenario takes place when the TDST in the opposite direction is violated, suggesting a conclusion to the previous trend and a confirmation of a new one. In these cases, a true low that occurs above the Buy Setup’s TDST resistance line, or a true high that occurs below the Sell Setup’s TDST support line, cancels the incomplete Countdown phase and removes the counts from the chart.
🟡 SETTINGS
DISPLAY
Setup : Displays the Setup phase of the Sequential and Combo indicators. The first swatch controls the color of the Buy Setup phase displayed below the data set. The second swatch controls the color of the Sell Setup phase displayed above the data set.
TDST : Displays the TDST lines for the Sequential and Combo indicators. The first swatch controls the color of the TDST resistance lines associated with the Buy Setup phase. The second swatch controls the color of the TDST support lines associated with the Sell Setup phase.
Sequential Countdown : Displays the Countdown phase of the Sequential indicator. The first swatch controls the color of the Buy Countdown phase displayed below the data set. The second swatch controls the color of the Sell Countdown phase displayed above the data set.
Combo Countdown : Displays the Countdown phase of the Combo indicator. The first swatch controls the color of the Buy Countdown phase displayed below the data set. The second swatch controls the color of the Sell Countdown phase displayed above the data set.
Indicator font size : Adjusts the size of the Sequential and Combo indicator counts displayed above and below the data set. ( Default: 18 )
Display full series count : Displays the full Sequential and Combo numerical series for the active 9 Setup and 13 Countdown phases only, or for all completed indications (within TradingView’s 500-label limit). ( Default: Active only )
SETUP
Bars to Setup : Number of consecutive bars needed to complete the Setup phase. ( Default: 9 )
Bars to look back : Defines the bar to which the current Setup count is compared. ( Default: 4 )
Setup compare : Determines whether equal prices should increment the Setup count. ( Default: Without equal )
Count completion weight : Adjusts the font weight of the Setup completion counts displayed above and below the data set. ( Default: Bold )
Setup Perfection : Identifies when Setup Perfection occurs, with the low of the final two Buy Setup counts less than the lows three or four bars prior to completion, and the high of the final two Sell Setup counts greater than the highs three or four bars prior to completion. With the default “Bars to Setup” setting of “9,” Perfection occurs when the low of Buy Setup bar 8 or 9 is less than the lows of bars 6 and 7, and the high of Sell Setup bar 8 or 9 is greater than the highs of bars 6 and 7. ( Default: Enabled )
Enable Setup Risk Level : Displays the Risk Level tied to the Setup. ( Default: On )
Enable Setup Risk Level Zone : Shades the area between the completed Setup and its Risk Level. ( Default: On )
TD SETUP TREND (TDST)
TDST line thickness : Adjusts the thickness of TDST support and resistance lines. ( Default: Standard )
COUNTDOWN (SHARED)
Bars to Countdown : Number of bars needed to complete the Countdown phase. ( Default: 13 )
Bars to look back : Defines the bar to which the current Countdown count is compared. ( Default: 2 )
Countdown comparison value : Output used in the Countdown look back comparison. For Aggressive settings, Low/High is required. ( Default: Close )
Termination Count price value : Allows the final count of the Countdown phase to use a different comparison value for more flexibility. ( Default: Open or Close )
Countdown compare : Determines whether equal prices should increment the Countdown count. ( Default: With equal )
Count completion weight : Adjusts the font weight of the Countdown completion counts displayed above and below the data set. ( Default: Bold )
SEQUENTIAL COUNTDOWN
Enable Intersection : Toggles the Sequential Intersection phase requirement. ( Default: Off )
8 vs. 5 Qualifier : Qualifier requiring the low of the 8 Buy Countdown to be less than the close of the 5 count, and the high of the 8 Sell Countdown to be greater than the close of the 5 count. ( Default: Off )
Last vs. 8 Qualifier : Qualifier requiring the low of the final Buy Countdown count to be less than the close of the 8 count, and the high of the final Sell Countdown to be greater than the close of the 8 count. With the default “Bars to Countdown” setting of “13,” the low of the 13 Buy Countdown would need to be less than the close of the 8 count, and the high of the 13 Sell Countdown would need to be greater than the close of the 8 count. ( Default: On )
Enable Risk Level : Displays the Risk Level tied to the Countdown. ( Default: On )
Enable Risk Level Zone : Shades the area between the completed Countdown and its Risk Level. ( Default: On )
COMBO COUNTDOWN
Combo version : Determines the version of Combo used for the Countdown phase, whether it’s Standard, Conservative or Aggressive. ( Default: Standard )
Enable Risk Level : Displays the Risk Level tied to the Countdown. ( Default: On )
Enable Risk Level Zone : Shades the area between the completed Countdown and its Risk Level. ( Default: On )
RECYCLE
Enable Recycle : Toggles Recycling, replacing the final Sequential and Combo Countdown count with an “R” when its rules are met. With the default “Bars to Countdown” setting of “13,” a recycled 13 count would be replaced with the ‘R’. ( Default: On )
Setup Count : Defines the number of consecutive Setup bars required to trigger a Recycle. ( Default: 22 )
CANCEL
Reverse Setup : Incomplete Countdowns are cancelled when a Setup in the opposite direction is confirmed. ( Default: On )
TDST Rule : Incomplete Buy Countdowns are cancelled when a true low exceeds the Buy Setup’s TDST resistance line, and incomplete Sell Countdowns are cancelled when a true high breaks the Sell Setup’s TDST support line. ( Default: On )
BREAKOUT QUALIFIERS
Enable Breakout Qualifiers : Breakout Qualifier rules will dictate whether TDST and Risk Level line breakouts can be considered qualified or disqualified. Qualified lines are solid and will stop drawing when a breakout or breakdown occurs, suggesting continued momentum. Disqualified lines are dashed, serving as resistance in the case of a false breakout and support in the case of a false breakdown. When Breakout Qualifier rules are disabled, a line becomes solid on any close beyond the level. ( Default: On )
🟡 DISCLAIMER
By subscribing to and or using DeMARK 9-13 or any other DeMARK Indicators on TradingView, you acknowledge that you have read, understood and agree to the DeMARK for TradingView Terms of Service (located in the DeMARK account signature) as well as any updates to those terms which may happen from time-to-time.
The DeMARK Indicators are powerful tools designed to assist the individual process you use to understand financial markets and make investment decisions but they are not trading systems. Any information presented is not, and should not be construed as, financial or investment advice. You should not make any investment decision based solely on the information provided by these tools. The products we offer do not recommend or endorse any specific securities, financial products or investment strategies. Any information, data or analysis presented by any DeMARK products or tools is generic and does not consider your personal financial situation, investment objectives or risk tolerance. All investment decisions are yours alone and are made at your own risk. Those risks include, but are not limited to, potential system errors, data inaccuracies or outages.
From time to time unauthorized and unaffiliated third parties use the DeMARK name or the names of our copyrighted and/or trademarked products in an unapproved, inaccurate and misleading manner. While we do our best to remove these examples, some fake, flawed and fraudulent may exist. The only official and accurate sources of our products are those listed on the DeMARK company website. Unauthorized reproduction, copying, scraping, republishing, distribution, dissemination or any other use of our name, trademarks and/or copyrighted materials (including this script documentation) is prohibited.
Without in any way limiting DeMARK’s exclusive rights under copyright, trademark and all other intellectual property protections, any use of DeMARK products to “train” generative artificial intelligence (AI) technologies to generate text is expressly prohibited. DeMARK reserves all rights to license uses of this work for generative AI training and development of machine learning language or machine learning visual models.
The data and analysis in our products are based on sources believed to be reliable, but DeMARK does not control or guarantee the accuracy, completeness or timeliness of this information.
As a DeMARK subscriber or user, you are responsible for conducting your own research and due diligence before making any investment decisions.
Past performance, including any simulated or historical data, is not indicative of future results.
Paid script
PipGuard LotMatePipGuard LotMate. Real-Time Risk & Lot Size Calculator
Indicator published by PipGuard.
PipGuard LotMate is an operational assistant that automatically calculates the optimal lot size in real time.
The logic is based on your risk per trade , simulated account balance , and stop-loss distance in pips .
It displays a compact, professional-looking table summarizing the key parameters of your risk plan perfectly integrated into your chart with a clean, modern design.
How it Works
• Automatic Risk Calculation:
The system operates in two modes:
1️⃣ Risk Percentage → calculates the risk as a fixed percentage of your account balance.
2️⃣ Risk Amount → lets you directly define the dollar amount ($) you wish to risk.
• Adaptive Pip Value:
The calculation automatically adjusts to the instrument in use (e.g., XAU, XAG, JPY, USD), ensuring an accurate pip value estimation across different markets.
• Interactive Table:
The table displays key data such as:
• Simulated Balance
• Calculation Mode
• Risk Percentage
• Risk Amount ($)
• Stop-loss Distance (pips)
• Recommended Lot Size , highlighted in PipGuard gold
How to Use
1. Set your simulated account balance .
2. Choose the calculation mode (percentage or fixed amount).
3. Define the stop-loss distance in pips.
4. Instantly view the recommended lot size in real time.
5. Use this information to maintain risk consistency across all trades.
💡 Perfect for traders seeking disciplined risk management, especially in high-volatility markets such as XAU/USD or leveraged currency pairs.
EXAMPLE OF USE
EXAMPLE OF USE
Settings
• Simulated Account Balance → Base balance for all calculations.
• Risk Percentage per Trade → Risk percentage applied to the balance.
• Risk Amount (in $) → Fixed amount to risk (active when *Risk Amount Mode* is selected).
• Number of Pips for Stop Loss → Average stop-loss distance in pips.
• Style Preset → Visual theme (*PipGuard Dark* or *Light*) to match your chart style.
• Table Size → Choose between *Small, Medium,* or *Large* display formats.
Limitations
• Calculations are theoretical and based on a simulated model.
• They do not account for broker commissions or slippage.
• All values are for educational and analytical purposes only .
Access
This script is designed for chart use and is free.
This script is publicly available as an educational risk management tool.
Educational tool for trade risk management and position size planning. Not financial advice.
Indicator published by PipGuard.
Average Volume Corner BoxAn indicator that anchors a single info box to the chart’s top right corner. It compares the current volume to a selectable moving average (SMA, EMA, WMA) and displays a status (VOL > AVG or VOL < AVG), the current volume, the average volume, and percent difference. The color switches between red and green backgrounds so you can read volume at a glance without cluttering the chart with those stinky volume rectangles.
Features
• Fixed corner box anchored to the chart top right
• Choose MA type: SMA, EMA, WMA
• Selectable MA length
• Optional percent difference display
• Threshold multiplier to only flag meaningful spikes (e.g., vol > avg * 1.5)
• Configurable colors and font size
PipGuard – FlashLevelsPipGuard – FlashLevels. Reactive Lines on New Local Highs and Lows
Indicator published by PipGuard.
PipGuard – FlashLevels automatically draws reactive lines every time a new high or low is formed within a user-defined bar range .
Each level consists of a dual-line setup (a main line plus a thicker, softer second line) and a price label for quick readability.
Lines can dynamically extend to the current candle and are automatically deleted once price breaks through them.
How it Works
• Level Detection:
When the price reaches the highest high or lowest low of the last *N* bars, the indicator marks a BuyStop (red) or SellStop (green) level.
• Dual-Line Design:
Each level features two synchronized lines the main one and a second, thicker and slightly faded one, for a clear and elegant visual style.
• Dynamic Management:
Lines can either extend to the current candle (live update) or remain fixed-length , depending on your preference.
Once price breaks a level , both lines and labels are automatically removed to keep the chart clean and accurate.
How to Use
1. Add the script to your chart.
2. Set the FlashLevels LENGTH (number of bars used for detection).
3. Choose whether to extend lines to the current candle or keep a fixed length .
4. Use the color coding and labels to distinguish BuyStop/SellStop and their exact price levels .
5. Integrate these reactive levels into your risk-management or trade trigger framework.
HOW TO USE
HOW TO USE
Settings
• FlashLevels LENGTH → Window used to detect new highs/lows.
• Length of Half-Line → Line length when live extension is disabled.
• Extend lines to the current candle? → Enables or disables dynamic extension.
• BuyStop/SellStop Color → Main line colors.
• Second Line Color → Thicker overlay line colors.
• Price Label Color → Text color for the price label.
Note: Both lines are synchronized in position and length to ensure visual consistency .
Limitations
• Levels are purely technical and depend on the selected bar range : shorter ranges can produce frequent updates .
• Lines are horizontal segments ; if you prefer levels that persist beyond the visible range, enable line extension.
• Past performance does not guarantee future results .
Access
This script is designed for chart use and is free.
Technical analysis tool designed to map dynamic price levels on new local extremes. Not financial advice.
Indicator published by PipGuard.
Adjustable ORB Indicator [V.4]A customizable opening range indicator.
Adjust the following using this indicator;
~ Sessions
~ OR time settings
~ Colors
~ And more to come.
ATHENS GOLD MASTER v1.1e — by ATHENSATHENS GOLD MASTER v1.1e — by ATHENS
Professional Smart-Money-Based Gold Trading System
Built with institutional precision and ICT logic for XAUUSD traders.
⚙️ Core Strategy Components
✅ ICT Premium/Discount Model
✅ Daily Pivot Points & Price Bias
✅ Order Block & Break of Structure Detection
✅ Fair Value Gap (FVG) Mitigation Logic
✅ Dynamic Support & Resistance Recognition
✅ Candlestick + Chart Pattern Confirmation
✅ Multi-Timeframe Structure Alignment
💡 How It Works
The indicator scans real-time GOLD price action and generates Buy / Sell signals only when 3 or more confirmations align across smart money and technical confluence.
Each signal is visually marked on the chart with labels showing:
Confirmation count (1–5)
Key structure notes (Pivot, OB, FVG, etc.)
Support/Resistance zone tags
🧠 Optional Filters for Accuracy (90%+)
EMA-200 Trend Filter
ATR Volatility Filter
Volume Strength Filter
Session-Time Restriction (London–New York Overlap)
🟩 Buy Signal Example
Price above Pivot & in Discount Zone
Bullish Order Block Retest
FVG Mitigation Confirmed
Bullish Engulfing / Pin-Bar Confirmation
🟥 Sell Signal Example
Price below Pivot & in Premium Zone
Bearish Order Block Retest
FVG Mitigation Confirmed
Bearish Engulfing / Pin-Bar Confirmation
📊 Extra Features
Live Bias Table (Panel)
Selective Smart S/R Zones
Auto Session Filter
Alerts for Buy, Sell, and Strong Confluences
Best for: Gold Traders, ICT Students, Smart-Money Concepts Enthusiasts, and Professional Price-Action Analysts.
⚜️ Developed by ATHENS | Sahan Akalanka
📈 “Trade Smart. Think Institutional.”
NeuroPip OscillatorNeuroPip Oscillator – Adaptive Momentum Oscillator with Deviation “Bursts”
Indicator published by PipGuard.
NeuroPip Oscillator is an adaptive momentum oscillator displayed in a separate panel , designed to read market momentum and regime shifts through a dynamically adjusted signal line.
The main signal ( NeuroPulse ) changes color according to the active regime, while the Synapse Burst line highlights real-time deviations and momentum acceleration phases.
How it Works
• Non-Classical Logic:
Unlike conventional 3-candle swing models, NeuroPip uses a custom adaptive mechanism that blends trend behavior , volatility , and closing dynamics over a dynamic bar range .
This allows the oscillator to filter noise and focus on true structural impulses , rather than random fluctuations, producing smoother and more reliable regime detection.
• Color Shift & Waves:
The NeuroPulse line turns orange in bullish phases and violet in bearish phases.
A Colour fill between the signal and baseline visually represents the intensity and direction of momentum in real time.
• Synapse Burst (Active Deviation):
The Synapse Burst line measures the distance between the momentum curve and its adaptive baseline, revealing acceleration "bursts" or momentum drops as they occur.
How to Use
1. Add the oscillator to your chart (separate panel).
2. Read the color of the signal to determine the current market regime (bullish/bearish).
3. Observe the wave strength to gauge momentum continuity and pressure .
4. Use Synapse Burst spikes to confirm acceleration or deceleration in price movement.
5. Combine its insights with your risk management and main chart analysis.
EXAMPLE OF USE
EXAMPLE OF USE
Settings
• All parameters are internally preconfigured for stability and visual consistency.
• Colors and waves are optimized and not user-editable.
• Works on all markets and timeframes (panel overlay=false ).
Alerts (Recommended to Enable)
Two built-in alerts trigger on bar close when the regime changes:
• Bullish Cross → signal turning bullish .
• Bearish Cross → signal turning bearish .
Each alert includes the symbol and timeframe , ensuring you never miss a regime shift even when you’re away from the screen.
Limitations
• The oscillator confirms regime changes; it does not predict them.
• In low-volatility environments, transitions may appear more frequent.
• Past performance does not guarantee future results .
Access
This script is available under invite-only access .
To request access, use the link provided in the Signature below the publication.
Note: Technical analysis tool designed to study price momentum and structure. It does not constitute financial advice or guarantee performance.
Indicator published by PipGuard.
Volume Cluster Support and Resistance Levels [QuantAlgo]🟢 Overview
This indicator identifies statistically significant support and resistance levels through volume cluster analysis, isolating price zones characterized by elevated trading activity and institutional participation. By quantifying areas where volume concentration exceeded historical norms, it reveals price levels with demonstrated supply-demand imbalances that exhibit persistent influence on subsequent price action. The methodology is asset-agnostic and timeframe-independent, applicable across equities, cryptocurrencies, forex, and commodities from intraday to weekly intervals.
🟢 Key Features
1. Support and Resistance Levels
The indicator scans historical price data to identify bars where volume exceeds a user-defined threshold multiplier relative to the rolling average. For each qualifying bar, a representative price is calculated using the average of high, low, and close. Proximate price levels within a specified percentage range are then aggregated into discrete clusters using volume-weighted averaging, eliminating redundant signals. Clusters are ranked by cumulative volume to determine statistical significance. Finally, the indicator plots horizontal levels at each cluster price: support levels (green) below current price indicate zones where historical buying pressure exceeded selling pressure, while resistance levels (red) above current price mark zones where sellers historically dominated. These levels represent areas of established liquidity and price discovery, where institutional order flow previously concentrated.
The Touch Count (T) metric quantifies historical price interaction frequency, while Total Volume (TV) measures aggregate trading activity at each level, providing objective criteria for assessing level strength and trade execution decisions.
2. Volume Histogram
A histogram appears below the price chart, displaying relative volume for each bar within the lookback period, with bar height scaled to the maximum volume observed. Green bars represent up-periods (close > open) indicating buying pressure, while red bars show down-periods (close < open) indicating selling pressure. This visualization helps you confirm the validity of support/resistance levels by seeing where volume actually spiked, identify accumulation/distribution patterns, and validate breakouts by checking if they occur on above-average volume.
3. Built-in Alerts
Automated alerts trigger when price crosses below support levels or breaks above resistance levels, allowing you to monitor multiple assets without constant chart-watching.
4. Customizable Color Schemes
The indicator provides four preset color configurations (Classic, Aqua, Cosmic, Custom) optimized for visual clarity across different charting environments. Each scheme maintains consistent color mapping for support and resistance zones across both level lines and volume histogram components. The Custom configuration permits full color specification to accommodate individual charting setups, ensuring optimal visual contrast for extended analysis sessions.
Classic:
Aqua:
Cosmic:
Custom:
🟢 Pro Tips
→ Trade entry optimization: Execute long positions at support levels with high touch counts or upon confirmed resistance breakouts accompanied by above-average volume
→ Risk parameter definition: Position stop-loss orders near identified support/resistance zones with statistical significance to minimize premature exits
→ Breakout validation: Require volume confirmation exceeding historical average when price penetrates resistance to filter false breakouts
→ Level strength assessment: Prioritize levels with higher touch counts and total volume metrics for enhanced probability trade setups
→ Multi-timeframe confluence: Synthesize support/resistance levels across multiple timeframes to identify high-conviction zones where daily support aligns with 4-hour resistance structures
Buy on Blue, Sell on Red (EMA + optional RSI) TyusEThis indicator is a trend-following system that helps traders identify potential buy and sell opportunities using a combination of EMA crossovers and an optional RSI filter for confirmation.
It plots:
🔵 Blue dots (BUY signals) when the fast EMA crosses above the slow EMA — signaling bullish momentum.
🔴 Red dots (SELL signals) when the fast EMA crosses below the slow EMA — signaling bearish momentum.
You can optionally filter these signals using the RSI (Relative Strength Index) to avoid false breakouts — for example, only taking BUY signals when RSI is above 55 (showing strength) and SELL signals when RSI is below 45 (showing weakness).
⚙️ Features
Adjustable Fast EMA and Slow EMA lengths
Optional RSI confirmation filter
Customizable RSI thresholds for entries
“Confirm on bar close” setting to reduce repainting
Built-in alert conditions for real-time notifications
💡 How to Use
Use blue dots as potential long entries and red dots as potential short entries.
Confirm direction with overall trend, structure, or higher timeframe alignment.
Combine with support/resistance, volume, or price action for best results.
⚠️ Note
This is a technical tool, not financial advice. Always backtest and use proper risk management before trading live markets.
T.E
PipGuard RollerPipPipGuard RollerPip – Confirmed Swing (H/L) Detector with Visual Guidance
Indicator published by PipGuard.
PipGuard RollerPip is a confirmed swing detector that plots H (swing high) and L (swing low) labels directly on the chart. It includes horizontal guides extending to the current candle and a compact legend showing the latest detected swing.
The logic is designed to identify true structural swings , filtering out market noise and ignoring minor fluctuations that lack technical relevance.
How it Works
• Detection Method (Non-Classical):
Unlike traditional 3-candle or fractal models (e.g., ICT-style structures), RollerPip employs a more refined process. It combines trend dynamics , movement amplitude , volume intensity , and closing behavior within a dynamic bar range .
This approach allows it to detect genuine structural swings moments where price exhaustion or continuation is confirmed while drastically reducing false signals.
• Labels and Guides:
Each confirmed swing generates an H (High) or L (Low) label with a progressive effect that softens over time.
Optional horizontal guides extend the swing level to the current candle, offering a clear visual anchor for ongoing analysis.
• Dynamic Legend:
A mini-legend updates in real-time, showing the most recent swing (H or L) for immediate context of the current market phase.
• Built-in Alerts (Focus):
Alerts trigger only on candle close when a new confirmed swing High or Low is detected.
Notifications automatically include symbol and timeframe , ensuring you never miss a key structural move , even when away from the chart.
How to Use
1. Add the script to your chart.
2. Observe the H/L labels to identify confirmed swing points.
3. Use the guides to maintain a visual reference up to the current bar.
4. Enable alerts (New Swing HIGH / LOW) to receive automatic notifications whenever a new swing is confirmed.
5. Integrate this information into your own technical workflow and risk management system.
EXAMPLE OF USE
EXAMPLE OF USE
Settings
• `Label Size` → Controls the size of H/L markers.
• `Swing → Current Candle Guides` → Enables or disables guide lines.
• `Maximum Guide Length (bars)` → Sets the extension of the visual reference.
• `Dashed Style` → Toggles between solid or dashed line style.
• Integrated Alerts: Two ready-to-use conditions ( New Swing HIGH / LOW ) with formatted messages (ticker + timeframe).
• All visual parameters are preconfigured to ensure a clean, consistent, and professional display.
Limitations
• Swings are confirmed on bar close they validate turning points but do not anticipate them.
• In low-volatility or sideways phases, more frequent swings may appear.
• Past performance does not guarantee future results .
Access
This script is available under invite-only access .
To request access, use the link provided in our Signature below this publication.
Note: This is a technical analysis tool designed to study price structure and movement. It does not constitute investment advice or imply guaranteed outcomes.
Indicator published by PipGuard.
PipGuard Magic BoxPipGuard Magic Box – Multi-Timeframe EMA Regime Analyzer
Indicator published by PipGuard.
PipGuard Magic Box is a complete dashboard for market regime analysis, built on a Multi-Timeframe architecture.
This script goes beyond a simple crossover: it blends the power of the classic EMA(50) and EMA(200) with a dynamic "Warmap" and a compact MTF table , offering an immediate glance at trend coherence.
It identifies the dominant trend , filters noise, and prints "Buy" / "Sell" signals only on confirmed crossovers .
How it works: The Logic
• Core Logic (Regime):
The regime (Bullish or Bearish) is defined by the position of the EMA(50) relative to the EMA(200). The indicator waits for the candle close to validate the signal.
• Warmap (Momentum):
The colored area between the two EMAs is not static. It dynamically adapts to momentum, providing an immediate visual read on the trend's strength and direction.
• MTF Table (Coherence):
The panel summarizes the regime status across seven key timeframes (Current, 24h, 4h, 1h, 15m, 5m, 1m). This allows for a quick assessment of whether higher timeframes are aligned with the current one.
• Confirmation Signals:
"Buy" and "Sell" labels appear exclusively on confirmed crossovers . This approach prevents false signals generated by intra-bar noise and improves operational clarity.
How to Use
1. Add the script to your chart.
2. Observe the EMA 50/200 crossover and the Warmap to identify the dominant regime.
3. Check the MTF Table to verify directional coherence across different timeframes.
4. Set up Alerts to receive automatic notifications (push or sound) at the exact moment a crossover (bullish or bearish) is confirmed. Never miss a regime change again .
5. Use the "Buy" / "Sell" signals as confirmation tools to integrate into your risk management strategy.
EXAMPLE OF USE
EXAMPLE OF USE
Settings
• `EMA 50 / EMA 200 Length` → Adjusts the regime's sensitivity and responsiveness.
• `Table Text Color` → Adapts the table's text readability for light or dark backgrounds.
• Custom Alerts: Fully configurable for notifications on Bullish (💚) and Bearish (❤️🔥) crossovers.
• All visual parameters are pre-configured to ensure visual consistency and maximum clarity.
Limitations
• EMAs are lagging indicators. They are designed to confirm a regime change, not to anticipate it.
• The MTF table data updates at the close of the higher timeframe's candle , which may introduce slight update delays.
• Past performance does not guarantee future results .
Access
This script is available only via invite-only access .
To request access, use the link provided in our Signature below this publication.
Note: This script is a technical tool for market analysis. It does not guarantee profits or specific results.
Indicator published by PipGuard.
BTC Open interest (binance, bybit, okx, bitget, htx, deribit)📈 BTC Open Interest Candles (Binance, Bybit, OKX, Bitget, HTX, Deribit)
🌟 Overview
This Pine Script indicator fetches real-time Bitcoin (BTC) perpetual futures open interest (OI) data from major cryptocurrency exchanges (Binance, OKX, Bybit, Bitget, HTX, Deribit), aggregates it, and visualizes it as candlesticks on the chart. Each candlestick represents the combined OI values at the open, high, low, and close of that bar. Candlestick colors change based on whether the current bar’s close OI is higher or lower than the previous bar’s, allowing intuitive tracking of OI fluctuations.
✨ Key Features
Multi-exchange OI aggregation: Combines OI data from selected exchanges to create a unified OI candlestick series.
Candlestick visualization: Converts aggregated OI values into open, high, low, and close values to plot candlestick charts, clearly showing the range and trend of OI over time.
Color-coded OI change:
Close OI higher than previous bar → teal candlestick (OI increase)
Close OI lower than previous bar → red candlestick (OI decrease)
⚙️ Inputs
Show Binance true Include Binance OI in the aggregation.
Show OKX true Include OKX OI in the aggregation.
Show Bybit true Include Bybit OI in the aggregation.
Show Bitget true Include Bitget OI in the aggregation.
Show HTX true Include HTX OI in the aggregation.
Show Deribit true Include Deribit OI in the aggregation.
📊 Calculation Methodology
Requests OI open, high, low, close values for the specified exchange using request.security().
Missing data (na) is treated as 0 to prevent aggregation errors.
Returns OI values as arrays.
➕ Aggregation of individual OI
Variables combinedOiOpen, combinedOiHigh, combinedOiLow, combinedOiClose initialized to 0.
Calls getOI for each enabled exchange and adds returned values to the combined variables.
🎨 Candlestick color determination
oiColorCond checks whether combinedOiClose > combinedOiClose .
True → openInterestColor = color.teal (OI increase)
False → openInterestColor = color.red (OI decrease)
🕯 Candlestick plotting
plotCandles ensures at least one exchange is selected.
plotcandle() is called with na values if no exchanges are selected to avoid drawing candles.
Candle body, wick, and border colors follow openInterestColor.
💡 How to Use
🌐 Integrated market sentiment
Observe overall market OI changes using a unified candlestick chart rather than fragmented exchange data to understand market sentiment and capital flow.
🔍 Compare with price movements
Analyze price charts alongside OI candlesticks to see how OI changes affect (or are affected by) price.
🟢 Price rising + teal OI candlestick (OI increase): Indicates bullish momentum from new long entries or short covering.
🔴 Price falling + red OI candlestick (OI decrease): Suggests bearish momentum from long liquidations or increased short covering.
📈 Price rising + red OI candlestick (OI decrease): Could reflect a short squeeze or profit-taking in long positions.
📉 Price falling + teal OI candlestick (OI increase): May indicate new short positions or forced long liquidations (stop-loss triggers).
⚡ Volatility prediction
Large OI candles or consecutive candles of a certain color can indicate imminent or ongoing significant market moves.
PDB - RSI Based Buy/Sell signals with 4 MARSI Based Buy/Sell Signals on Price chart + 4 MA System
This indicator plots RSI-based Buy & Sell signals directly on the price chart , combined with a 4-Moving-Average trend filter (20/50/100/200) for higher accuracy and cleaner trade timing.
The signal triggers when RSI reaches user-defined overbought/oversold levels, but unlike a standard RSI, this version plots the signals **on the chart**, not in the RSI window — making entries and exits easier to see in real time.
RSI Levels Are Fully Customizable
The default RSI thresholds are 30 (oversold) and 70 (overbought).
However, you can adjust these to fit your trading style. For example:
> When day trading on the 5–15 min timeframe, I personally use 35 (oversold) and 75 (overbought) to catch moves earlier.
> The example shown in the preview image uses 10-minute timeframe settings.
You can change the RSI levels to trigger signals from **any value you choose**, allowing you to tailor the indicator to scalping, day trading, or swing trading.
4 Moving Averages Included:
20, 50, 100, 200 MAs act as dynamic trend filters so you can:
✔ trade signals only in the direction of trend
✔ avoid false reversals
✔ identify momentum shifts more clearly
Works on all markets and timeframes — crypto, stocks, FX, indices.
Global M2 Overlay 5 DaysTrading + Offset -AlexBank🌍 This indicator visualizes the Global M2 Money Supply — a combined estimate of the total liquid money circulating in major economies worldwide — directly overlaid on your active chart (for example, XAU/USD).
It allows traders to see how global liquidity evolves in relation to asset prices such as gold, Bitcoin, or equities.
In simple terms, M2 reflects how much liquid capital exists in the global financial system.
When M2 expands, liquidity increases — which can fuel asset price growth.
When M2 contracts, liquidity tightens — often signaling risk-off periods or deflationary pressures.
⚙️ This indicator aggregates national M2 data from multiple economies (United States, Eurozone, China, Japan, UK, etc.), converted to USD equivalents via live FX rates, giving a global view of liquidity trends.
Indicator Features
🧭 Overlay on any chart — plots the global M2 line directly on top of your active asset (e.g. XAU/USD, BTC/USD), allowing direct visual comparison.
⏩ Day offset control — shift the M2 curve forward or backward in time (in real trading days) to test how global liquidity leads or lags asset prices.
Example: shifting +90 days means the M2 data appears 90 trading days later (not calendar days, since weekends are excluded).
📅 5-day trading week logic — automatically converts real days into trading days, ensuring accurate offsets that match market calendars.
📊 Optional moving average — smooths the M2 line to better visualize long-term liquidity trends.
🎚️ Manual scaling (optional) — adjust the height of the M2 curve to visually align it with your charted asset’s price range (does not affect data values).
💡 How to Use
1/ Apply the indicator to your preferred chart (e.g., Gold / XAUUSD).
2/ Adjust the time offset parameter to see how changes in global liquidity precede or follow price movements.
3/ Use on DAILY TimeFrame for clear visibility
Enjoy !
Hidden Impulse═══════════════════════════════════════════════════════════════════
HIDDEN IMPULSE - Multi-Timeframe Momentum Detection System
═══════════════════════════════════════════════════════════════════
OVERVIEW
Hidden Impulse is an advanced momentum oscillator that combines the Schaff Trend Cycle (STC) and Force Index into a comprehensive multi-timeframe trading system. Unlike standard implementations of these indicators, this script introduces three distinct trading setups with specific entry conditions, multi-timeframe confirmation, and trend filtering.
═══════════════════════════════════════════════════════════════════
ORIGINALITY & KEY FEATURES
This indicator is original in the following ways:
1. DUAL-TIMEFRAME STC ANALYSIS
Standard STC implementations work on a single timeframe. This script
simultaneously analyzes STC on both your trading timeframe and a higher
timeframe, providing trend context and filtering out low-probability signals.
2. FORCE INDEX INTEGRATION
The script combines STC with Force Index (volume-weighted price momentum)
to confirm the strength behind price moves. This combination helps identify
when momentum shifts are backed by genuine buying/selling pressure.
3. THREE DISTINCT TRADING SETUPS
Rather than generic overbought/oversold signals, the indicator provides
three specific, rule-based setups:
- Setup A: Classic trend-following entries with multi-timeframe confirmation
- Setup B: Divergence-based reversal entries (highest probability)
- Setup C: Mean-reversion bounce trades at extreme levels
4. INTELLIGENT FILTERING
All signals are filtered through:
- 50 EMA trend direction (prevents counter-trend trades)
- Higher timeframe STC alignment (ensures macro trend agreement)
- Force Index confirmation (validates volume support)
═══════════════════════════════════════════════════════════════════
HOW IT WORKS - TECHNICAL EXPLANATION
SCHAFF TREND CYCLE (STC) CALCULATION:
The STC is a cyclical oscillator that combines MACD concepts with stochastic
smoothing to create earlier and smoother trend signals.
Step 1: Calculate MACD
- Fast MA = EMA(close, Length1) — default 23
- Slow MA = EMA(close, Length2) — default 50
- MACD Line = Fast MA - Slow MA
Step 2: First Stochastic Smoothing
- Apply stochastic calculation to MACD
- Stoch1 = 100 × (MACD - Lowest(MACD, Smoothing)) / (Highest(MACD, Smoothing) - Lowest(MACD, Smoothing))
- Smooth result with EMA(Stoch1, Smoothing) — default 10
Step 3: Second Stochastic Smoothing
- Apply stochastic calculation again to the smoothed stochastic
- This creates the final STC value between 0-100
The dual stochastic smoothing makes STC more responsive than MACD while
being smoother than traditional stochastics.
FORCE INDEX CALCULATION:
Force Index measures the power behind price movements by incorporating volume:
Force Raw = (Close - Close ) × Volume
Force Index = EMA(Force Raw, Period) — default 13
Interpretation:
- Positive Force Index = Buying pressure (bulls in control)
- Negative Force Index = Selling pressure (bears in control)
- Force Index crossing zero = Momentum shift
- Divergences with price = Weakening momentum (reversal signal)
TREND FILTER:
A 50-period EMA serves as the trend filter:
- Price above EMA50 = Uptrend → Only LONG signals allowed
- Price below EMA50 = Downtrend → Only SHORT signals allowed
This prevents counter-trend trading which accounts for most losing trades.
═══════════════════════════════════════════════════════════════════
THE THREE TRADING SETUPS - DETAILED
SETUP A: CLASSIC MOMENTUM ENTRY
Concept: Enter when STC exits oversold/overbought zones with trend confirmation
LONG CONDITIONS:
1. Higher timeframe STC > 25 (macro trend is up)
2. Primary timeframe STC crosses above 25 (momentum turning up)
3. Force Index crosses above 0 OR already positive (volume confirms)
4. Price above 50 EMA (local trend is up)
SHORT CONDITIONS:
1. Higher timeframe STC < 75 (macro trend is down)
2. Primary timeframe STC crosses below 75 (momentum turning down)
3. Force Index crosses below 0 OR already negative (volume confirms)
4. Price below 50 EMA (local trend is down)
Best for: Trending markets, continuation trades
Win rate: Moderate (60-65%)
Risk/Reward: 1:2 to 1:3
───────────────────────────────────────────────────────────────────
SETUP B: DIVERGENCE REVERSAL (HIGHEST PROBABILITY)
Concept: Identify exhaustion points where price makes new extremes but
momentum (Force Index) fails to confirm
BULLISH DIVERGENCE:
1. Price makes a lower low (LL) over 10 bars
2. Force Index makes a higher low (HL) — refuses to follow price down
3. STC is below 25 (oversold condition)
Trigger: STC starts rising AND Force Index crosses above zero
BEARISH DIVERGENCE:
1. Price makes a higher high (HH) over 10 bars
2. Force Index makes a lower high (LH) — refuses to follow price up
3. STC is above 75 (overbought condition)
Trigger: STC starts falling AND Force Index crosses below zero
Why this works: Divergences signal that the current trend is losing steam.
When volume (Force Index) doesn't confirm new price extremes, a reversal
is likely.
Best for: Reversal trading, range-bound markets
Win rate: High (70-75%)
Risk/Reward: 1:3 to 1:5
───────────────────────────────────────────────────────────────────
SETUP C: QUICK BOUNCE AT EXTREMES
Concept: Catch rapid mean-reversion moves when price touches EMA50 in
extreme STC zones
LONG CONDITIONS:
1. Price touches 50 EMA from above (pullback in uptrend)
2. STC < 15 (extreme oversold)
3. Force Index > 0 (buyers stepping in)
SHORT CONDITIONS:
1. Price touches 50 EMA from below (pullback in downtrend)
2. STC > 85 (extreme overbought)
3. Force Index < 0 (sellers stepping in)
Best for: Scalping, quick mean-reversion trades
Win rate: Moderate (55-60%)
Risk/Reward: 1:1 to 1:2
Note: Use tighter stops and quick profit-taking
═══════════════════════════════════════════════════════════════════
HOW TO USE THE INDICATOR
STEP 1: CONFIGURE TIMEFRAMES
Primary Timeframe (STC - Primary Timeframe):
- Leave empty to use your current chart timeframe
- This is where you'll take trades
Higher Timeframe (STC - Higher Timeframe):
- Default: 30 minutes
- Recommended ratios:
* 5min chart → 30min higher TF
* 15min chart → 1H higher TF
* 1H chart → 4H higher TF
* Daily chart → Weekly higher TF
───────────────────────────────────────────────────────────────────
STEP 2: ADJUST STC PARAMETERS FOR YOUR MARKET
Default (23/50/10) works well for stocks and forex, but adjust for:
CRYPTO (volatile):
- Length 1: 15
- Length 2: 35
- Smoothing: 8
(Faster response for rapid price movements)
STOCKS (standard):
- Length 1: 23
- Length 2: 50
- Smoothing: 10
(Balanced settings)
FOREX MAJORS (slower):
- Length 1: 30
- Length 2: 60
- Smoothing: 12
(Filters out noise in 24/7 markets)
───────────────────────────────────────────────────────────────────
STEP 3: ENABLE YOUR PREFERRED SETUPS
Toggle setups based on your trading style:
Conservative Trader:
✓ Setup B (Divergence) — highest win rate
✗ Setup A (Classic) — only in strong trends
✗ Setup C (Bounce) — too aggressive
Trend Trader:
✓ Setup A (Classic) — primary signals
✓ Setup B (Divergence) — for entries on pullbacks
✗ Setup C (Bounce) — not suitable for trending
Scalper:
✓ Setup C (Bounce) — quick in-and-out
✓ Setup B (Divergence) — high probability scalps
✗ Setup A (Classic) — too slow
───────────────────────────────────────────────────────────────────
STEP 4: READ THE SIGNALS
ON THE CHART:
Labels appear when conditions are met:
Green labels:
- "LONG A" — Setup A long entry
- "LONG B DIV" — Setup B divergence long (best signal)
- "LONG C" — Setup C bounce long
Red labels:
- "SHORT A" — Setup A short entry
- "SHORT B DIV" — Setup B divergence short (best signal)
- "SHORT C" — Setup C bounce short
IN THE INDICATOR PANEL (bottom):
- Blue line = Primary timeframe STC
- Orange dots = Higher timeframe STC (optional)
- Green/Red bars = Force Index histogram
- Dashed lines at 25/75 = Entry/Exit zones
- Background shading = Oversold (green) / Overbought (red)
INFO TABLE (top-right corner):
Shows real-time status:
- STC values for both timeframes
- Force Index direction
- Price position vs EMA
- Current trend direction
- Active signal type
═══════════════════════════════════════════════════════════════════
TRADING STRATEGY & RISK MANAGEMENT
ENTRY RULES:
Priority ranking (best to worst):
1st: Setup B (Divergence) — wait for these
2nd: Setup A (Classic) — in confirmed trends only
3rd: Setup C (Bounce) — scalping only
Confirmation checklist before entry:
☑ Signal label appears on chart
☑ TREND in info table matches signal direction
☑ Higher timeframe STC aligned (check orange dots or table)
☑ Force Index confirming (check histogram color)
───────────────────────────────────────────────────────────────────
STOP LOSS PLACEMENT:
Setup A (Classic):
- LONG: Below recent swing low
- SHORT: Above recent swing high
- Typical: 1-2 ATR distance
Setup B (Divergence):
- LONG: Below the divergence low
- SHORT: Above the divergence high
- Typical: 0.5-1.5 ATR distance
Setup C (Bounce):
- LONG: 5-10 pips below EMA50
- SHORT: 5-10 pips above EMA50
- Typical: 0.3-0.8 ATR distance
───────────────────────────────────────────────────────────────────
TAKE PROFIT TARGETS:
Conservative approach:
- Exit when STC reaches opposite level
- LONG: Exit when STC > 75
- SHORT: Exit when STC < 25
Aggressive approach:
- Hold until opposite signal appears
- Trail stop as STC moves in your favor
Partial profits:
- Take 50% at 1:2 risk/reward
- Let remaining 50% run to target
───────────────────────────────────────────────────────────────────
WHAT TO AVOID:
❌ Trading Setup A in sideways/choppy markets
→ Wait for clear trend or use Setup B only
❌ Ignoring higher timeframe STC
→ Always check orange dots align with your direction
❌ Taking signals against the major trend
→ If weekly trend is down, be cautious with longs
❌ Overtrading Setup C
→ Maximum 2-3 bounce trades per session
❌ Trading during low volume periods
→ Force Index becomes unreliable
═══════════════════════════════════════════════════════════════════
ALERTS CONFIGURATION
The indicator includes 8 alert types:
Individual setup alerts:
- "Setup A - LONG" / "Setup A - SHORT"
- "Setup B - DIV LONG" / "Setup B - DIV SHORT" ⭐ recommended
- "Setup C - BOUNCE LONG" / "Setup C - BOUNCE SHORT"
Combined alerts:
- "ANY LONG" — fires on any long signal
- "ANY SHORT" — fires on any short signal
Recommended alert setup:
- Create "Setup B - DIV LONG" and "Setup B - DIV SHORT" alerts
- These are the highest probability signals
- Set "Once Per Bar Close" to avoid false alerts
═══════════════════════════════════════════════════════════════════
VISUALIZATION SETTINGS
Show Labels on Chart:
Toggle on/off the signal labels (green/red)
Disable for cleaner chart once you're familiar with the indicator
Show Higher TF STC:
Toggle the orange dots showing higher timeframe STC
Useful for visual confirmation of multi-timeframe alignment
Info Panel:
Cannot be disabled — always shows current status
Positioned top-right to avoid chart interference
═══════════════════════════════════════════════════════════════════
EXAMPLE TRADE WALKTHROUGH
SETUP B DIVERGENCE LONG EXAMPLE:
1. Market Context:
- Price in downtrend, below 50 EMA
- Multiple lower lows forming
- STC below 25 (oversold)
2. Divergence Formation:
- Price makes new low at $45.20
- Force Index refuses to make new low (higher low forms)
- This indicates selling pressure weakening
3. Signal Trigger:
- STC starts turning up
- Force Index crosses above zero
- Label appears: "LONG B DIV"
4. Trade Execution:
- Entry: $45.50 (current price at signal)
- Stop Loss: $44.80 (below divergence low)
- Target 1: $47.90 (STC reaches 75) — risk/reward 1:3.4
- Target 2: Opposite signal or trail stop
5. Trade Management:
- Price rallies to $47.20
- STC reaches 68 (approaching target zone)
- Take 50% profit, move stop to breakeven
- Exit remaining at $48.10 when STC crosses 75
Result: 3.7R gain
═══════════════════════════════════════════════════════════════════
ADVANCED TIPS
1. MULTI-TIMEFRAME CONFLUENCE
For highest probability trades, wait for:
- Primary TF signal
- Higher TF STC aligned (>25 for longs, <75 for shorts)
- Even higher TF trend in same direction (manual check)
2. VOLUME CONFIRMATION
Watch the Force Index histogram:
- Increasing bar size = Strengthening momentum
- Decreasing bar size = Weakening momentum
- Use this to gauge signal strength
3. AVOID THESE MARKET CONDITIONS
- Major news events (Force Index becomes erratic)
- Market open first 30 minutes (volatility spikes)
- Low liquidity instruments (Force Index unreliable)
- Extreme trending days (wait for pullbacks)
4. COMBINE WITH SUPPORT/RESISTANCE
Best signals occur near:
- Key horizontal levels
- Fibonacci retracements
- Previous day's high/low
- Psychological round numbers
5. SESSION AWARENESS
- Asia session: Use lower timeframes, Setup C works well
- London session: Setup A and B both effective
- New York session: All setups work, highest volume
═══════════════════════════════════════════════════════════════════
INDICATOR WINDOWS LAYOUT
MAIN CHART:
- Price action
- 50 EMA (green/red)
- Signal labels
- Info panel
INDICATOR WINDOW:
- STC oscillator (blue line, 0-100 scale)
- Higher TF STC (orange dots, optional)
- Force Index histogram (green/red bars)
- Reference levels (25, 50, 75)
- Background zones (green oversold, red overbought)
═══════════════════════════════════════════════════════════════════
PERFORMANCE OPTIMIZATION
For best results:
Backtesting:
- Test on your specific instrument and timeframe
- Adjust STC parameters if win rate < 55%
- Record which setup works best for your market
Position Sizing:
- Risk 1-2% per trade
- Setup B can use 2% risk (higher win rate)
- Setup C should use 1% risk (lower win rate)
Trade Frequency:
- Setup B: 2-5 signals per week (be patient)
- Setup A: 5-10 signals per week
- Setup C: 10+ signals per week (scalping)
═══════════════════════════════════════════════════════════════════
CREDITS & REFERENCES
This indicator builds upon established technical analysis concepts:
Schaff Trend Cycle:
- Developed by Doug Schaff (1996)
- Original concept published in Technical Analysis of Stocks & Commodities
- Implementation based on standard STC formula
Force Index:
- Developed by Dr. Alexander Elder
- Described in "Trading for a Living" (1993)
- Classic volume-momentum indicator
The multi-timeframe integration, three-setup system, and specific
entry conditions are original contributions of this indicator.
═══════════════════════════════════════════════════════════════════
DISCLAIMER
This indicator is a technical analysis tool and does not guarantee profits.
Past performance is not indicative of future results. Always:
- Use proper risk management
- Test on demo account first
- Combine with fundamental analysis
- Never risk more than you can afford to lose
═══════════════════════════════════════════════════════════════════
SUPPORT & QUESTIONS
If you find this indicator helpful, please:
- Leave a like and comment
- Share your feedback and results
- Report any bugs or issues
For questions about usage or optimization for specific markets,
feel free to comment below.
═════════════════════════════════════════════════════════════
Relative Performance Tracker [QuantAlgo]🟢 Overview
The Relative Performance Tracker is a multi-asset comparison tool designed to monitor and rank up to 30 different tickers simultaneously based on their relative price performance. This indicator enables traders and investors to quickly identify market leaders and laggards across their watchlist, facilitating rotation strategies, strength-based trading decisions, and cross-asset momentum analysis.
🟢 Key Features
1. Multi-Asset Monitoring
Track up to 30 tickers across any market (stocks, crypto, forex, commodities, indices)
Individual enable/disable toggles for each ticker to customize your watchlist
Universal compatibility with any TradingView symbol format (EXCHANGE:TICKER)
2. Ranking Tables (Up to 3 Tables)
Each ticker's percentage change over your chosen lookback period, calculated as:
(Current Price - Past Price) / Past Price × 100
Automatic sorting from strongest to weakest performers
Rank: Position from 1-30 (1 = strongest performer)
Ticker: Symbol name with color-coded background (green for gains, red for losses)
% Change: Exact percentage with color intensity matching magnitude
For example, Rank #1 has the highest gain among all enabled tickers, Rank #30 has the lowest (or most negative) return.
3. Histogram Visualization
Adjustable bar count: Display anywhere from 1 to 30 top-ranked tickers (user customizable)
Bar height = magnitude of percentage change.
Bars extend upward for gains, downward for losses. Taller bars = larger moves.
Green bars for positive returns, red for negative returns.
4. Customizable Color Schemes
Classic: Traditional green/red for intuitive interpretation
Aqua: Blue/orange combination for reduced eye strain
Cosmic: Vibrant aqua/purple optimized for dark mode
Custom: Full personalization of positive and negative colors
5. Built-In Ranking Alerts
Six alert conditions detect when rankings change:
Top 1 Changed: New #1 leader emerges
Top 3/5/10/15/20 Changed: Shifts within those tiers
🟢 Practical Applications
→ Momentum Trading: Focus on top-ranked assets (Rank 1-10) that show strongest relative strength for trend-following strategies
→ Market Breadth Analysis: Monitor how many tickers are above vs. below zero on the histogram to gauge overall market health
→ Divergence Spotting: Identify when previously leading assets lose momentum (drop out of top ranks) as potential trend reversal signals
→ Multi-Timeframe Analysis: Use different lookback periods on different charts to align short-term and long-term relative strength
→ Customized Focus: Adjust histogram bars to show only top 5-10 strongest movers for concentrated analysis, or expand to 20-30 for comprehensive overview
AI Money FlowAI Money Flow is a revolutionary trading indicator that combines cutting-edge artificial intelligence technologies with traditional Smart Money concepts. This indicator provides comprehensive market analysis with emphasis on signal accuracy and reliability.
Key Features:
Volume Profile with Smart Money Analysis - Displays real money flow instead of just volume, identifying key support and resistance levels based on actual trader activity.
Volatility-Based Support & Resistance - Intelligent support and resistance levels that dynamically adapt to market volatility in real-time for maximum accuracy.
Order Flow Analysis - Advanced detection of buying and selling pressure that reveals the true intentions of large market players.
Machine Learning Optimization - Futuristic AI technology that automatically learns and optimizes settings for each specific asset and timeframe.
Risk Management - Advanced volatility and price spike detection for better risk management and capital protection.
Real-time Dashboard - Modern dashboard with color-coded signals provides instant overview of market conditions and trends.
Accuracy: 88-93%






















