Historical Price LevelsHistorical Price Levels is a lightweight indicator that visualizes key price extremes over multiple recent time windows.
The indicator automatically calculates and displays the highest high and lowest low for the following periods:
• Last 1 Day
• Last 7 Days
• Last 15 Days
• Last 30 Days
Core Purpose
• Quickly identify recent support and resistance zones
• Provide objective historical context without subjective drawing
• Help traders assess range expansion, compression, and breakout potential
Penunjuk dan strategi
ADX Curvature SuiteADX² Curvature Suite: Beyond Trend Strength
Detect Trend Ignition Before the Crowd by Analyzing the Second Derivative of Momentum.
█ OVERVIEW: A PARADIGM SHIFT IN TREND ANALYSIS
This is not another ADX indicator. This is a complete paradigm shift in how we perceive and trade trends.
The standard Average Directional Index (ADX) is a powerful but fundamentally flawed tool for the modern trader. It is a lagging indicator. It tells you that a trend existed . It confirms what has already happened. The ADX² Curvature Suite was engineered to solve this problem by asking a more profound question: not "Is there a trend?" but " Is a trend being born right now? " and " Is this established trend about to die? "
To achieve this, we go beyond the first dimension of trend strength and venture into the second and third dimensions: Velocity and Acceleration . We don't just measure the ADX value; we measure its rate of change, and the rate of change of its rate of change. This is Curvature Analysis . It allows us to see the subtle, invisible forces building beneath the surface of the market—the coiling spring of momentum right before a trend explodes, and the critical loss of thrust right before it collapses.
This suite is a fusion of three professional-grade analytical engines working in perfect concert:
The Curvature Engine: A sophisticated calculus-based system that computes the 1st and 2nd derivatives of the ADX to quantify its momentum.
The Phase Detection System: A proprietary model that classifies the market into one of six distinct phases in a trend's lifecycle, from Dormancy to Exhaustion.
The Quantum Vortex Bands™: A visually stunning, adaptive volatility and momentum channel for the ADX itself, providing context to its every move.
Together, they form a comprehensive decision-support system designed to give you an almost unfair advantage in identifying trend ignition and exhaustion points before the rest of the market has even registered a change.
█ THE SCIENCE: THE THREE PILLARS OF ADX²
The genius of this suite lies in its multi-layered mathematical foundation. It's a symphony of classical theory and modern statistical analysis.
Pillar 1: The Core ADX Engine (The "What")
At its base, the suite uses the classic ADX calculation developed by J. Welles Wilder Jr. It measures the strength of a trend, irrespective of its direction, on a scale of 0-100. The Directional Movement Indicators (+DI and -DI) provide the directional bias. This is our foundation—the raw data from which we extract a higher-dimensional truth.
Pillar 2: Curvature Analysis (The "When")
This is the revolutionary core of ADX². We apply the principles of differential calculus to the ADX line itself.
Velocity (1st Derivative): Calculated as ADX - ADX . This is the speed of the ADX. A positive velocity means trend strength is increasing. A negative velocity means it's decreasing. This is a leading indicator compared to the ADX value alone.
Acceleration (2nd Derivative): Calculated as Velocity - Velocity or ADX - 2*ADX + ADX . This is the change in speed of the ADX. It's the "force" being applied to the trend.
Positive Acceleration is like pressing the gas pedal on a car. It signifies a trend is not just strengthening, but strengthening at an increasing rate. This is the mathematical signature of Ignition .
Negative Acceleration is like hitting the brakes. It signifies a trend is losing thrust, even if its speed (ADX value) is still high. This is the mathematical signature of Exhaustion .
By analyzing these derivatives, we can identify critical inflection points in trend momentum that are completely invisible to anyone looking at the standard ADX alone.
Pillar 3: Z-Score Normalization (The "How")
Raw acceleration values are meaningless when comparing different assets or timeframes. An acceleration spike on NQ is vastly different from one on EURUSD. To solve this, we employ a powerful statistical tool: the Z-Score .
The Z-Score formula is: Z = (Value - Mean) / Standard_Deviation
We apply this to our calculated acceleration values. The result is a normalized score that tells us how many standard deviations away from the "normal" behavior the current acceleration is. A Z-Score of +2.0 means the current acceleration is a 2-sigma event—statistically significant and rare. This makes our signals universal and adaptive . A +2.0 sigma Ignition signal has the same statistical weight on a 1-minute chart of a volatile crypto as it does on a daily chart of a stable stock. This is what allows the suite to work out-of-the-box on virtually any market, automatically adapting to its unique volatility and character.
█ THE SIX PHASES OF A TREND: A MARKET LIFECYCLE
The ADX² engine uses its curvature and Z-Score data to classify the market into one of six distinct phases, providing a clear, color-coded narrative of the trend's lifecycle.
💤 DORMANT: ADX is low and flat. The market is consolidating. There is no trend. This is the time to stand aside and wait.
⚡ IGNITION: ADX is low, but a powerful spike in positive acceleration has been detected. The engine of a new trend is firing up. This is your earliest entry signal.
🚀 ACCELERATION: ADX is rising with positive velocity. The trend has left the station and is gaining momentum. This is the main "trend following" phase.
🏔 MATURE: ADX is high and its velocity is flattening. The trend is well-established and powerful, but no longer accelerating. This is a time to be cautious and manage positions.
🔥 EXHAUSTION: ADX is high, but a significant negative acceleration event has occurred. The trend has hit the brakes hard. A reversal or deep pullback is highly probable. This is your primary exit signal.
📉 DECLINE: ADX is falling with negative velocity. The trend's strength is actively fading, and the market is returning to a dormant state.
█ THE ARSENAL: MASTERING THE VISUALS
Every visual element is a data-rich component designed for rapid interpretation.
The Main Chart: Signals & Trade Management
Signal Shapes: Every signal appears as a shape on the main chart.
Triangles (▲▼): These are the highest conviction signals— Ignition and
Exhaustion . Their color indicates the specific event type.
X-Crosses (◇): These mark Divergences between price and ADX—powerful reversal warnings.
Kill Zone Labels: These are dynamic, floating labels that appear in real-time when high-probability conditions are met.
⚡ IGNITION ZONE: Appears below price when the market is dormant but curvature is building. It's a "prepare to engage" warning.
🔥 EXHAUSTION ZONE: Appears above price when the trend is mature but rapidly decelerating. It's a "prepare to exit" warning.
The Signal Line System: When a signal fires, a full trade management overlay can be drawn.
Entry Line: A colored line (Solid, Dashed, or Dotted) at the signal price.
SL/TP Lines: Dotted lines showing ATR-based Stop Loss (Red) and up to 3 Take Profit levels (Green).
Live Tracking: The lines track progress, dimming when a TP is hit and self-deleting upon completion, leaving a ✓ for a win or an ✗ for a loss. It's a visual backtester on your live chart.
The Lower Pane: The Engine Room
The ADX Line: The line itself is color-coded. A dull color indicates low ADX, a neutral color for a building trend, and a bright, vibrant color for a high, mature trend.
Signal Dots: Colored circles and crosses are plotted directly on the ADX line, allowing you to instantly correlate the signal with the exact ADX level and phase.
The Quantum Vortex Bands™: This is not a Bollinger Band. This is a dynamic, six-layered channel for the ADX itself.
Adaptive Width: The bands expand and contract based on both ADX volatility and its current acceleration (curvature). High acceleration forces the bands wider, anticipating a larger move.
Phase-Adaptive Colors: The fill color of the bands changes dynamically to match the currently detected market phase, giving you an at-a-glance understanding of the trend's health.
Interpretation: When ADX pushes to the outer bands, it's in an extreme state. An Ignition signal when ADX is at the lower band is a high-conviction entry. An Exhaustion signal when ADX is at the upper band is a high-conviction exit.
The Dashboard (HUD): Your All-In-One Command Center
This professional Heads-Up Display provides a comprehensive, real-time summary of every critical metric.
MARKET Section: Shows the raw ADX value, its strength classification (e.g., "STRONG"), and the current directional bias (Bulls vs. Bears) with the spread between +DI and -DI.
MOMENTUM Section: This is the curvature readout. It displays the numerical Velocity (VEL), the Z-Score of the Curvature (CURV), and the RSI of the ADX (RSI²) for a meta-momentum perspective.
PHASE Section: Your at-a-glance trend lifecycle status. It shows the current confirmed phase icon and name (e.g., "⚡ IGNITION"), a counter for how many bars the phase has been active, and the type/strength of any active signal.
STATUS Section: A quick check on secondary systems. It confirms if you are in a Kill Zone, if a Divergence is active, and the count of active Signal Lines on your chart.
OPTIMIZER Section: When enabled, this section displays the results of the built-in backtester, including Win Rate, Profit Factor, and a proprietary Stability Rating ( ROBUST, STABLE, FRAGILE, OVERFIT ) to help you validate your settings.
█ THE COMMAND CENTER: MASTERING THE INPUTS
Every parameter of the ADX² engine is exposed for your control. This allows for unparalleled fine-tuning to any market, timeframe, or trading style.
Core ADX & Curvature Settings
ADX/DI Length & Smoothing: Standard ADX parameters. How to use: Shorter lengths (e.g., 10) for scalping; longer lengths (e.g., 21) for swing trading. Stick to "RMA" smoothing for the classic feel.
Curvature Smoothing: This is the "secret sauce." It smooths the velocity and acceleration calculations. How to use: Use a low value (2-3) for volatile markets or low timeframes to remain responsive. Use a higher value (4-5) for smoother signals on higher timeframes.
Z-Score Lookback & Threshold: Controls the normalization engine. How to use: The Lookback (default 50) sets the "memory" for what is "normal." The Threshold is for the generic curvature spike signals (circles). A higher value (e.g., 2.5σ) will only show extreme events.
Signal Detection Settings
Ignition/Exhaustion Thresholds: The Z-Score level required to trigger the primary phase-change signals. How to use: A lower threshold (e.g., 1.0σ) will give earlier, more frequent signals with more false positives. A higher threshold (e.g., 2.0σ) will give later, less frequent, but higher-conviction signals.
Low/High ADX Levels: These define the boundaries for the phases. Low ADX (default 20) is the ceiling for the Dormant phase. High ADX (default 40) is the floor for the Mature phase. How to use: For choppy markets, you might raise the Low ADX to 22 to avoid false ignitions. For strongly trending markets, you might lower the High ADX to 35 to get earlier exhaustion warnings.
Min Bars Between Signals: A crucial spam filter. It enforces a "cooldown period" after a signal fires, preventing over-trading in choppy conditions.
Signal Lines & Trade Management
SL/TP Multipliers (xATR): Fully customize the risk-to-reward profile of the visual trade overlays. The system uses the Average True Range (ATR) for volatility-adaptive targets. How to use: For day trading, a 1.5 ATR Stop Loss and 1.0, 2.0, 3.0 ATR Take Profits is a balanced approach. For swing trading, you might use a wider 2.5 ATR stop and more ambitious targets.
Quantum Vortex Bands™
Band Mode: Choose from four distinct geometric configurations ( Triple Layer, Fractal Cloud, Momentum Tunnel, Phase Spectrum ) to visually optimize the bands for your specific market type—from high-volatility crypto to tight-ranging indices.
Band Width Multiplier: The master control for the overall width of the bands, allowing you to tune them to be tighter or wider based on your instrument's character.
The Optimizer Engine
Toggle the built-in backtester to rapidly test your settings. Adjust the optTP and optSL to find the most ROBUST configuration for your chart's visible data before committing to a strategy.
█ DEVELOPMENT PHILOSOPHY
The ADX² Curvature Suite was born from a deep dissatisfaction with the static, lagging nature of conventional technical analysis. We believe the future of trading lies not in measuring where the market has been, but in quantifying the forces that will determine where it is going next. By applying calculus and adaptive statistics to a classic indicator, we've created a tool that doesn't just show you the trend; it reveals its DNA. It is complex by necessity, because the market is complex. My mission is to translate that complexity into actionable clarity.
This suite is my attempt to provide the ultimate tool for "sizing up the entire market," giving you the ability to see the very inception and conclusion of those main movements where the real money is made.
█ DISCLAIMER AND BEST PRACTICES
THIS IS NOT A STANDALONE SYSTEM: The ADX² Suite is an advanced decision-support tool. It should be used in conjunction with your own analysis of price action, support/resistance, and market structure.
RISK MANAGEMENT IS PARAMOUNT: All trading involves risk. The visual SL/TP lines are for guidance only. Always use proper position sizing and risk management protocols. This indicator does not guarantee profits.
BACKTEST AND OPTIMIZE: Use the built-in Optimizer Engine and TradingView's Strategy Tester to find the settings that are most robust for your chosen instrument and timeframe before trading live.
HIGH-CONVICTION SETUPS: The highest probability signals occur when multiple factors align: An Ignition signal fires from a low ADX level, near the bottom of the Vortex Bands, in a confirmed Kill Zone, and in the direction of the higher timeframe bias.
"The big money is not in the individual fluctuations, but in the main movements – that is, not in reading the tape, but in sizing up the entire market and its trend."
— Jesse Livermore
Taking you to school. - Dskyz, Trade with probability. Trade with anticipation. Trade with ADX².
GCM Kinetic Flux SpectrumTitle: GCM Kinetic Flux Spectrum
DESCRIPTION
The GCM Kinetic Flux Spectrum is an institutional-grade hybrid momentum and volume engine. Unlike standard oscillators that rely on closing prices, the GCM KFS synthesizes dual-source RSI volatility with Volume Flow Intensity (VFI) to reveal the hidden kinetic energy of market movements.
By projecting a 27-layer "Spectrum Ribbon" and a multi-dimensional Divergence Engine, the GCM KFS identifies not just where the price is heading, but the quality and "fuel" behind the trend.
CORE ARCHITECTURE
1) The Kinetic Mean (Dual-Source RSI)
Standard RSI often ignores the battle occurring at the wicks. The GCM KFS calculates independent RSI streams for Highs and Lows, then anchors them to a Zero-Centered baseline (-50 to +50). The resulting Kinetic Mean filters out retail noise, providing a volatility-adjusted perspective on momentum.
2) Volume Flux Integration (VFI)
Volume precedes price. The GCM KFS integrates a highly responsive, EMA-smoothed Volume Flow Indicator (VFI). By syncing VFI length with the RSI cycle, the indicator cross-verifies price strength with capital flow.
• Momentum + Positive Flux: Confirms high-conviction trends.
• Momentum + Negative Flux: Reveals "Empty" breakouts or institutional distribution.
3) 27-Layer Spectrum Ribbon
The gradient fill isn't just aesthetic—it represents Volatility Density.
• Expansion: When ribbons fan out, it signals a high-velocity trend.
• Compression (The Squeeze): When ribbons pinch toward the Kinetic Mean, it signals a volatility contraction, typically the precursor to an explosive breakout.
4) Four-Way Divergence Engine
The KFS automatically detects and projects four types of divergence on both the indicator pane and the main price chart:
• Regular Bullish/Bearish: Identifying high-probability trend reversals.
• Hidden Bullish/Bearish: Identifying trend continuation (Smart Money re-entry points).
KEY POWER FEATURES
• Zero-Centered Logic: Levels are shifted for better visual balance. (OB: +20, Extreme OB: +30 | OS: -20, Extreme OS: -30).
• Dynamic Zones: Subtle background fills highlight "Extreme" areas where price is statistically likely to mean-revert.
• Main Chart Projection: Use the force_overlay feature to keep your eyes on price action while the indicator confirms entries.
• Institutional Dotted VFI: The orange dotted line acts as the "Anchor"—if price rises but the VFI Anchor stays below zero, the move lacks professional backing.
HOW TO TRADE WITH GCM-KFS
• The Reversal Sniper: Look for an R-BULL or R-BEAR label appearing inside the Extreme Zone (±30). This indicates momentum exhaustion backed by a volume shift.
• Trend Riding: During an uptrend, look for H-BULL (Hidden Bullish) labels. This signals that institutions are "buying the dip" while momentum resets.
• Volatility Breakouts: When the Spectrum Ribbon enters a tight "squeeze" near the Zero Line, prepare for a major move. Follow the direction of the first ribbon expansion.
RECOMMENDED SETTINGS
• Scalping (1m - 5m): Length 7 - 9
• Day Trading (15m - 1H): Length 10 - 14
• Swing Trading (4H - Daily): Length 20+
AUTHOR’S NOTE
This script is part of the GCM suite of professional tools. It is designed to be a "confluence engine"—it works best when used to confirm price action levels, supply/demand zones, or order blocks. Always trade with a plan and managed risk.
Adaptive Structural Confluence Strategy POCHOLOCombination of several indicators with signals, it's just a test, it might be useful, I welcome your opinions
STRAT + Timeframe Continuity + 50% RuleTheSTRAT is a multi-timeframe strategy that focuses on three primary components: Inside Bars, Directional Bars, and Outside Bars. The approach also emphasizes several key principles, including Full Time Frame Continuity, Broadening Formations, and the significance of Inside Bars.
Neeson Vegas ChannelVegas Channel Indicator: A Comprehensive Multi-Timeframe Trend-Following System
Originality and Conceptual Foundation
This script implements an enhanced version of the classic "Vegas Tunnel" or "Vegas Channel" methodology, popularized by traders who follow the work associated with the "Vegas" technique. Its primary original contribution lies in its specific, rule-based multi-layered trend identification and visualization system. While the core uses well-known Exponential Moving Averages (EMAs), the originality is in the precise combination of periods and the strict, hierarchical logic for defining trend states and generating signals.
Unlike simpler moving average crossovers or single-tunnel systems, this script employs three distinct EMA pairs, each serving a unique purpose within the trend hierarchy:
Short-Term Momentum Pair (EMA 12 & 24): Acts as the primary signal trigger and momentum gauge.
Core Trend Tunnel (EMA 144 & 169): Serves as the central "channel" or "tunnel." A key visual and logical component is the shading between these two lines, which thickens and changes color with the trend, creating a dynamic channel.
Long-Term Foundation Pair (EMA 580 & 670): Represents the underlying, slower-moving trend foundation, providing context for the higher-timeframe bias.
The system's true innovation is its binary and exclusive trend definition logic. It does not rely on a single crossover. Instead, it defines a confirmed Uptrend only when both the short-term EMAs (12 and 24) are established above both lines of the core tunnel (144 and 169). Conversely, a Downtrend is confirmed only when both short-term EMAs are established below both core tunnel lines. This creates a high-confidence filter, reducing whipsaw signals that can occur when price oscillates around a single moving average.
Functionality, Implementation, and Usage
What It Does:
This indicator is a multi-timeframe trend identification and signal-generation tool. It visually condenses trend information from short, medium, and long-term perspectives onto a single chart. Its primary functions are:
Trend State Classification: It dynamically classifies the market into one of three states: Bull Trend (Blue), Bear Trend (Orange), or Sideways/Congestion (Gray). This is reflected in the chart's background color, the color of all EMA lines, and the fill of the central 144/169 channel.
Signal Generation: It plots discrete buy and sell arrows. A Buy Signal (blue upward triangle) appears the first bar the market transitions into the defined "Uptrend" state from a non-uptrend state. A Sell Signal (orange downward triangle) appears the first bar the market transitions into the defined "Downtrend" state.
Visual Structuring: It plots all six EMAs and prominently highlights the interaction zone between the 144 and 169 EMAs with a colored fill, making the "tunnel" a focal point for support/resistance and trend quality assessment.
How It's Implemented:
The logic is implemented through a clear sequence of conditional checks:
Calculation: All six EMAs are calculated based on user-definable periods (defaults as listed).
Trend Logic: The script continuously evaluates the position of EMA12 and EMA24 relative to EMA144 and EMA169 using strict AND conditions to define the uptrend and downtrend Boolean variables.
Signal Logic: A signal (buy or sell) is generated only on the change of the trend state. It uses a check of the form current_trend_state AND (NOT previous_bar_trend_state) to pinpoint the exact bar of transition.
Visual Feedback: All plot colors, the channel fill color, and the background color are unified and determined by the current trend state variable. Labels for the trend and each EMA line are drawn on the last bar for clarity.
How to Use It:
Traders employ this indicator primarily for trend-following and breakout confirmation. It is suited for swing trading or higher-timeframe positional trades rather than scalping, due to the lag inherent in its longer EMAs and its focus on confirmed states.
Trend Bias: The overall color scheme (blue/orange/gray background) provides an immediate, at-a-glance assessment of the dominant trend force. Trading in the direction of the colored background is considered aligned with the system's trend.
Signal Entry: The arrow signals are not meant for blind entry. They mark the point of a confirmed trend state transition.
A Buy Signal suggests the short-term momentum (12,24) has decisively broken above and established itself over the medium-term trend framework (144,169). This could be used as a trigger for long entries, preferably with the long-term EMAs (580,670) sloping upwards or flat, adding confluence.
A Sell Signal suggests the opposite breakdown.
Channel as Dynamic S/R: The filled area between EMA144 and EMA169 acts as a dynamic support zone in an uptrend and a resistance zone in a downtrend. Pullbacks into this "tunnel" that hold without triggering a sell signal (i.e., without both EMA12 & 24 closing back below both tunnel lines) can be viewed as potential continuation opportunities.
Filter for Other Systems: The clear trend state (uptrend/downtrend) can be exported or used as a filter for other trading systems or discretionary decisions, ensuring actions are only taken in the direction of the script's defined trend.
Core Computational Philosophy and Strategic Rationale
The script's logic is rooted in the philosophy of trend hierarchy and confirmation. It belongs to the category of Multi-Moving Average Convergence/Divergence Systems with State-Based Rules.
The 144/169 Tunnel: These numbers are derived from Fibonacci sequences (144, 169 is 12^2 and 13^2). They are believed by proponents to represent a natural rhythm or "heartbeat" of the market, defining a robust intermediate-term trend framework.
The 12/24 Pair: A standard fast-moving average pair commonly used to gauge short-term momentum and trigger entries.
The Strategic Innovation (Dual-Condition Crossover): The core idea is that a crossover of a single fast MA above a single slow MA can be false and noisy. By requiring both members of a fast pair to establish position relative to both members of a slower "tunnel" pair, the system demands a broader, more concerted move. This seeks to filter out weak, unsustainable breaks and only capture shifts in momentum strong enough to flip the entire short-term structure's position relative to the medium-term structure.
The 580/670 Pair: These very slow EMAs represent the "secular" trend. While not part of the direct signal logic, they provide critical context. A buy signal that occurs while price is above the 580/670 pair (which would be sloping up in a healthy bull market) carries more weight than one that occurs while price is below this long-term foundation, which might indicate a counter-trend rally.
In essence, this script is more than just moving averages on a chart. It is a systematic, rule-based framework for identifying when the market's short-term energy (12,24) has converged sufficiently to overcome and reposition itself against its medium-term equilibrium (144/169 tunnel), thereby signaling a high-probability phase change in trend, all while considering the backdrop of a long-term trend (580/670).
5-Day & 20-Day Prior MA Lines (Gap Label)
Daily 5 & 20 Moving Average Levels
This indicator plots the Daily 5-period and Daily 20-period moving averages as horizontal levels on any timeframe. Each level starts at the first bar of the trading day and extends only to the current price, keeping the chart clean and focused on the active session.
The levels update once per day using confirmed daily data and are designed to act as intraday bias, support, and resistance references. Labels are aligned on the right side for a minimal, institutional-style presentation.
Useful for:
* Intraday trading on lower timeframes
* Identifying daily trend bias
* Mean reversion and pullback setups
* Futures, stocks, ETFs, and options
No future extension, no repainting, and no unnecessary clutter.
EMA 9 SlopeThis indicator displays the ongoing slope (rate of change) of the 9-period Exponential Moving Average (EMA).
Instead of only showing whether price is above or below EMA9, this script helps traders quantify momentum strength and direction by measuring how fast EMA9 is rising or falling on each bar.
How it works:
Calculates the difference between the current EMA9 and the previous bar’s EMA9
Plots the slope as a histogram around a zero line
How to interpret:
Above zero → EMA9 is rising (bullish momentum)
Below zero → EMA9 is falling (bearish momentum)
Near zero → Flat EMA / low momentum / potential chop
This indicator is especially useful for:
Momentum and trend-continuation traders
Avoiding low-momentum or choppy conditions
Pairing with EMA9 + VWAP strategies
Intraday trading (including 0DTE options)
Simple, lightweight, and designed to add objective momentum confirmation to EMA-based trading systems.
labConfigCoreLibrary "labConfigCore"
Configuration centrale pour tous les indicateurs LAB (Kijun + EMA + S/R)
Centralise les valeurs par défaut pour éviter les désynchronisations entre indicateurs
getTFFast()
Retourne le timeframe Fast par défaut
Returns: String - Timeframe Fast ("15" par défaut)
getTFMid()
Retourne le timeframe Mid par défaut
Returns: String - Timeframe Mid ("60" par défaut)
getTFSlow()
Retourne le timeframe Slow par défaut
Returns: String - Timeframe Slow ("240" par défaut)
getTFATR()
Retourne le timeframe ATR par défaut
Returns: String - Timeframe ATR ("60" par défaut)
getKijunLength()
Retourne la longueur Kijun par défaut
Returns: Int - Longueur Kijun (26 par défaut)
getShowKijun()
Retourne l'état d'affichage Kijun par défaut
Returns: Bool - Afficher Kijun (true par défaut)
getEMALength()
Retourne la longueur EMA par défaut
Returns: Int - Longueur EMA (50 par défaut)
getChannelWidth()
Retourne la largeur des canaux EMA par défaut
Returns: Float - Largeur canal en % (2.0 par défaut)
getChannelAlpha()
Retourne la transparence des canaux par défaut
Returns: Int - Alpha channel (93 par défaut)
getShowChannelFast()
Retourne l'état d'affichage canal Fast par défaut
Returns: Bool - Afficher canal Fast (false par défaut)
getShowChannelMid()
Retourne l'état d'affichage canal Mid par défaut
Returns: Bool - Afficher canal Mid (true par défaut)
getShowChannelSlow()
Retourne l'état d'affichage canal Slow par défaut
Returns: Bool - Afficher canal Slow (true par défaut)
getChannelColorFast()
Retourne la couleur canal Fast par défaut
Returns: Color - Couleur Fast (#00BCD4 par défaut)
getChannelColorMid()
Retourne la couleur canal Mid par défaut
Returns: Color - Couleur Mid (#4CAF50 par défaut)
getChannelColorSlow()
Retourne la couleur canal Slow par défaut
Returns: Color - Couleur Slow (#FF9800 par défaut)
getSRDisplayMode()
Retourne le mode d'affichage S/R par défaut
Returns: String - Mode ('S/R Zones' par défaut)
getSRTimeframe()
Retourne le timeframe S/R par défaut
Returns: String - Timeframe S/R ('Chart' par défaut)
getSRVolMA()
Retourne la longueur Volume MA par défaut
Returns: Int - Longueur Vol MA (6 par défaut)
getSRNumZones()
Retourne le nombre de zones back par défaut
Returns: Int - Zones back (10 par défaut)
getSRExtendLines()
Retourne l'état extend lines par défaut
Returns: Bool - Extend to next zone (true par défaut)
getSRExtendActive()
Retourne l'état extend active par défaut
Returns: Bool - Extend active right (true par défaut)
getSRExtendRight()
Retourne l'état extend right par défaut
Returns: Bool - Extend right (false par défaut)
getSRShowLabels()
Retourne l'état affichage labels par défaut
Returns: Bool - Show labels (true par défaut)
getSRLabelLocation()
Retourne la position labels par défaut
Returns: String - Position ('Right' par défaut)
getSRLabelOffset()
Retourne l'offset labels par défaut
Returns: Int - Offset (15 par défaut)
getSRShowHL()
Retourne l'état affichage H/L par défaut
Returns: Bool - Show H/L lines (true par défaut)
getSRShowOC()
Retourne l'état affichage O/C par défaut
Returns: Bool - Show O/C lines (true par défaut)
getSRLineStyleHL()
Retourne le style ligne H/L par défaut
Returns: String - Style ('Solid' par défaut)
getSRLineWidthHL()
Retourne l'épaisseur ligne H/L par défaut
Returns: Int - Width (1 par défaut)
getSRLineStyleOC()
Retourne le style ligne O/C par défaut
Returns: String - Style ('Solid' par défaut)
getSRLineWidthOC()
Retourne l'épaisseur ligne O/C par défaut
Returns: Int - Width (1 par défaut)
getSRResLinesColor()
Retourne la couleur lignes résistance par défaut
Returns: Color - Couleur (rouge 20% transparent)
getSRResZoneColor()
Retourne la couleur zone résistance par défaut
Returns: Color - Couleur (rouge 90% transparent)
getSRSupLinesColor()
Retourne la couleur lignes support par défaut
Returns: Color - Couleur (lime 20% transparent)
getSRSupZoneColor()
Retourne la couleur zone support par défaut
Returns: Color - Couleur (lime 90% transparent)
getNormMode()
Retourne le mode de normalisation par défaut
Returns: String - Mode ('ATR' par défaut)
getATRLength()
Retourne la longueur ATR par défaut
Returns: Int - Longueur ATR (14 par défaut)
getTolEqual()
Retourne la tolérance égalité par défaut
Returns: Float - Tolérance (0.10 par défaut)
getThresholdTight()
Retourne le seuil compression par défaut
Returns: Float - Seuil tight (0.25 par défaut)
getThresholdWide()
Retourne le seuil extension par défaut
Returns: Float - Seuil wide (1.50 par défaut)
getShowDashboard()
Retourne l'état d'affichage dashboard par défaut
Returns: Bool - Show table (true par défaut)
getDashboardPosition()
Retourne la position dashboard par défaut
Returns: String - Position ('Top Right' par défaut)
getDashboardSize()
Retourne la taille dashboard par défaut
Returns: String - Size ('Small' par défaut)
getProbBarsForward()
Retourne le nombre de barres forward par défaut
Returns: Int - Bars forward (20 par défaut)
getProbWinThreshold()
Retourne le seuil win par défaut
Returns: Float - Win threshold % (1.5 par défaut)
getProbLossThreshold()
Retourne le seuil loss par défaut
Returns: Float - Loss threshold % (1.0 par défaut)
getProbHistorySize()
Retourne la taille historique par défaut
Returns: Int - History size (500 par défaut)
getStrategyTPSLMode()
Retourne le mode TP/SL par défaut
Returns: String - Mode ('% Fixed' ou 'ATR Multiple')
getStrategyTPPercent()
Retourne le take profit % par défaut
Returns: Float - TP % (2.0 par défaut)
getStrategySLPercent()
Retourne le stop loss % par défaut
Returns: Float - SL % (1.0 par défaut)
getStrategyTPATRMultiple()
Retourne le multiple ATR pour TP par défaut
Returns: Float - TP ATR multiple (2.0 par défaut)
getStrategySLATRMultiple()
Retourne le multiple ATR pour SL par défaut
Returns: Float - SL ATR multiple (1.5 par défaut)
getStrategyUseTrailing()
Retourne l'état trailing stop par défaut
Returns: Bool - Use trailing stop (false par défaut)
getStrategyTrailingActivation()
Retourne l'activation trailing % par défaut
Returns: Float - Trailing activation % (1.0 par défaut)
getStrategyTrailingOffset()
Retourne le trailing offset % par défaut
Returns: Float - Trailing offset % (0.5 par défaut)
getStrategyPositionSize()
Retourne la taille position par défaut
Returns: Float - Position size % equity (100 par défaut)
getStrategyInitialCapital()
Retourne le capital initial par défaut
Returns: Float - Initial capital (10000 par défaut)
getStrategyCommission()
Retourne la commission par défaut
Returns: Float - Commission % (0.1 par défaut)
getStrategySlippage()
Retourne le slippage par défaut
Returns: Int - Slippage ticks (2 par défaut)
getAllKijunDefaults()
Retourne TOUS les paramètres Kijun sous forme de tuple
Returns: - TF Fast, Mid, Slow, Length, Show
getAllEMADefaults()
Retourne TOUS les paramètres EMA sous forme de tuple
Returns: - Length, Width, Alpha, Show Fast, Mid, Slow
getAllNormDefaults()
Retourne TOUS les paramètres Normalisation sous forme de tuple
Returns: - Mode, TF ATR, Length, Tol, Tight, Wide
getAllDashboardDefaults()
Retourne TOUS les paramètres Dashboard sous forme de tuple
Returns: - Show, Position, Size
Trinity Tactical: BTC Liquidity Snatch//@version=6
indicator("Trinity Tactical: BTC Liquidity Snatch", overlay=true)
// --- INPUTS ---
liq_level = input.float(87156.0, "Liquidity Low to Sweep", step=10)
fvg_threshold = input.float(0.5, "FVG Min Size (%)", step=0.1)
// --- LIQUIDITY SWEEP LOGIC ---
is_swept = low < liq_level and close > liq_level
plotshape(is_swept, title="Liquidity Sweep", style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small, text="SWEEP")
// --- FVG DETECTION (FOR ENTRY) ---
// Bullish FVG: Low of bar > High of bar
is_bullish_fvg = low > high and (low - high ) > (close * fvg_threshold / 100)
// Visualizing the Entry FVG Zone
var box fvg_box = na
if is_bullish_fvg and barstate.isconfirmed
fvg_box := box.new(bar_index , low , bar_index, high , bgcolor=color.new(color.green, 80), border_color=color.green)
// --- LEVELS ---
hline(87156, "8H Liquidity Low", color=color.red, linestyle=hline.style_dashed)
hline(92500, "TP1: Supply", color=color.orange, linestyle=hline.style_dotted)
hline(97000, "TP2: Range High", color=color.green, linestyle=hline.style_dotted)
// --- ALERTS ---
alertcondition(is_swept, title="BTC Sweep Alert", message="Liquidity Swept! Look for FVG Entry.")
alertcondition(is_bullish_fvg, title="BTC FVG Entry", message="Bullish Displacement Detected. Check 15m Structure.")
Real Deviation Strength (RDS) [ALPHA]Real Deviation Strength (RDS) – The mirror-image twin to Median Anchor Oscillator.
Same battle-tested foundation: rolling median + Median Absolute Deviation (MAD) scaling = a super-robust deviation measure that laughs at outliers (way tougher than classic mean/std-dev oscillators).
The fun part: we flipped the visuals so deviation becomes “strength.”
- Histogram inverted + fresh palette: magenta (#aa3bf5) bars shooting up for positive deviation strength (big stretch = caution or conviction?), cyan (#00f7ff) dropping down for negative (pullback energy = bounce setup?).
- Adjustable Strength Sweet Spots at ±2.5 (tweak to taste).
- Optional yellow fill zones for that high-octane “something’s cooking” vibe.
- Scales beautifully on wild charts—crypto, stocks, whatever throws spikes.
Where Median Anchor says “Whoa, too far—revert!”, RDS goes “Damn, that stretch has legs—respect the power.” Perfect for momentum hunters, contrarian plays, or just geeking out on the opposite lens.
Still very much ALPHA—early days, room to grow. Feel free to leave feedback in the comments:
- Colors popping right?
- Alerts on sweet-spot exits next?
- Add divergence next?
- What’s it crushing (or failing) on your favorite ticker?
Using this side-by-side with MAO? The magenta/cyan combo keeps them visually distinct—no chart confusion.
Hero version here: Median Anchor Oscillator →
Open-source. Let’s build this thing together. Cheers to the flipside 🍻
Multi-Timeframe Inside Bar Breakout (4-Symbol Simultaneous)Multi-Timeframe Inside Bar Breakout (4-Symbol Simultaneous)
Overview
Monitors 4 symbols across 4 timeframes simultaneously, displaying labeled alerts when all 4 symbols break out from inside bar compression on any tracked timeframe. See 15-minute, 30-minute, 60-minute, and daily breakouts all on one chart — complete multi-timeframe compression analysis.
When all 4 symbols compress into inside bars and then ALL break the same direction, you get clear directional confirmation across different timeframes. Perfect for Rob Smith's "The Strat" methodology and traders who use multi-timeframe analysis for entry confirmation.
🎯 Why This Matters
Multi-timeframe breakout confluence = stronger signals.
When SPY, QQQ, IWM, and DIA simultaneously:
✅ Compress into inside bars (bar )
✅ ALL break same direction (bar )
✅ Across multiple timeframes
You get layered confirmation — not just one timeframe saying "go," but multiple timeframes agreeing on direction.
Example: 15m breakout + 60m breakout + Daily breakout = alignment across timeframes.
✅ Key Features
✅ 4 Timeframes Tracked — Monitor 15m, 30m, 60m, Daily (fully customizable)
✅ 4 Symbols Per Timeframe — All must break together for signal
✅ Staggered Labels — Each timeframe displays at different distance (no overlap)
✅ Adaptive Positioning — Works on futures, stocks, forex, crypto
✅ Customizable Colors — Bullish/bearish colors with opacity control
✅ Alert-Ready — 8 alert conditions (bull/bear per timeframe)
✅ Works on Any Chart — See higher timeframe signals on lower timeframe charts
📊 How It Works
Inside Bar Check (Bar ):
All 4 symbols had inside bars (high < prior high AND low > prior low)
Breakout Check (Bar ):
Bullish: All 4 close > prior high
Bearish: All 4 close < prior low
Label Display:
📈IBSB 15 = Bullish breakout on 15-minute timeframe
📉IBSB D = Bearish breakout on daily timeframe
Each timeframe operates independently — you might see multiple timeframe labels on the same bar when breakouts align.
⚙️ Settings Guide
Symbols (Default: SPY, QQQ, IWM, DIA)
Customize to any 4 symbols
Popular: ES/NQ/YM/RTY (futures), XLF/XLK/XLE/XLV (sectors)
Timeframes (Default: 15, 30, 60, D)
Set any 4 timeframes to monitor
Examples: 5/15/60/240 (intraday stack), 60/D/W/M (swing stack)
Display Options:
Bullish/Bearish colors + opacity control
Label distance (% of bar range)
Stagger spacing (prevents overlap)
Max labels per timeframe (default: 25)
Debug Mode:
Shows which symbols are inside/breaking per timeframe
Useful for troubleshooting
🔔 Setting Up Alerts
Create alerts for any combination:
"IBSB Bull - TF1" (first timeframe bullish)
"IBSB Bear - TF4" (fourth timeframe bearish)
Set to "Once Per Bar Close" for confirmed signals
💡 Example Trading Approach
Note: Educational example, not trading advice.
Watch for compression across symbols on higher timeframes
IBSB label appears → all 4 broke same direction
Multiple timeframe labels = stronger confluence
Enter with your strategy using proper risk management
Example: Daily IBSB bullish + 60m IBSB bullish = aligned timeframes for potential long entry.
🎯 Why Multi-Timeframe Matters
Single timeframe breakout = one piece of data.
Multi-timeframe breakout = confirmation across time horizons.
When 15m, 60m, and Daily all show simultaneous 4-symbol breakouts → market structure aligning across timeframes.
🔧 Technical Details
✅ PineScript v6 (latest)
✅ Adaptive label positioning (scales with price)
✅ Smart staggering (prevents label overlap)
✅ Label management (max 500 total across timeframes)
✅ NA-safe logic (handles missing data)
✅ Works across all chart timeframes
⚠️ Important Disclaimers
Not financial advice: Educational and informational purposes only
No performance guarantees: Past breakouts don't predict future results
Risk management essential: Always use proper position sizing
Test before trading: Backtest and paper trade first
⚡ Quick Start
Add indicator to chart
Set symbols (default: SPY/QQQ/IWM/DIA)
Set 4 timeframes (default: 15/30/60/D)
Customize colors if desired
Create alerts (optional)
Watch for 📈IBSB or 📉IBSB labels with timeframe designation
📞 Support
Follow for updates and new indicators.
Questions? Leave a comment below — I respond to all feedback.
💬 Final Thoughts
Multi-timeframe compression breakouts with 4-symbol confirmation. Instead of monitoring dozens of charts manually, see all your timeframe breakouts in one place. When multiple timeframes align with simultaneous 4-symbol breakouts, you get clearer directional signals.
Use as one component of your analysis, combine with your risk management, and always trade with discipline.
Happy trading! 📈
Free and open-source for personal use. If you find this valuable:
👍 Like | 📝 Review | 🔔 Follow
ADX Trend Strength with DashboardA comprehensive ADX (Average Directional Index) indicator featuring an intuitive real-time dashboard that helps traders quickly assess trend strength and direction at a glance.
Key Features:
Visual Analytics:
Standard ADX line with customizable +DI/-DI directional indicators
Color-coded background zones that automatically highlight trend strength (Weak/Ranging, Emerging, Strong, Very Strong, Extreme)
Optional fill between directional indicators for clear visual trend identification
Fully customizable colors and display options
Smart Dashboard:
Real-time ADX value with color-coded strength classification
Instant trend direction indicator (Bullish/Bearish/Neutral)
Trade signal suggestions based on ADX strength and DI crossovers
DI spread analysis showing conviction strength (Strong/Moderate/Weak)
Quick reference checks for key threshold levels
Fully adjustable position, size, and transparency
Customizable Thresholds:
Default levels at 20 (Emerging), 25 (Strong), 40 (Very Strong), and 50 (Extreme)
All threshold levels are adjustable to match your trading strategy
Visual reference lines on chart
Built-in Alerts:
ADX crossing major threshold levels (25, 40, 50)
Bullish/Bearish DI crossovers when ADX confirms strong trend
Set-and-forget notifications for trend changes
Perfect for:
Scalpers and day traders needing quick trend assessment
Swing traders filtering choppy markets from trending conditions
Multi-timeframe analysis with clear visual feedback
Settings: Fully customizable ADX length (default 14), DI length (default 14), and smoothing period (default 14) to adapt to any timeframe or market.
Does this capture everything you wanted, or would you like me to adjust the tone/emphasis on certain features?Claude is AI and can make mistakes. Please double-check responses.
volSRCoreLibrary volSRCore
Library to compute volume-based support and resistance zones using fractal logic.
tfStringToFormat(tfInput)
Converts a timeframe string into Pine Script format.
Parameters:
tfInput (string): Timeframe string ("Chart", "1m", "5m", "1h", "D", etc.)
Returns:
string — Pine Script–formatted timeframe
resInMinutes()
Converts the current chart timeframe into minutes.
Returns:
float — number of minutes of the current timeframe
fractalUp(tfHigh, tfVol, tfVolMA)
Detects a bullish fractal (potential resistance).
Parameters:
tfHigh (float): High series of the timeframe
tfVol (float): Volume series of the timeframe
tfVolMA (float): Volume moving average series
Returns:
bool — true if a bullish fractal is detected
fractalDown(tfLow, tfVol, tfVolMA)
Detects a bearish fractal (potential support).
Parameters:
tfLow (float): Low series of the timeframe
tfVol (float): Volume series of the timeframe
tfVolMA (float): Volume moving average series
Returns:
bool — true if a bearish fractal is detected
calcFractalUpLevel(tfHigh, tfVol, tfVolMA)
Computes the resistance level from a bullish fractal.
Parameters:
tfHigh (float): High series
tfVol (float): Volume series
tfVolMA (float): Volume MA series
Returns:
float — resistance level
calcFractalDownLevel(tfLow, tfVol, tfVolMA)
Computes the support level from a bearish fractal.
Parameters:
tfLow (float): Low series
tfVol (float): Volume series
tfVolMA (float): Volume MA series
Returns:
float — support level
calcResistanceZone(tfHigh, tfOpen, tfClose, tfVol, tfVolMA)
Computes the resistance zone (between High and Open/Close).
Parameters:
tfHigh (float): High series
tfOpen (float): Open series
tfClose (float): Close series
tfVol (float): Volume series
tfVolMA (float): Volume MA series
Returns:
float — lower boundary of the resistance zone
calcSupportZone(tfLow, tfOpen, tfClose, tfVol, tfVolMA)
Computes the support zone (between Low and Open/Close).
Parameters:
tfLow (float): Low series
tfOpen (float): Open series
tfClose (float): Close series
tfVol (float): Volume series
tfVolMA (float): Volume MA series
Returns:
float — upper boundary of the support zone
tfNewBar(tfRes)
Detects a new bar on a given timeframe.
Parameters:
tfRes (simple string): Timeframe string
Returns:
bool — true if a new bar is detected
tfBarIndexBack(tfRes, barsBack)
Computes the bar_index N bars back on a target timeframe.
Parameters:
tfRes (simple string): Timeframe string
barsBack (simple int): Number of bars back (1, 3, 5, etc.)
Returns:
int — bar_index at that point in time
tfBarsRange(tfRes, startBar, endBar)
Computes the number of chart bars between two bars of a target timeframe.
Parameters:
tfRes (simple string): Timeframe string
startBar (simple int): Start bar (e.g., 1)
endBar (simple int): End bar (e.g., 5)
Returns:
int — number of chart bars in that range
calcPivotHighBarIndex(startBarsBack, rangeSize, maxBarsBack)
Finds the exact bar_index of the highest high within a given range.
Parameters:
startBarsBack (simple int): Start of the scan (bars back)
rangeSize (simple int): Size of the scan range
maxBarsBack (simple int): max_bars_back limit (e.g., 4999)
Returns:
int — bar_index of the highest high, or maxBarsBack if out of bounds
calcPivotLowBarIndex(startBarsBack, rangeSize, maxBarsBack)
Finds the exact bar_index of the lowest low within a given range.
Parameters:
startBarsBack (simple int): Start of the scan (bars back)
rangeSize (simple int): Size of the scan range
maxBarsBack (simple int): max_bars_back limit (e.g., 4999)
Returns:
int — bar_index of the lowest low, or maxBarsBack if out of bounds
detectPriceInteraction(resLevel, resZone, supLevel, supZone)
Detects price interactions with support/resistance zones.
Parameters:
resLevel (float): Resistance level
resZone (float): Resistance zone
supLevel (float): Support level
supZone (float): Support zone
Returns:
EntersResZone
TestsResAsSupport
EntersSupZone
TestsSupAsResistance
BreaksResistance
BreaksSupport
calcSRLevelsFromData(tfOpen, tfHigh, tfLow, tfClose, tfVol, volMaLength)
Computes all support/resistance levels from already-fetched MTF data.
Parameters:
tfOpen (float): TF open
tfHigh (float): TF high
tfLow (float): TF low
tfClose (float): TF close
tfVol (float): TF volume
volMaLength (simple int): Volume MA length
Returns:
ResistanceLevel
ResistanceZone
SupportLevel
SupportZone
IsFractalUp
IsFractalDown
detectNewSR(resLevel, supLevel)
Detects a new fractal event (new support or resistance found).
Parameters:
resLevel (float): Current resistance level
supLevel (float): Current support level
Returns:
NewResistance
NewSupport
Daily 5 & 20 (Session Lines)Daily 5 & 20 Moving Average Levels
This indicator plots the Daily 5-period and Daily 20-period moving averages as horizontal levels on any timeframe. Each level starts at the first bar of the trading day and extends only to the current price, keeping the chart clean and focused on the active session.
The levels update once per day using confirmed daily data and are designed to act as intraday bias, support, and resistance references. Labels are aligned on the right side for a minimal, institutional-style presentation.
Useful for:
Intraday trading on lower timeframes
Identifying daily trend bias
Mean reversion and pullback setups
Futures, stocks, ETFs, and options
No future extension, no repainting, and no unnecessary clutter.
-Golden Zone Family
emaStackCoreLibrary "emaStackCore"
emaCalc(source, length)
Calculate EMA
Parameters:
source (float) : Price source (close, hl2, etc.)
length (simple int) : EMA period
Returns: EMA value
emaSlope(emaValue, lookback)
Calculate EMA slope (% change over lookback period)
Parameters:
emaValue (float) : Current EMA value
lookback (int) : Number of bars to look back
Returns: Slope in percentage
emaDist(ema1, ema2, mode, atrVal, price)
Calculate distance between 2 EMAs (normalized)
Parameters:
ema1 (float) : First EMA value
ema2 (float) : Second EMA value
mode (string) : Normalization mode ("ATR" or "%")
atrVal (float) : ATR value for ATR mode
price (float) : Reference price for % mode
Returns: Normalized distance
slopeClass(slope, thresholdFlat)
Classify EMA slope
Parameters:
slope (float) : EMA slope in %
thresholdFlat (float) : Threshold to consider slope as flat
Returns: +1 (rising), 0 (flat), -1 (falling)
slopeScore5(slope10, slope20, slope50, slope100, slope200, threshold)
Calculate combined slope score for 5 EMAs
Parameters:
slope10 (float) : EMA10 slope
slope20 (float) : EMA20 slope
slope50 (float) : EMA50 slope
slope100 (float) : EMA100 slope
slope200 (float) : EMA200 slope
threshold (float) : Flat threshold
Returns: Sum of slope classes (-5 to +5)
emaStack5Score(e10, e20, e50, e100, e200, tolEq)
Calculate EMA stack score (5 EMAs)
Parameters:
e10 (float) : EMA 10 value
e20 (float) : EMA 20 value
e50 (float) : EMA 50 value
e100 (float) : EMA 100 value
e200 (float) : EMA 200 value
tolEq (float) : Tolerance for equality (%)
Returns: Stack score (-4 to +4)
emaStack5ScoreWithSlope(e10, e20, e50, e100, e200, slope10, slope20, slope50, slope100, slope200, tolEq, slopeThreshold)
Enhanced EMA stack with slope
Parameters:
e10 (float)
e20 (float)
e50 (float)
e100 (float)
e200 (float)
slope10 (float)
slope20 (float)
slope50 (float)
slope100 (float)
slope200 (float)
tolEq (float)
slopeThreshold (float)
Returns:
emaRegimeChange(currentScore, previousScore, threshold)
Detect regime change in EMA stack
Parameters:
currentScore (int) : Current stack score
previousScore (int) : Previous stack score
threshold (int) : Minimum change to consider significant
Returns:
emaCompressed(e10, e20, e50, e100, e200, threshold)
Detect EMA compression (squeeze)
Parameters:
e10 (float) : EMA 10 value
e20 (float) : EMA 20 value
e50 (float) : EMA 50 value
e100 (float) : EMA 100 value
e200 (float) : EMA 200 value
threshold (float) : Max spread % to consider compressed
Returns:
emaConfluence9(price, e10_tf1, e20_tf1, e50_tf1, e10_tf2, e20_tf2, e50_tf2, e10_tf3, e20_tf3, e50_tf3, threshold)
Calculate confluence score (how many EMAs are near price)
Parameters:
price (float) : Current price
e10_tf1 (float) : EMA10 on timeframe 1
e20_tf1 (float) : EMA20 on timeframe 1
e50_tf1 (float) : EMA50 on timeframe 1
e10_tf2 (float) : EMA10 on timeframe 2
e20_tf2 (float) : EMA20 on timeframe 2
e50_tf2 (float) : EMA50 on timeframe 2
e10_tf3 (float) : EMA10 on timeframe 3
e20_tf3 (float) : EMA20 on timeframe 3
e50_tf3 (float) : EMA50 on timeframe 3
threshold (float) : Max distance % to consider "near"
Returns: Confluence count (0-9)
emaConfluence3(price, e10, e20, e50, threshold)
Simplified confluence for 3 EMAs on single TF
Parameters:
price (float)
e10 (float)
e20 (float)
e50 (float)
threshold (float)
Returns: Confluence count (0-3)
emaLeadLag(score15m, score1H, score4H, lookback)
Determine which timeframe is leading the move
Parameters:
score15m (int) : Stack score on 15m
score1H (int) : Stack score on 1H
score4H (int) : Stack score on 4H
lookback (int) : Bars to look back for change detection
Returns: Leader timeframe ("15m", "1H", "4H", "ALIGNED", "MIXED")
emaPriceDivergence(price, emaValue, lookback)
Detect divergence between price and EMA direction
Parameters:
price (float) : Current price
emaValue (float) : EMA value (typically EMA20)
lookback (int) : Bars to compare
Returns:
emaOrderStrength(e10, e20, e50, e100, e200)
Calculate EMA order strength (weighted by distance)
Parameters:
e10 (float) : EMA 10
e20 (float) : EMA 20
e50 (float) : EMA 50
e100 (float) : EMA 100
e200 (float) : EMA 200
Returns: Strength score (higher = stronger trend)
emaPriceZone(price, e10, e20, e50, e100, e200)
Determine which EMA zone price is in
Parameters:
price (float) : Current price
e10 (float) : EMA 10
e20 (float) : EMA 20
e50 (float) : EMA 50
e100 (float) : EMA 100
e200 (float) : EMA 200
Returns: Zone code (5=above all, 0=below all, -1=mixed)
Hammer Alert by Marcos TavaresIndicador que sinaliza quando uma vela martelo fecha próximo das médias móveis de 20 e 200
XAUSNIPERThis is for all subscribers
1. Use color candles
2. Use mitigation
3. Use lux algo structure shifts
EMA 50 & EMA 200 Combo by MaestroA robust trend-following tool utilizing dual Exponential Moving Average (EMA) crossovers to identify momentum shifts.
Chuy's Max DrawDownOutput Behavior
0% → no drawdown
-5% → 5% drop from peak
-20% → 20% max drawdown in selected period
FXShare HotspotsThis is another small concept I’ve been playing with while watching price behavior more than indicators.
The idea is simple:
price often tells you something before it turns, not with indicators, but with shape + effort.
This script compares:
• Candle body size
• Wick dominance (rejection)
• Relative volume spike
When those line up, it marks what I call a Hotspot - a place where price put in effort (volume) but failed to continue in the same direction (small body, long wick).
Very often, these areas precede reactions, pauses, or reversals.
I intentionally made all the math adjustable:
• volume multiplier
• body vs wick ratios
• minimum wick dominance
• optional EMA-based trend filter
Nothing is hard-coded, because markets, symbols, and timeframes behave differently. You can tune it for crypto, forex, indices or rip parts of it for your own experiments.
There are no zones, no boxes, no clutter, just clean markings where the condition happened, so it’s easy to read and easy to build on. It’s more like a visual highlighter for moments where price/volume behavior becomes interesting.
Multi-Symbol Inside Bar Detector (4-Symbol Compression)Multi-Symbol Inside Bar Detector (4-Symbol Compression)
Overview
Detects simultaneous inside bars across 4 symbols in real-time — a signal of market-wide compression that may precede directional moves. When all 4 symbols are "inside" (trading within the prior bar's range), the market is consolidating.
Monitor SPY, QQQ, DIA, IWM (or any 4 symbols you choose) on a single timeframe. No more chart hopping. Designed for Rob Smith's "The Strat" methodology and price action traders who trade compression setups.
🎯 Why This Matters
Inside bars indicate compression and consolidation.
When all 4 major ETFs simultaneously compress into inside bars:
Market is consolidating within a range
Volatility is contracting (not expanding)
A directional move may follow (direction unknown)
This is NOT a directional signal — it's a consolidation detector. You determine direction based on your analysis. This indicator identifies WHEN compression exists across multiple symbols.
✅ Key Features
✅ 4-Symbol Monitoring — Track 4 symbols simultaneously on one timeframe
✅ Visual Alerts — Bar coloring + optional "4-Inside" labels
✅ TradingView Alerts — Get notified when all 4 go inside simultaneously
✅ Live vs Confirmed Mode — Toggle between real-time (repaints) or bar-close confirmation (no repaint)
✅ Customizable — Any 4 symbols, any timeframe, custom colors
✅ Debug Table — See which symbols are inside (troubleshooting)
📊 How It Works
Inside Bar Definition (Rob Smith Standards)
An inside bar forms when:
High < Prior High AND
Low > Prior Low
Current bar trades entirely within prior bar's range.
Technical Implementation
pinescriptisInside(h, l, ph, pl) =>
na(h) or na(l) or na(ph) or na(pl) ? false : (h < ph and l > pl)
NA-safe: Handles missing data gracefully
Strict comparison: Uses < and > (not <= or >=)
Rob Smith compliant: Tick-perfect inside bar detection per Strat methodology
4-Symbol Requirement
Signal fires when ALL 4 symbols are inside bars simultaneously. If only 3 are inside → no signal. All 4 must compress together.
⚙️ Settings Guide
Symbols
Default: SPY, QQQ, DIA, IWM (broad market coverage)
Customize: Click to change to ANY 4 symbols
Popular Combinations:
Futures: ES, NQ, YM, RTY
Sectors: XLF, XLK, XLE, XLV
Mega Caps: AAPL, MSFT, GOOGL, AMZN
Timeframe
Default: 60 (1-hour bars)
What it does: Applies SAME timeframe to all 4 symbols
Examples: 5 (5min), 15 (15min), D (Daily)
Live Intrabar Mode
ON (default): Shows forming bars in real-time (repaints until close)
OFF: Waits for bar close (no repaint, confirmed only)
Use ON for: Live monitoring, intraday setups
Use OFF for: Alerts, backtesting, confirmed signals
Display Options
Show Labels: Toggle "4-Inside" labels on/off
Inside Bar Color: Default yellow (customize)
Show Debug Table: See per-symbol status (for troubleshooting)
🔔 Setting Up Alerts
Right-click chart → "Add Alert"
Condition: Select this indicator
Frequency: "Once Per Bar Close" (recommended for confirmed mode)
Alert fires when all 4 symbols go inside simultaneously (edge detection, not every bar)
💡 Example Trading Approaches
Note: These are educational examples, not trading advice. Past compression patterns do not guarantee future directional moves.
Approach 1: Higher TF Compression → Lower TF Trigger
1H chart: 4-symbol inside bar forms (compression)
15m chart: Monitor for directional break
Await confirmation with your analysis before entry
Approach 2: Daily Compression → Intraday Entries
Daily chart: All 4 compress (consolidation)
1H chart: Monitor for range expansion
Use your directional bias to determine position
Approach 3: Sector Analysis
Use sector ETFs (XLF, XLK, XLE, XLV)
When all 4 compress → observe which breaks first
Analyze sector strength/weakness patterns
🎯 Why 4 Symbols?
Market coverage: When SPY, QQQ, DIA, and IWM all compress together, it indicates broad market consolidation across multiple market-cap segments.
SPY: S&P 500 (large caps)
QQQ: Nasdaq 100 (tech)
DIA: Dow 30 (blue chips)
IWM: Russell 2000 (small caps)
Using 4 major indices helps filter noise from single-symbol compression.
⚡ Quick Start
Add indicator to chart
Choose symbols (default: SPY/QQQ/DIA/IWM)
Set timeframe (default: 60min)
Toggle live mode (ON for real-time, OFF for confirmed)
Create alert (optional)
Yellow bars = all 4 inside
Use with your directional analysis
🔒 Technical Details
Code Quality
✅ PineScript v6 (latest)
✅ NA-safe logic (handles missing data)
✅ Rob Smith Strat standards (strict tick tolerance)
✅ No repainting (in confirmed mode)
✅ Efficient performance (max_bars_back=2)
✅ Open-source (educational transparency)
Repainting Behavior
Live Mode (ON): Repaints until bar closes (shows forming bars)
Confirmed Mode (OFF): No repaint, waits for bar close
Alert recommendation: Use Confirmed Mode to avoid false alerts
📞 Support
Follow me on TradingView for updates and new indicators.
Questions? Leave a comment below. I respond to all feedback.
⚠️ Important Disclaimers
Not financial advice: This indicator is for educational purposes and market analysis
No performance guarantees: Past patterns do not predict future results
Directional bias required: Inside bars indicate consolidation, not direction
Risk management essential: Always use proper position sizing and stops
Test before trading: Backtest on historical data and paper trade first
💬 Final Thoughts
Compression often precedes expansion, but direction remains uncertain. When multiple major indices compress simultaneously, it indicates market-wide consolidation. This indicator helps identify those moments across 4 symbols — no more chart hopping, easier pattern recognition.
Use it as one component of your analysis, combine with your directional methodology, and always manage risk appropriately.
Happy trading! 📈
Free and open-source for personal use. If you find this valuable:
👍 Like | 📝 Review | 🔔 Follow
Short seller Market Stats Box (NY Time)This box will give you the basic info for your stats if you are a short seller .
The tricky one is the morning push it will give you the higher high between 9:30 and 10:00 . OPP% is the difference between market open and market close.






















