Candle Expansion Failure @MaxMaseratiCandle Expansion Failure
MMM Body Close Candle Classification with Failed Swing Reversal Control
This indicator classifies every candle by whether its close pushed through the prior bar's range (Body Close) or stalled inside it (No Body Close), then tracks each directional leg for a failed continuation attempt. When a leg fails, it converts into a live structural zone that extends, updates, and eventually invalidates in real time.
─── WHY THESE COMPONENTS TOGETHER ───
Candle coloring alone tells you direction, not conviction — two bullish candles can look identical while one is a confirmed break and the other is a stall. A basic swing high/low, on its own, tells you where a level sits but not whether price already tried and failed to hold it. Combined, this script produces something neither piece gives alone: a live-updating record of failed breakout attempts, each carrying its own strength grade and invalidation condition, that persists on the chart until price proves the level dead.
─── CANDLE CLASSIFICATION ───
Bullish BC: close > previous high. Bearish BC: close < previous low. Anything else is classified NBC (No Body Close) and colored at reduced opacity to visually separate confirmed breaks from stalls.
─── FAILURE ENGINE ───
Each BC candle opens an "active leg" defined by its high, low, and midpoint. The next candle is checked against three failure conditions: a standard reversal (opposite-direction BC), a trap (price pushes past the leg extreme but closes back inside it), or a blowout (price never touches the leg extreme and closes through the opposite side). Any of the three closes the leg and plots a Failed Swing High (FSH) or Failed Swing Low (FSL) line with a strength tag: X for a marginal failure, X+ for a close against the leg's own candle, X++ for a failure through the leg's midpoint or an untouched blowout.
─── LIVE ZONE TRACKING ───
Failed-swing lines are not static. Each new push-back that sets a fresh extreme extends the zone's line and label to the new level, and the zone is only deleted when price closes decisively back through its extreme in the original leg's direction — the structural invalidation condition. A configurable cap limits how many failed setups persist per side, automatically retiring the oldest.
─── HOW TO USE ───
1. Watch for a solid BC-colored candle — this opens a new active leg in that direction.
2. If the next candle fails to continue (reverses, traps, or blows out untouched), an FSH/FSL line prints with a strength tag.
3. Read the tag: X++ marks the strongest failure and the most defensible zone; X marks a marginal one.
4. Treat the FSH/FSL line as a live level — it will extend if price pushes back into it without closing through, and it deletes when price closes through the extreme in the failed direction, which is your invalidation signal.
5. Use the Max Setups input to control chart density on higher-timeframe charts with frequent leg failures.
─── SETTINGS ───
Candle Classification — enable/disable custom coloring, BC and NBC colors for both directions.
Failure Engine — failure line colors per direction, line extension length in bars, max concurrent setups per side, and label size.
─── NOTES ───
Failure detection uses each bar's live high/low/close as it forms, so a zone's strength tag and extension can update intrabar until that bar closes — standard behavior for any live structural tracker. Works on any liquid instrument and timeframe; higher timeframes will produce fewer, more significant failed-swing zones. Indicator

Options Swing Helper - Expected Move, Volatility & StructureOptions Swing Helper combines volatility analysis, trend tools, and market structure into a single dashboard, designed to help options and swing traders gauge probable price ranges and momentum at a glance.
Expected Move Cone: Projects a forward-looking price range using annualized historical volatility (as a stand-in for implied volatility), scaled by the square root of time for your chosen number of days. Displays the +/-1 standard deviation levels and a center line, and calculates an HV Rank (the percentile of current volatility versus its own lookback history) to flag whether volatility looks Cheap, Fair, or Rich - useful context before buying or selling premium.
Moving Averages & Signals: Three configurable EMAs with optional buy/sell triggers based on EMA crossovers or price crossing an EMA, with an optional filter requiring the long-term EMA's direction (and slope) to agree before signaling.
Market Structure: Automatic swing high/low detection with strong vs. weak classification, zone boxes, and BOS/CHoCH break labels to visualize trend structure and potential reversals.
Dashboard: A live table summarizing price, historical volatility, HV Rank, expected move (in points and %), the 1 SD range, a volatility premium read, trend bias, and the current EMA signal.
All inputs are fully customizable via grouped settings for the cone, moving averages, signals, structure, and dashboard display.
Created by Academia Trade.
This script is provided for informational and educational purposes only and does not constitute financial advice. Indicator

Anchor rails - session levels and event countdown [AuraSznfx]Most intraday trading is organized around a handful of scheduled clock times — the London open, the 8:30 and 10:00 data releases, the cash open, the end of the first hour, the 2:00 policy release. This script makes that schedule visible on the chart instead of tracked in your head, and pairs it with the price levels that formed before each one.
There are many scripts that draw session highs and lows. What this one adds is the clock layer on top of them: a countdown to the next scheduled anchor, a phase read-out describing where the current bar sits relative to that anchor, a configurable window marked either side of it, and a running count of how many of the day's tracked levels have already been taken.
WHAT IT DRAWS
Five session ranges: overnight, London, premarket, opening range, and first hour. Each window's start and end time is a session input you can change, so the defaults are a starting point rather than a rule. While a window is open the script tracks its running high and low and shows them as a box. When the window closes, the box is deleted and replaced by two horizontal lines fixed at the final high and low, extended forward a configurable number of bars.
Yesterday's high, low and close, pulled from the daily timeframe with lookahead disabled. An optional midpoint is available.
HOW THE LEVEL-TAKEN LOGIC WORKS
Once a range is locked, each of its two lines is watched independently. The high is marked taken the first time a bar's high exceeds it. The low is marked taken the first time a bar's low falls below it. Detection is one-way and permanent for the session — a level does not un-take itself if price returns.
When a level is taken you can have it dim to a configurable transparency, dim and switch its label to a marked state, or delete outright. That choice is a style preference; the underlying state is tracked the same way regardless.
Note the deliberate limitation: detection uses the bar's high and low, so on a live bar a level can register as taken and then the bar can close back inside the range. If you want confirmed-close behavior instead, use a higher timeframe or wait for the bar to close before acting on the alert.
HOW THE ANCHOR CLOCK WORKS
You enable whichever of the nine preset times you care about, plus one custom hour and minute of your own. Every one is read in the timezone you select at the top of the settings.
On each bar the script builds a timestamp for every enabled anchor on the current date, then finds the nearest one ahead of the current bar close and the nearest one behind it. From those two distances it produces four outputs in the panel:
Time to the next anchor, formatted as a countdown.
A progress bar filling over the final 30 minutes before it.
A phase label, resolved in this priority order: inside the post-anchor window, within 15 minutes after, inside the pre-anchor window, inside 10 minutes, inside 30 minutes, otherwise standby.
A taken count out of the ten tracked level lines.
If every enabled anchor for the day has passed, the countdown rolls to the earliest one on the following day.
The event window is the pre and post minute values you set. When the current bar falls inside it, the chart is optionally tinted, and an alert can fire once as it begins. Nothing about this window predicts direction. It marks that a scheduled release is close, which is information you would otherwise be checking a calendar for.
HOW TO USE IT
Set your timezone first; everything else reads from it. Adjust the five session windows to the instrument you trade — the defaults are built around US index futures on New York time and will not suit an FX or crypto session structure without changes. Then switch off the anchor times that aren't relevant to your market.
The levels show where price has already been tested. The clock shows when the next scheduled event arrives. What you do with either is your decision — this script issues no buy or sell signals and takes no view on direction.
ALERTS
Two alert condition entries are provided, for any level taken and for the event window opening, usable from the standard alert dialog. Individual per-level alerts fire through the alert() function on bar close. Payloads can be sent as plain text or as structured JSON for webhook use, toggled in the settings.
NOTES AND LIMITATIONS
Written in Pine v6.
Locked levels do not repaint. A range only becomes lines after its window has closed, and those values never change afterward.
The daily request uses lookahead_off. No future data is accessed anywhere in the script.
The phase labels describe clock position only. They are not signals and carry no expectation of what price will do.
The script has no view on direction and produces no entry or exit signals. It is a context tool.
On very low timeframes the drawing limits of 500 lines, boxes and labels can be reached over a long history. Reduce the extend-right value or switch off sessions you do not need. Indicator

Trend-Aligned Oscillator Reversal Engine Comprehensive Guide: Trend-Aligned Oscillator Reversal Engine
Introduction: What is this script and its primary purpose?
The "Trend-Aligned Oscillator Reversal Engine" is a highly sophisticated, multi-layered custom indicator written in Pine Script for the PulseWire platform. Unlike traditional single-metric indicators that often produce false signals in choppy markets, this script functions as a complete, self-contained trading system.
Its primary purpose is to identify high-probability market reversal points by combining momentum exhaustion with strict trend-following filters. The script aims to solve a common dilemma for traders: getting into a reversal early enough to maximize profit, while ensuring the broader market structure supports the trade. By demanding a "confluence of evidence" from multiple technical sources before issuing a buy or sell signal, it minimizes the risk of catching falling knives or shorting into parabolic uptrends. Furthermore, it includes automated alert conditions, making it seamlessly compatible with external platforms via webhooks, Telegram, or API integrations for automated trading.
Working Mechanism: How does it detect trading signals?
The script generates Buy and Sell signals through a complex, dual-engine architecture combined with a dynamic entry delay system. It operates using three distinct technical phases:
1. The Oscillator Reversal Engine (The Trigger)
This engine acts as the primary signal detector, scanning for moments when the market is overextended and ready to snap back. It aggregates data from four classic momentum oscillators:
RSI (Relative Strength Index): Set to a standard 14-period lookback, it detects extreme price levels. A long signal requires the RSI to cross back above the 30 (oversold) threshold, while a short signal triggers when crossing below 70 (overbought).
Stochastic Oscillator (14, 3, 3):This measures closing prices relative to the high-low range. It looks for bullish %K and %D crossovers below the 20 level and bearish crossunders above the 80 level.
Oscillator MACD (12, 26, 9): Identifies shifts in short-term momentum via the crossover or crossunder of the fast MACD line and the signal smoothing line.
CCI (Commodity Channel Index - 20): Detects when cyclical boundaries are breached, triggering upon crossing the -100 or +100 levels.
Confluence Scoring: Rather than relying on just one metric, the script assigns a score of 1 to 4 based on how many oscillators trigger simultaneously. The user can define the `osci_min_score` (default is 1) required to generate a baseline reversal signal.
2. The Trend Confirmation Engine (The Filter)
If the `use_trend_filter` setting is enabled, a reversal signal is completely blocked unless the broader market trend aligns with the trade direction. This engine evaluates five distinct trend indicators:
EMA (50-period): Assesses if the current price is above or below the baseline moving average.
ADX & DMI (14-period): Ensures there is actual trend strength (ADX > 20) and identifies whether buyers (+DI) or sellers (-DI) are in control.
Trend MACD: Validates medium-term momentum direction relative to the zero line.
Supertrend : Evaluates volatility-based trailing support and resistance bands.
Ichimoku Cloud: Checks if the price is trading above the Kumo Cloud (bullish) or below it (bearish).
Trend Scoring:Similar to the oscillators, it calculates a trend score out of 5. By default, at least 3 out of 5 indicators (`trend_min_score`) must agree to confirm the trend's legitimacy.
3. The Retest State Machine (Entry Optimization)
When a trend shift occurs, the script features an optional "Retest Mode". Instead of entering immediately on a breakout—which often leads to fake-outs—the system waits for the price to retest a specific support/resistance level. This level is calculated dynamically using a 14-period Average True Range (ATR) multiplier. The script will wait for a maximum number of candles (default is 3) for this retest to happen before validating or discarding the setup.
How to Use: Recommended Settings and Suitable Markets
Recommended Configurations:
For Conservative Traders: Increase the `osci_min_score` to 2 or 3. This means at least two or three oscillators (e.g., RSI and MACD) must agree simultaneously, drastically reducing false signals. Always keep `use_trend_filter` set to `true`.
Trade Direction Filter: If you are trading in a confirmed macro bull market (like Bitcoin leading up to a halving), set the `trade_direction` to "Buy Only". This ensures you only catch the dips in a larger uptrend and prevents you from fighting the primary market direction.
Retest Mode Adjustments: In highly volatile conditions, leave "Enable Retest Mode" checked with an ATR multiplier of 1.0 to secure better entry prices. In aggressive breakout markets where pullbacks are rare, you may want to disable this feature so you do not miss fast-moving trades.
Suitable Markets and Timeframes:
Because of its reliance on confluence, trend strength, and ATR volatility, this indicator is highly versatile.
Markets: It performs exceptionally well in the Forex market (e.g., EUR/USD, GBP/JPY) where trends and mean-reversions are clearly defined. It is equally effective in Crypto (BTC, ETH) and Indices (S&P 500, NASDAQ) because the rigorous trend-filtering engine automatically strips out the "noise" and fake-outs typical in high-volatility assets.
Timeframes:The script is optimized for medium to higher timeframes. The 15-minute (15m), 1-hour (1H), and 4-hour (4H) charts are ideal. Using it on lower timeframes (like the 1-minute chart) is not recommended, as micro-market noise can prematurely trigger the oscillators before the macro-trend indicators have time to align. Indicator

Confluence Trend and Fibo Reversal SystemAn In-Depth Overview of the "Confluence Trend and Fibo Reversal System"
Introduction: The Purpose and Core Architecture
The "Confluence Trend and Fibo Reversal System" is a sophisticated, highly adaptable Pine Script trading indicator designed to dynamically navigate fluctuating market conditions. The primary objective of this script is to solve a fundamental problem in technical analysis: the tendency of trend-following indicators to produce false signals during sideways markets, and the failure of mean-reversion oscillators during strong trends. To achieve this, the indicator operates as a dual-regime trading algorithm. It constantly analyzes price action to determine whether the current market environment is trending or ranging (sideways). Based on this real-time assessment, the script autonomously switches its internal logic, deploying either a momentum-based confluence engine for trends or a reversal-based engine strictly filtered by Fibonacci retracement levels for sideways markets.
Operating Mechanisms: How the Indicator Generates Signals
The technical architecture of this indicator is divided into four distinct analytical engines that work together to validate trading signals.
1. The Market Regime Filter (Range Detection)
Before any signal is generated, the system calculates a "Range Score" to determine the market state. It evaluates six specific technical conditions:
ADX (Average Directional Index): Checks if the ADX value is below 25, indicating weak trend strength.
Bollinger Bands Position: Verifies if the closing price is contained securely within the upper and lower bands.
Bollinger Bandwidth (BBW): Measures volatility by checking if the current bandwidth is narrower than its 20-period moving average.
RSI (Relative Strength Index): Checks if the RSI is hovering in a neutral zone between 40 and 60.
Stochastic Oscillator: Confirms that the Stochastic K-line is resting in a non-extreme zone between 20 and 80.
EMA Convergence:Measures the gap between the 20-period and 50-period Exponential Moving Averages, checking if they are tightly converged within half of the Average True Range (ATR).
If the total score meets a user-defined threshold (defaulting to 4 out of 6), the system classifies the market as "Ranging" and activates the Reversal engine; otherwise, it defaults to the Trend engine.
2. The Trend Engine (Confluence Scoring)
When the market is clearly trending, the script relies on a strict multi-indicator confluence system to prevent premature entries. It generates a bullish or bearish score out of five possible points:
Price positioning relative to the 50-period EMA.
Directional dominance using the ADX (+DI vs -DI).
Momentum confirmation via MACD baseline crossovers.
Trend alignment with the Supertrend indicator.
Price placement above or below the Ichimoku Kumo Cloud.
A final buy or sell signal in trend mode is only triggered if the accumulated score meets the "Minimum Confluence Score" threshold (defaulting to 4 out of 5).
3. The Reversal & Fibonacci Engine
If the market is ranging, the script hunts for mean-reversion opportunities by scanning for specific price action anomalies and oscillator extremes. It looks for Bullish/Bearish Engulfing candles, Pinbars (Hammers and Shooting Stars), RSI overbought/oversold crossovers, Stochastic extreme crossovers, and Bollinger Band boundary breakouts.
Crucially, these reversal patterns are deemed invalid unless they occur in close proximity to an automatically generated Fibonacci level. The script identifies the highest high and lowest low over a 100-bar lookback period to draw dynamic Fibonacci retracement lines (0.000 to 1.000). A reversal signal is only approved if the price action happens within a tight percentage tolerance zone around these key Fibonacci levels.
4. The Retest Engine
To drastically reduce false breakouts, the script features a built-in "Retest Mode". Instead of firing a buy or sell signal immediately when conditions are met, the script calculates a target "retest price" offset by an ATR multiplier. It will then hold the pending signal in memory for a maximum number of candles (defaulting to 4). The final execution signal is only printed on the chart if the price pulls back to successfully retest this calculated ATR level, proving the validity of the breakout.
Implementation and Usage Guidelines
Recommended Settings
Trade Direction: It is highly recommended to leave the trade direction set to "Both" to allow the dynamic regime filter to operate at its full potential. However, if trading against a higher timeframe macroeconomic trend, users can restrict the system to "Buy Only" or "Sell Only".
Retest Mode: Keep "Enable Retest Mode" activated. While it may cause you to miss trades that instantly aggressively rally, it will save you from substantial losses caused by "fake-out" signals.
Confluence Threshold: For aggressive traders, lowering the Trend Minimum Confluence Score to 3 will yield more signals. For conservative traders, leaving it at 4 or 5 ensures that only the highest probability momentum shifts are traded.
Visual Enhancements: Keep the "Highlight Range Market Background" enabled. This feature turns the chart background orange during sideways markets, providing excellent visual context as to why the indicator is currently ignoring standard trend breakouts.
Suitable Markets and Timeframes**
Because the "Confluence Trend and Fibo Reversal System" actively adapts to volatility and structural shifts rather than relying on static logic, it is exceptionally versatile. It is well-suited for high-liquidity markets such as major Forex pairs (EUR/USD, GBP/USD), large-cap Cryptocurrencies (Bitcoin, Ethereum), and major Equity indices. Due to its reliance on 100-period lookbacks for Fibonacci mapping and 50-period EMAs for trend detection, the indicator performs optimally on medium to higher timeframes—specifically the 1-Hour (H1), 4-Hour (H4), and Daily (D1) charts—where market noise is minimal, and true institutional support and resistance zones are respected. Indicator

5 Trend Indicators Combo IndicatorThe 5 Trend Indicators Combo with Retest Logic: A Comprehensive Guide
The "5 Trend Indicators Combo Indicator" is an advanced, multi-faceted technical analysis tool built using Pine Script for PulseWire. Its primary purpose is to identify high-probability trend reversals and continuations by aggressively filtering out market noise and minimizing false breakout signals. Instead of relying on a single, isolated metric—which can often be misleading—this script utilizes a robust "confluence" methodology. It systematically evaluates five distinct, highly respected trend-following indicators, aggregating their individual statuses into a unified scoring system. Furthermore, it elevates standard signal generation by incorporating an intelligent pullback (retest) mechanism, explicitly designed to optimize entry prices so that traders do not buy at the absolute top or sell at the bottom of a sudden, volatile price spike. Additionally, it features a built-in graphical dashboard that allows traders to instantly monitor the bullish or bearish status of all five indicators in real-time.
Working Mechanism: How does it detect trading signals?
The core engine of this script evaluates five technical pillars, each contributing a maximum of one point to a total "Bull Score" or "Bear Score":
1. Exponential Moving Average (EMA): Defaulted to a 50-period length, the EMA establishes the chart's baseline directional bias. A bullish point is awarded if the current closing price is strictly above the EMA, and a bearish point is given if it is below.
2. Average Directional Index (ADX) & DMI: This component measures the absolute strength and direction of a trend. To score a point, the ADX value must exceed a specific threshold (defaulted to 20), acting as a strict filter to ensure the market is actually trending rather than chopping in a sideways range. Once this threshold is met, the Directional Indicators dictate the bias: +DI must be greater than -DI for a bullish point, and vice versa for a bearish point.
3. Moving Average Convergence Divergence (MACD): Operating with standard 12, 26, and 9 periods, the MACD assesses momentum shifts. The script requires strict criteria here: for a bullish score, the MACD line must be above the Signal line *and* above the zero baseline. Bearish points require the MACD line to be completely below both.
4. Supertrend:Utilizing a multiplier of 3.0 and an ATR period of 10, the Supertrend acts as a volatility-adjusted trailing stop. It awards a point depending on whether the current trend is mathematically calculated as bullish (direction < 0) or bearish (direction > 0).
5. Ichimoku Cloud (Kumo): The script analyzes the relationship between the closing price and the Kumo (Cloud), which is defined by Senkou Span A and Span B projected 26 periods into the future. A bullish point is granted only if the price has successfully broken out above the top boundary of the cloud, signifying dominant long-term momentum. A bearish point requires a breakdown below the bottom boundary.
Once the overall score is tallied (ranging from 0 to 5), the script compares it against a user-defined "Minimum Confluence Score". When the score crosses this threshold, an initial trend signal is generated. However, the script's standout technical feature is its "Retest / Pullback" logic. Instead of firing the final execution alert immediately upon the breakout, the script enters a "pending" state. It calculates a dynamic retracement target using an Average True Range (ATR) multiplier. For a buy signal, the price must briefly retrace down to `Close - (ATR * Multiplier)`. The script waits for a maximum number of candles (default is 3) for this pullback to occur. If the price successfully touches this retest level, a highly optimized, safe entry is signaled. If the time expires without a retest, the script automatically fires a delayed entry to ensure the trader does not miss a runaway trend.
How to Use: Optimal Settings and Suitable Markets
To deploy this indicator effectively, traders should focus on optimizing the 'Minimum Confluence Score'. A score of 3 is the recommended baseline, offering a healthy balance between trade frequency and signal accuracy. Increasing this to 4 or 5 will result in much stricter, albeit fewer, high-conviction signals. The Retest ATR Multiplier and Max Wait Bars must be adjusted according to the timeframe; faster timeframes might require smaller ATR multipliers to successfully catch brief micro-pullbacks before the timer expires.
Regarding suitable markets, this indicator is exclusively designed for trending environments. It performs exceptionally well in high-liquidity, directional markets such as major Forex pairs (e.g., EUR/USD, GBP/JPY), large-cap cryptocurrencies (Bitcoin, Ethereum), and major stock indices (S&P 500, NASDAQ). Because it relies heavily on trend-following logic and moving averages, it is most appropriate for medium to higher timeframes, particularly the 1-hour, 4-hour, and Daily charts. Using it on extremely low timeframes (like 1-minute or 3-minute charts) may expose it to excessive intraday noise and erratic wicks, though the ADX filter and Retest mechanism will actively attempt to mitigate those risks. Ultimately, this script transforms a standard chart into a highly systematic, rule-based trading system. Indicator

Indicator

Smart Market Structure & Liquidity Engine [SMC]Smart Market Structure and Liquidity Engine
Overview and Core Philosophy
The Smart Market Structure and Liquidity Engine is a comprehensive, non-repainting technical analysis framework engineered for price action traders, ICT or SMC enthusiasts, and market structure analysts.
Instead of relying on lagging indicators or noisy indicators, this script combines Adaptive Volatility Filtering (ADX and DMI), Market Structure Shifts (BOS and CHoCH), and Previous Day Equilibrium Logic to give traders a crystal-clear view of market context, institutional bias, and premium versus discount pricing.
Key Features and Technical Mechanics
1. Adaptive Trend Wave and Dynamic Consolidation Engine
Uptrend Expansion (Neon Green): Indicates strong bullish directional bias and institutional buying pressure.
Downtrend Expansion (Hot Red): Indicates strong bearish directional bias and institutional selling pressure.
Smart Consolidation Filter (Slate Grey): Automatically detects sideways and low-momentum markets using native ADX logic. It shifts candles to neutral grey during choppy phases to prevent over-trading.
2. Structural Setup Trigger (Yellow Highlight Candle)
Replaces standard Buy and Sell verbal labels with clean visual highlights to comply with clean chart presentation standards.
Yellow Candle: Marks high-probability rejection candles that align with the active trend wave, highlighting immediate points of interest.
3. Dynamic Daily Levels and Equilibrium (PDH, EQ, PDL)
Previous Day High (PDH): Automatically draws upper daily liquidity levels.
Previous Day Low (PDL): Automatically draws lower daily liquidity levels.
50 Percent Equilibrium Line (EQ): Dynamically plots the 50 percent midpoint of the previous day range, helping traders easily distinguish between Premium (Overpriced) and Discount (Underpriced) zones.
4. Extended High-Probability Zones (Order Blocks)
Automatically plots order block zones upon key setup triggers.
Includes a Live Price Extension Feature, which extends the active zone forward so you can easily observe price reacting inside the box in real-time.
5. Non-Repainting Market Structure (BOS and CHoCH)
BOS (Break of Structure): Signals trend continuation.
CHoCH (Change of Character): Signals early structural reversal.
Built using safe, shift-corrected multi-timeframe security logic to ensure historical accuracy without repainting.
Full Settings and Customization Guide
Neon Wave Glow and Candle Settings
Wave Sensitivity Length: Adjusts how quickly the trend wave reacts to price changes (Default: 8).
Wave Range Multiplier: Controls the volatility band width (Default: 1.6).
Consolidation ADX Threshold: Set the ADX sensitivity cutoff (Lower values require tighter consolidation before turning grey).
Uptrend, Downtrend, Consolidation Colors: Fully customizable palette for chart visualization.
High-Probability Entry Signal (Yellow Candle)
Entry Trigger Sensitivity: Fine-tunes the structural lookback required for trigger highlights.
Entry Signal Color: Customize the setup highlight color.
Previous Day Levels and Equilibrium
Show Active PDH, EQ, PDL: Toggle visual daily liquidity lines on or off.
Line Styles and Colors: Independent style (Solid, Dashed, Dotted) and color settings for PDH, PDL, and 50 percent EQ lines.
Levels Text Size: Adjustable font sizes (Tiny, Small, Normal, Large) for desktop and mobile displays.
High-Probability Zone Customization
Extend Zone To Current Price: Enable to stretch the current active zone into live price action.
Zone Box Styling: Full control over Background Color, Border Color, Border Thickness, Box Opacity, and Label Text Alignment.
How to Use (Educational Framework)
1. Identify Directional Context: Check the color of the Dynamic Ribbon. (Green = Bullish Bias, Red = Bearish Bias, Grey = Ranging or Exercise Caution).
2. Evaluate Premium versus Discount: Compare current price with the 50 percent EQ Line. Long Setups carry higher probability when price is below EQ (Discount). Short Setups carry higher probability when price is above EQ (Premium).
3. Execution Alignment: Look for structural rejections (Yellow Setup Candle) tapping into active HP Zones near key PDH or PDL levels.
House Rules and Educational Disclaimer
No Repainting: All historical levels, zones, and structure lines are calculated on bar-close logic.
Educational Tool: This script is designed exclusively for market structure mapping and educational analysis. It does not provide financial advice or automated trading signals.
Indicator

Call Put Vega Propagation [KG]This is an options-analytics tool for PulseWire. It doesn't plot price — it plots Vega, which is a measure of how sensitive an option's price is to changes in implied volatility (IV). In simple terms: Vega tells you how much extra premium an option gains or loses when the market's expectation of future volatility rises or falls.
The script builds two Vega values using the real Black-Scholes options pricing formula:
Call Vega — sensitivity of call options to volatility changes, based on your Call IV input
Put Vega — sensitivity of put options to volatility changes, based on your Put IV input
Because you can set Call IV and Put IV differently (this is called "volatility skew," which is normal in real markets), the two lines move independently. From these it derives:
Net Vega = Call Vega + Put Vega
Vega Difference = Call Vega − Put Vega
Call/Put Ratio = Call Vega divided by Put Vega
Daily Highs = the peak value each line reached so far that trading day
All of this shows up in a table on your chart, plus an oscillator-style panel below the price chart with the Call, Put, and Net Vega lines plotted over time.
1)How to read the dashboard:
What you see & What it means
Call Vega rising--Call options are becoming more sensitive/valuable to a rise in volatility
Put Vega rising--Same idea, but for put options
Net Vega > 0 (green)--Overall Vega exposure is skewed toward calls
Net Vega < 0 (orange)--Overall Vega exposure is skewed toward puts
Bias = "Bullish (Call Dominant)"--Call Vega is currently above Put Vega
Bias = "Bearish (Put Dominant)"--Put Vega is currently above Call Vega
Signal = BUY--Call Vega just crossed above Put Vega while Call Vega itself was positive
Signal = SELL--Put Vega just crossed above Call Vega while Put Vega itself was positive
Signal = WAIT--No fresh cross has happened
2)How people typically use a tool like this:
Trend confirmation, not entry timing on its own. A BUY signal suggests options-volatility dynamics are tilting toward calls — some traders use this as a filter to confirm a bullish bias before entering a trade based on price action or another indicator.
Watch Net Vega for regime shifts. When Net Vega crosses from negative to positive (or back), it can indicate a broad change in how the options market is positioning around volatility.
Use the Call/Put Ratio for extremes. A ratio far from 1 suggests lopsided Vega exposure, which some traders treat as a sign of stretched positioning.
Combine, don't isolate. Because this is a derived, model-based indicator (not raw price or volume), it works best layered with price action, support/resistance, or a trend indicator — not traded in isolation.
3)Timeframe:
This was built with intraday index/options trading in mind (the inputs reference expiry dates, strike steps, and Indian market time formatting — "Asia/Kolkata" — it's designed for Nifty/Bank Nifty options). Reasonable defaults:
5-minute to 15-minute charts for intraday options trading, where Vega shifts matter most as expiry approaches
1-hour or daily if you want a slower, higher-conviction read on volatility bias rather than fast signals
The Call/Put Rate-of-Change lengths (14 and 21 by default) control how reactive the two lines are — shorter values = faster, noisier signals; longer values = smoother, slower signals. You may want to adjust these depending on your timeframe.
4)A few things to know before trusting the signals-
The Vega values are modeled, not pulled from a live options chain. Spot price, a rough ATM strike, and your manually entered IV percentages feed a Black-Scholes formula — they're an approximation of real market Vega, not the actual quoted Vega from your broker's option chain.
IV inputs are static numbers you set once, not live IV data — so if real implied volatility moves away from your input, the indicator's read will drift from reality.
Crossovers (like Call crossing Put) can produce false signals in choppy or low-volatility conditions, same as any crossover-based system.
5)Disclaimer:
This is an educational breakdown of what the code does, not trading advice. This indicator, like any technical or options-analytics tool, does not guarantee profitable trades and should not be used as a sole basis for financial decisions. Its Vega calculations rely on user-supplied and approximated inputs rather than live market data, which limits their precision.
Indicator

Sessions POI values & Price actions# Sessions POI Values & Price Actions
**Sessions POI Values & Price Actions** is a configurable intraday analysis toolkit that combines session context, Opening Range Breakout levels, liquidity-sweep reversals, daily and session highs/lows, higher-timeframe fair value gaps, and an optional moving-average trend overlay.
It is designed for discretionary chart analysis. The indicator does not place orders, manage positions, or predict future price direction.
## Key Features
### Configurable Trading Sessions
Track three independently configurable trading sessions, with default presets for:
- Tokyo
- London
- New York
Each session supports an editable:
- Displayed name
- Start and end time
- Timezone
- Separator colour
IANA timezones such as `Europe/London` and `America/New_York` are supported for daylight-saving-aware session timing.
### Opening Range / ORB
The optional Opening Range Breakout visualisation calculates the high and low formed during the first configurable number of minutes of each enabled session.
ORB features include:
- Independent enable controls for every session
- Editable duration from 1 to 60 minutes
- Box, Lines, or Box + Lines display modes
- ORB-period-only or session-end extension
- Separate ORB High and ORB Low colours
- Solid, dashed, or dotted boundaries
- Editable line width, border width, fill colour, and transparency
- Optional ORB High and ORB Low labels
- Configurable historical retention
The ORB is disabled by default.
During the opening window, its high and low update as price develops. Once the window closes, both values freeze and remain independent from the full-session high and low.
Bars are included when their opening time is at or after the session start and strictly before the ORB end. If the chart timeframe is larger than an enabled opening-range window, the ORB is hidden and a warning is displayed.
### Session High and Low
Display the evolving high and low of the active trading session.
Available display modes:
- Current active session only
- Historical completed sessions
Session H/L values remain separate from ORB H/L:
- **ORB H/L** represents only the opening range.
- **Session H/L** continues tracking the full session.
### Daily High and Low
Optionally display the current or historical daily high and low with editable:
- High and low visibility
- Colours
- Line width
- History mode
### Liquidity-Sweep Reversal Markers
The indicator identifies contextual bullish and bearish reversal formations built from:
1. A previous candle sweeping a lookback high or low.
2. A configurable minimum wick percentage.
3. A current candle whose real body engulfs the previous candle’s body.
Bullish and bearish markers are displayed directly on the chart using configurable colours.
These markers highlight rule-based price-action conditions. They are not automatic trade entries.
### Higher-Timeframe Fair Value Gaps
Map three-candle imbalance conditions from a configurable list of higher timeframes.
Available controls include:
- Comma-separated timeframe selection
- Nearest, latest, or all-active display modes
- Maximum gaps per timeframe
- Bullish and bearish colours
- Responsive or manual box width
- Horizontal staggering or vertical offset for overlapping zones
- Minimum distance filtering
- Optional distance-to-price text
- Configurable box labels
- Automatic or manual threshold
- Multiple mitigation modes:
- HTF close through the far side
- Chart close through the far side
- Wick touch
Higher-timeframe requests use lookahead-disabled data.
### Moving-Average Trend Overlay
An optional moving-average module provides:
- SMA, EMA, WMA, or linear-regression averages
- Editable short and long periods
- Current or custom calculation timeframe
- Trend-coloured moving averages
- Moving-average cloud
- Trend-based candle colouring
- Cross markers
- Bullish and bearish cross alerts
## Suggested Workflow
1. Configure the session times and timezones for the markets you trade.
2. Enable session or daily highs/lows for broader liquidity context.
3. Enable ORB for the sessions where the opening range is relevant.
4. Observe how price interacts with ORB and full-session boundaries.
5. Use sweep markers, HTF imbalances, and the optional moving-average overlay as additional context.
6. Apply your own confirmation, risk-management, and execution rules.
## Important Behaviour
- ORB uses no future bars or lookahead.
- ORB values stop changing after the configured opening window.
- Full-session highs and lows continue updating independently.
- Overlapping sessions maintain independent ORB calculations.
- Historical ORB drawings are automatically limited to protect PulseWire object capacity.
- Conditions involving the currently open realtime candle can continue changing until that candle closes.
- Only moving-average trend changes currently have built-in alert conditions.
## Intended Use
This indicator is best suited to intraday market analysis, including:
- Session-open preparation
- Opening-range observation
- Liquidity mapping
- Sweep and rejection analysis
- Fair value gap context
- Trend and confluence assessment
Common chart timeframes include 1-minute, 3-minute, 5-minute, and 15-minute charts, provided the selected timeframe does not exceed the configured ORB window.
## Disclaimer
This indicator is an analytical and educational tool. It does not provide financial advice, guarantee outcomes, or automatically execute trades. Historical price behaviour does not guarantee future results. Always apply independent analysis and appropriate risk management. Indicator

Indicator

Time-of-Day/Session Performance Stats [QuantAlgo]🟢 Overview
The Time-of-Day/Session Performance Stats is a comprehensive time-based analysis tool built for traders who want clear, ranked insight into when markets actually move. It measures average range, volume, bullish bias, and drift across every hour of the day and the four major sessions, then surfaces the strongest and weakest windows so you can focus activity where the data supports it. Whether you trade crypto around the clock or equity and forex sessions on a weekday schedule, the indicator turns raw historical bars into practical rankings, session comparisons, and non-repainting chart overlays.
🟢 What is Time-of-Day and Session Performance?
Markets are not uniform across the 24-hour cycle. Liquidity, volatility, and participation concentrate in specific hours and sessions. Sydney is typically the thinnest of the four major centers, Tokyo drives Asian activity, London often produces the widest ranges of the day, and the London-New York overlap is usually the busiest window. By averaging range, volume, the share of up closes, and net drift for each hour and each session over a configurable lookback, this tool converts those recurring patterns into ranked statistics instead of leaving you to rely on memory or anecdotal observation.
🟢 How It Works
The indicator walks a configurable window of past bars (limited by lookback days and a hard max-bar ceiling) in the timezone you select. Every usable bar is assigned to its hour of day and to any sessions it falls inside. Range can be measured in percent of close or in raw price units. Volume, directional closes, and drift are accumulated in parallel. Hours that do not meet a minimum bar-count threshold are dropped from every ranking so tiny samples cannot distort the boards.
Five ranking boards are produced: Activity (average range), Volume (when the symbol reports it), Bias (percentage of directional bars that closed higher), Drift (mean close-minus-open percentage), and Aggregated (the mean percentile of range, volume, and directional edge). Sessions are ranked solely on average range per bar and can be toggled or given custom windows. Overlaps count toward every session involved rather than being forced into one.
Chart overlays read a trailing window of the same length rather than the final ranking, so background shading and bar coloring never repaint. The Focus Hours panel converts the Aggregated ranking into three practical allocation plans plus the single quietest hour to avoid.
🟢 Key Features
▶ Ranking Boards
Five independent boards list every qualifying hour from strongest to weakest.
1. Activity Ranking: Orders hours by average bar range. Rank 1 is the hour with the most room; the last row is the quietest. This is the simplest and often most useful single board.
2. Volume Ranking: Orders hours by average volume. Read it alongside Activity. High range on low volume signals thin participation. The board is hidden automatically on symbols that report no volume.
3. Bias Ranking: Orders hours by the percentage of directional bars that closed above their open. Flat bars are excluded, so the figure reflects only bars that actually moved. There is no separate bearish column; the bottom of the board is the most bearish reading.
4. Drift Ranking: Orders hours by mean percentage change from open to close. An hour can post a high bull rate yet still show negative drift if its losing bars are larger than its winning ones. Divergences between Bias and Drift are often the most interesting signals.
5. Aggregated Ranking: Combines percentile ranks of range, volume (when present), and directional edge into a single composite score. This is the ranking that feeds both the Focus Hours panel and the Aggregated overlay option.
▶ Session Ranking Panel
The four major sessions are ranked by average range per bar and displayed with their window, bull rate, drift, and bar count. Rank 1 takes the bullish color and the last rank takes the bearish color on the same continuous gradient used by the boards. Because a bar inside an overlap is counted toward every session it belongs to, session bar totals can exceed the overall sample size.
▶ Focus Hours Panel
The Aggregated ranking is translated into four labeled plans: Aggressive (top hour only), Mix (top two with 80/20 weights), Conservative (top three with 50/30/20 weights), and Avoid (the single quietest hour by average range). Each row shows the relevant hours, their session affiliation, bull rate, drift, and score so the reading can be acted on immediately.
▶ Chart Overlay
Background shading and price-bar coloring can be driven independently by Session Ranking, Activity Ranking, Volume Ranking, Bias Ranking, Drift Ranking, Aggregated Ranking, or Focus Hours. All overlays are computed from a trailing window so they never repaint. Transparency controls let you keep the ranking obvious or keep it subtle enough not to compete with price.
▶ Session and Filter Controls
Sydney, Tokyo, London, and New York can each be enabled or disabled and given custom HHMM-HHMM windows in the selected timezone. A weekdays-only filter removes weekend bars for forex, futures, and equities while leaving crypto fully intact. The Bars To Include setting can restrict the entire study to all bars, any enabled session, or one named session.
▶ Built-in Alerts
Ready-made alert conditions fire when price enters the peak activity hour, the quietest hour, the peak volume hour, the most bullish or most bearish hour, or the top Aggregated hour. Separate alerts cover the open and close of each individual session, any session start or end, and the start and end of the London-New York overlap.
▶ Color Presets
Six presets (Classic, Aqua, Cosmic, Cyber, Neon, Custom) apply a continuous gradient from the bullish color at rank 1 to the bearish color at the last rank across every board, panel, and overlay. Custom mode exposes individual bullish and bearish color pickers; text contrast is calculated automatically so any chosen colors remain readable.
▶ Interval Warning
When the chart interval is higher than 1 hour, most of the 24 hour buckets never receive a bar, leaving the rankings incomplete. The indicator displays a clear warning label on the chart that explains the limitation and recommends switching to 5m, 15m, 30m, or 1h, for example. The warning can be turned off once the restriction is understood and a clean chart is preferred.
Indicator

AlgoStorm Institutional Session Structure (ISS)AlgoStorm Institutional Session Structure (ISS)
A complete intraday auction-structure engine that maps global session boxes (Asia, London, New York), the Globex overnight range, the Initial Balance with day-type extension targets, the Opening Range, and an automated overnight-inventory classification of the RTH open — directly onto your intraday charts.
The AlgoStorm Institutional Session Structure (ISS) indicator is designed for index futures and intraday traders who read the market through the auction lens: where overnight inventory built, whether the open printed inside or outside that inventory, whether the Initial Balance is containing rotation or the day is extending toward trend, and which session built the reference high or low everyone now trades against. It answers those questions structurally instead of drawing decorative boxes.
TIMEFRAME REQUIREMENT — READ BEFORE LOADING
This is an intraday tool. It refuses to run on 1D charts and above, and the chart timeframe should stay at or below the Opening Range length (the Opening Range and Initial Balance locks resolve at bar granularity). All session windows are DST-aware through a configurable IANA timezone, defaulting to New York time.
Technical Architecture: Fixed-Pool Session Engine
Session-structure indicators commonly rebuild their drawings on every bar, bloating chart performance and churning objects. ISS uses a different execution model:
Per-Session Box Engines: Each session runs its own tracking engine with a private box history. The active box updates its high/low boundary in place as the session develops; boxes older than the history cap (default five days, configurable to twenty) are evicted automatically.
Time-Window Lock Pipeline: The overnight range, Initial Balance, and Opening Range each accumulate in staging registers, then lock permanently the moment their window closes — the overnight at the RTH open, the IB and OR when their configurable minute-windows complete. Locked levels cannot move for the rest of the day.
Extension Mathematics: Extension targets use the classic day-type formula, extension(m) = IB low + m × IB range above the market and IB high − m × IB range below it, with 1.5× and 2.0× defaults. A 1.5× tag means price has traveled 150% of the IB range from the opposite IB boundary.
Zero-Churn Drawing Pool: Every level line and label is created exactly once at initialization and repositioned in place afterward. No per-bar create/delete cycles, no garbage-collection artifacts.
Label Anti-Overlap Engine: Right-edge labels (ON, IB, extensions, OR) are sorted by price each bar and automatically spaced apart whenever two or more sit within a configurable minimum gap (default 0.05% of price). Level lines always stay locked to the true price — only the label text position shifts to stay readable. On by default; fully optional.
Confirmed-Bar Alert Gate: Every alert condition is gated on confirmed bar closes inside RTH. Nothing repaints, and no alert can fire intra-bar and then vanish.
Features & Functionality
Session Boxes: Asia, London, and New York boxes with running high/low, dotted session-open line, and session label. Defaults cover the full sessions (18:00–03:00, 03:00–09:30, 09:30–16:00 New York time); killzone-style alternatives are documented in the input tooltips.
Overnight Range Lock: Globex high/low accumulated through the overnight window and held through the trading day — the reference frame for gap and inventory reads.
Initial Balance + Extension Targets: First 60 minutes of RTH (configurable 15–120) with configurable extension multiples for day-type classification: containment inside the IB, 1.5× tests, or 2× trend extension.
Opening Range: First 15 minutes of RTH (configurable 1–60) — the breakout reference for the open drive.
Overnight Inventory Read: At the RTH open, the engine classifies the print: above the ON high, upper half of the ON range, lower half, or below the ON low — the gap-risk context before the first rotation completes.
Session State Table: Active session, ON high/low, open-vs-ON classification, IB range (shows "forming…" while building, then the locked H/L) with a separate breakout status (inside IB vs. breakout ▲/▼), OR range and status, and which IB extensions have been tested — the whole auction state in one glance.
Alert Suite: Eight conditions — Opening Range breakout up/down, Initial Balance breakout up/down, overnight high/low break, and upper/lower reach of the second IB extension multiple (default 2.0×, trend-day behavior). The first multiple (default 1.5×) is tracked live in the state table but does not carry its own alert.
Honest limitations: ISS is structural context, not a signal system — no entries, no exits, no arrows . Intraday levels draw for the current day only by design; historical context comes from the session boxes. If you also run our Institutional Key Levels (IKL) script, keep IKL's Initial Balance, Opening Range, and Overnight toggles off so nothing double-plots — ISS is the time-anchored view, IKL is the right-edge level strip.
Open-source under CC BY-NC-SA 4.0. Educational tool — not financial advice. Indicator

Round Number Gravity Map - Level Attraction StatisticsRound numbers are supposed to attract price. This script measures whether they actually do on the chart in front of you, rather than assuming it.
WHAT IT DOES
It lays a grid of evenly spaced round levels over the chart, and for every bar measures how far the close sat from its nearest level — expressed as a fraction of the grid spacing. That normalised distance runs from 0.0 (right on a level) to 0.5 (exactly halfway between two).
If price ignored round numbers entirely, that distance would be spread evenly across its range. A band of ±10% of the step covers 20% of the possible range, so 20% of closes would land inside it by chance alone. That 20% is the baseline, and it is what every reading here is measured against:
Gravity = observed pinned rate ÷ expected pinned rate
Above 1.00, closes cluster on the levels more than chance allows — attraction. Below 1.00, price is straddling the grid rather than respecting it, which is just as worth knowing: it means the levels you are drawing are not the ones this market is trading around.
WHAT IT ACTUALLY SHOWS
At the time of writing, on 1-hour charts: ETHUSD reads 1.24 on its 20-dollar grid, and still 1.16 on the finer 10-dollar grid across twice the sample. BTCUSD reads 1.01 on its 500-dollar grid — no effect at all. XRPUSD reads 0.97.
So the folklore is not universal. That is the entire reason to measure it rather than assume it, and it is why the script reports a plain NEUTRAL when there is nothing there instead of dressing the chart up.
HOW TO READ THE TABLE
Step — the grid spacing. On Auto it snaps to the nearest 1 / 2 / 2.5 / 5 × 10^n value near your target percentage of price, so on ETH near 1,900 a 1% target resolves to 20, and on BTC near 100k it resolves to 1000. The comparison is done in log space so it is not biased toward the larger candidate.
Pinned ±10% — the share of closes inside the shaded bands, next to the share you would expect from chance.
Gravity — the ratio of those two numbers. This is the headline.
Mean distance — the average normalised distance as a percentage of the step. A market that ignores round numbers averages 25.0%. Lower means pulled in, higher means pushed away.
On level → halfway — a five-bucket histogram of that distance, left bucket = sitting on a level, right bucket = halfway between two. Real attraction shows up as a left-heavy shape. A flat row of blocks means the grid is doing nothing.
Reading — the plain-language verdict, so the number does not need interpreting mid-session.
Sample — how many bars the statistic is built from, and how many grid levels those bars actually walked across. That second number is the guard, and it matters more than it looks: a high Gravity measured over a range that only spans two or three levels is noise, not attraction, because the baseline has barely been sampled. Ten levels or more is a reading worth taking seriously. If you widen the step until Gravity looks impressive, watch that number collapse — the script is showing you the catch rather than hiding it.
ON THE CHART
Each level is drawn with its shaded band. The level nearest to price is highlighted, since it is the one currently in play. Every level is labelled with its price and the number of bars in the lookback that traded through it — a level tested fifty times is a different object from one tested twice, even though they look identical.
SETTINGS WORTH TOUCHING
Auto target (% of price) — raise it for a coarser grid of bigger levels, lower it for a finer one. This is the setting that changes the answer most, and that is the point: it tells you which scale of round number this market respects. Try 0.5%, then 1%, then 2.5%, and read the Gravity and the levels-spanned figure together rather than either one alone.
Band half-width — widen it and more closes qualify, but the expectation widens with it, so Gravity stays honest.
Lookback — 500 bars is a reasonable sample. Below ~150 the reading gets noisy.
NOTES
The statistic is a description of the sample in front of you, not a forecast. A Gravity of 1.24 says closes clustered near round levels over those bars; it does not say the next one will. Closes are also autocorrelated, so the effective sample is smaller than the bar count suggests — treat a single elevated reading as a hint to look closer, not as a result.
The grid is a market-structure prior, not a signal. Treat a high reading as a reason to expect hesitation near a level, not as an entry.
No repainting. Every value is computed from the chart's own bars. There is no request.security call anywhere in the script, so the higher-timeframe lookahead problem that quietly breaks so many indicators does not exist here — there is nothing to get wrong. Historical bars are computed from their own closes, which is exactly what the realtime bar converges to when it closes.
Open source under MPL 2.0. Read it, fork it, tell me where I am wrong. Indicator

Indicator

HTF Quartile Pressure Conviction and Bias Flip @MaxMaseratiHTF Quartile Pressure Candle Conviction Flip
The core question this indicator answers is simple: where does a candle need to close for its move to count as strong conviction, and where does it need to close for that conviction to be considered broken? A bullish candle is only treated as strong when it closes in the top quartile of its own range (≥75% of high-to-low); a bearish candle is only strong when it closes in the bottom quartile (≤25%). Anything closing in the middle 50% is weak or indecisive, regardless of which direction the candle nominally closed. This threshold is applied across three states of higher-timeframe (HTF) time — the last closed candle, the live forming candle, and any prior candle whose conviction has since been challenged — to give a continuous read on whether HTF pressure is strong, fading, or already flipped.
─── WHY THESE COMPONENTS TOGETHER ───
A static high/low box only shows a completed range — it says nothing about whether the candle's close actually earned directional conviction, or whether the next candle respected it. A live percentage tracker shows the current candle's position but has no memory of what came before. Neither alone tells you whether a candle that failed to hold its conviction quartile is still exerting pressure three, five, or ten bars later. This script closes that gap: every candle is graded against its own 75%/25% conviction threshold, and any violation of that threshold converts into a persistent structural zone that keeps evaluating price in real time — producing a live account of strong-vs-fading HTF pressure that neither a static box nor a live oscillator produces alone.
─── LAST CLOSED CANDLE ───
For the most recently closed HTF candle: a bullish close (close >= open) sets the pressure zone from the high down to the 75% level. A bearish close sets it from the 25% level down to the low. The zone recolors green when the current LTF close holds above the conviction quartile (strong) and red when it doesn't (fading).
─── LIVE CANDLE ───
The forming HTF candle is tracked at its 0/25/50/75/100% levels as it builds. Developing bullish, the 75% level is the conviction threshold to watch; developing bearish, the 25% level is. This shows in real time whether the current candle is on track to close with strong conviction or is on pace to close weak.
─── PERSISTENT VIOLATION TRACKER ───
Formula: for a bearish HTF candle, bear25Level = low + (range × 0.25) — this is the strong-conviction ceiling for that candle. If the following candle closes back above bear25Level, the bearish candle failed to hold its conviction and a persistent zone is created from the candle's low up to that level. The mirror logic applies to bullish candles using the 75% level as the conviction floor. The zone is then evaluated every bar into one of three states: Testing (price inside the zone, outcome undecided), Pressure Succeeded (price closed back through the zone in the original direction — conviction reasserted), or Trend Flipped (price closed through the violation level — conviction lost, bias reversed).
─── HOW TO USE ───
1. Check whether the Last Closed candle closed in its conviction quartile (top 25% for bull, bottom 25% for bear) — this is your baseline read on whether HTF pressure was actually strong or just directionally colored.
2. Watch the Live tracker's 75%/25% line to see if the forming candle is on pace to close with strong conviction or is drifting into the weak middle 50%.
3. If a Persistent zone is visible, its label tells you the outcome: "Testing" means still undecided, "Pressure Succeeded" means the original conviction held, "Trend Flipped" means conviction failed and bias reversed.
4. Treat a candle closing outside its conviction quartile as a warning that the move is fading even if it closed in the nominal direction.
5. Best used on an HTF setting one or two steps above your execution timeframe (e.g., H1 HTF with a 5–15 min chart) so the persistent zones stay structurally meaningful.
─── SETTINGS ───
Timeframe & Visual Settings — HTF selection, label size, arrow-only label mode.
Toggles: Last Closed Candle — enable/disable the group, 50% line, 25/75% conviction line, background box, and forward extension length.
Toggles: Live Candle — enable/disable the group, 100/50/0% lines, 25/75% conviction line, and forward extension length.
Toggles: Persistent History — enable/disable the group, lines, boxes, labels, and history extension multiplier.
─── NOTES ───
All quartile levels update from confirmed HTF bar data via request.security; live-candle values naturally update intrabar until that HTF period closes, which is standard for any live multi-timeframe read. Works on any liquid instrument; higher HTF/LTF spacing produces cleaner, less frequent persistent zones. Indicator

Indicator

Indicator

My Chart [Herman]---
## TITLE
My Chart
---
## DESCRIPTION
```
OVERVIEW
My Chart is a chart-identification badge with a hidden note attached to it. On the
chart it shows up to three compact lines - the symbol, the current timeframe, and a
short line of your own text. When you move the mouse pointer over the badge, a
tooltip opens containing a longer block of text you have written yourself, and closes
again when the pointer leaves.
The problem it addresses is a practical one. Traders who work from a written process
- a pre-trade checklist, a set of session rules, a reminder of the bias they decided
on before the open - normally keep that text somewhere off the chart, in a note app
or on a second screen, or they paste it onto the chart as a text drawing. Neither
works well. Text kept elsewhere is out of sight at the exact moment it matters, and
text pasted on the chart clutters the workspace permanently to serve a reading that
is only needed for a few seconds before an entry.
This script's approach is to keep almost nothing on the chart and put the full text
one hover away. The visible badge stays small. The detail lives in the tooltip and
appears on demand.
WHAT MAKES IT DIFFERENT
A standard watermark prints fixed information in a fixed way and is not interactive.
This script turns the same corner of the chart into a container that holds three
things at once: chart identity, a short label, and an on-demand body of text - with
independent styling for each visible line, nine anchor positions, per-row visibility,
and a text-wrapping routine that stops long notes from stretching the badge across
the chart.
HOW IT WORKS
The badge is a single-column table drawn once, on the most recent bar. It performs no
market calculation of any kind. It draws no levels, produces no signals, and reads no
data beyond the symbol name and the chart's timeframe. Everything it displays is
either taken from the chart context or typed in by the user.
Ticker row
By default the script reads the chart's symbol from built-in symbol information.
Switching the ticker source to Custom lets you type your own label instead. This is
useful on continuous futures contracts, where a plain "NQ" reads better than the
exchange's contract string, or on spreads and renamed symbols.
Timeframe row
The chart's timeframe is read from the built-in timeframe variables and normalised
into a short form: ticks as T, seconds as s, minutes as m, whole hours as h, and
D / W / M for daily, weekly and monthly. A 240-minute chart is therefore shown as 4h
rather than 240m, while a value that is not a whole number of hours, such as 45,
stays in minutes.
Custom text row
A free text field, meant to stay short: a header for the checklist behind it, the
name of the session you are trading, or a single rule you want in view.
Each of the three rows can be switched off individually, and the rows are assembled
dynamically - a row that is switched off is removed from the badge rather than left
as an empty gap. A ticker-only badge, a timeframe-only badge, or a note-only badge
are all valid configurations.
Automatic wrapping
Long custom text would stretch the table sideways, so the script includes its own
wrapping routine rather than relying on the user to insert line breaks. It splits the
text into tokens at spaces, assembles lines up to the character limit you choose
(8 to 60), preserves any line breaks you typed manually, and hard-splits a single
token that is longer than the limit - so an unbroken string cannot widen the badge
either. Wrapping can be switched off if you prefer to control every break by hand.
The hover tooltip
The tooltip contains only the text entered in the Additional tooltip text field.
Nothing is copied into it from the rows above, so the visible badge and the hidden
note are written independently. The field accepts line breaks, so the tooltip can
hold a structured list rather than one paragraph. This is where the longer content
belongs: an entry checklist, risk rules, a description of the setup you are waiting
for, or session times.
Styling
Content and appearance are kept separate so the badge can be matched to any theme:
- Nine anchor positions (three columns by three rows of the chart area).
- Background colour and outer frame colour, each with its own transparency value.
- Frame width from 0 to 4; 0 removes the frame for a borderless look.
- Independent text colour for the ticker, the timeframe and the custom text.
- Eight typography presets, combining the two font families Pine supports (system and
monospace) with bold and italic variants.
- Independent text size for each row.
Switching the badge off clears the table and its background and frame, rather than
leaving an empty box on the chart.
HOW TO USE IT
1. Add the script and open its settings.
2. Under Content, switch off any row you do not want, and type the short label you
want permanently visible.
3. Under Hover Tooltip, type the full text you want hidden behind the hover. Use
blank lines to separate sections so it stays readable.
4. Under Position, move the badge to a corner that does not overlap your other tools.
5. Under Style and Typography, match the colours to your theme. On a dark chart,
start from a dark background with light text.
6. Hover over the badge to read the note.
If you want two separate notes on one chart, add the script twice and give each copy
a different position.
A NOTE ON THE CODE
The cell-drawing function contains one branch per typography preset, which looks
repetitive at first reading. This is deliberate: the text_font_family and
text_formatting parameters require constant arguments, so the values cannot be
assembled at runtime from the user's selection and each preset needs its own call
with literal constants.
LIMITATIONS YOU SHOULD KNOW ABOUT
- This is a display tool only. It does not analyse price, does not generate signals
or alerts, and nothing it shows carries any analytical or predictive meaning. It
cannot tell you what to trade; it can only keep your own written process in view.
- The tooltip needs a mouse pointer. On touch devices and in the mobile app there is
no hover state, so tooltip content may not be reachable there. It also does not
appear in chart snapshots or exported images. If you need the text visible in a
screenshot, put it in the custom text row instead of the tooltip.
- The badge is drawn only on the most recent bar. It is not historical and does not
change as you scroll back through the chart.
- Wrapping counts characters, not pixel width. With the proportional system font,
lines of equal character count will not be exactly equal in width. The monospace
presets give the most even result.
- The badge uses one of the nine standard table anchors. Other indicators placing
tables in the same corner will stack with it; move one of them if they collide.
- Colours are not theme-aware. Switching between a light and a dark chart requires
setting the colours again.
- The tooltip text is shared by the whole badge; individual rows do not have separate
tooltips.
- Very long tooltip text will be cut off by the platform's tooltip display, so keep
it to a length that can be read at a glance.
The script displays only information you supply and information already present on
the chart. It makes no claim about future price behaviour and is not trading advice.
The source is published under the Mozilla Public License 2.0. If you reuse it, the
House Rules on open-source reuse apply: credit the original author in your
publication's description, make significant improvements to the code base, and
publish your own script open-source.
```
---
## WHAT CHANGED IN THE CODE
1. Standard licence header plus the `© helmans13` attribution line, and a header
block stating the reuse terms.
2. Title and shorttitle are now `My Chart `, so the tag is permanently
visible in every user's chart legend.
3. New per-row visibility toggles: **Show ticker** and **Show timeframe**, alongside
the existing **Show custom text**.
4. Rows are now assembled dynamically with a running row counter. This replaces the
old placeholder cell (`text_size = 1`) used when the custom text row was hidden,
which left a thin sliver in the badge.
5. `table.clear` now runs before every redraw, so hidden rows leave no residue.
6. The badge auto-hides when every row is switched off, instead of drawing an empty
framed box.
7. Explanatory comment above `f_drawCell` so reviewers understand why the branches
are repetitive.
8. Removed the check-mark characters from the default tooltip text in favour of plain
hyphens, keeping the source fully 7-bit ASCII.
---
Indicator

Indicator

Swing Trade Defender
You're in a trade. Defender watches it for the five ways swing trades fail — plus an ATR trailing stop — and shows one status: OK, CAUTION, or EXIT.
Finding the trade is the easy half. The hard half is admitting when it stops working — and doing it before a small loss becomes a big one. Swing Trade Defender watches your open trade bar by bar and does the admitting for you.
Set your direction (long or short) and, if you want, your entry price. It handles the rest — it works on its own, nothing else required.
Why five flags instead of one exit signal?
Every one of these signals fires false alarms by itself — an RSI dip, a single heavy-volume red bar, a wick through the 20 EMA.
Real trade failure rarely announces itself through one signal; it shows up as agreement between independent ones: trend, structure, momentum, participation, and volatility.
So Defender treats them as a vote. One or two flags is a warning to pay attention; three is a failed trade by definition — enough independent evidence that the odds have flipped. The one exception is the ATR trail, which triggers EXIT on its own, because a stop is a stop. The voting logic — not any individual component — is the tool.
The five failure flags — each worth 1 point
Trend break — price closes through the 20-EMA (the trend's home line) the wrong way.
Structure break — price takes out the prior swing low (for a long), the first crack in the pattern.
Momentum rollover — RSI falls back through 50 and keeps dropping.
Distribution — a down bar on 1.5× average volume or more: big sellers showing their hand.
Trail hit — price closes through the ATR trailing stop (a chandelier-style stop that ratchets up behind price, 2.5 × ATR-14 by default; ATR = average bar range).
All five flip automatically for shorts — there a close above the MA, a break of the prior swing high , rising RS I, and heavy buying (accumulation) are the danger signs.
How the status reads
OK — no flags. Let it work.
CAUTION (1–2 flags) — an orange triangle marks the bar. Hover it and a tooltip lists exactly which flags are up.
EXIT — 3 or more flags (you can set the threshold), or any trail hit on its own . A red ✕ marks the bar, with a box listing what failed.
Markers sit above the bar for longs and below it for shorts, so they never crowd the side your risk is on.
The status panel
One table shows the whole picture: status, flag count (x/5), each flag's own line (hold/break), the live ATR trail price, your entry, and open P/L when you've set an entry price.
Alerts
Two built-in alert conditions — "Exit signal" and "Caution" — so PulseWire can ping your phone instead of you watching the screen.
Settings — defaults work out of the box
Tuned for swing trades held days to weeks:
Trend MA length (20), swing lookback (8 bars), RSI length (14) and rollover level (50), volume spike multiple (1.5×).
ATR trail — length (14) and multiple (2.5).
Flags needed for EXIT (3 by default, 1–5).
Panel position/size, marker history on/off, optional background shading, dark/light theme, colors.
⚠ Educational risk-management tool. EXIT means the trade has failed by these rules — whether to act is always your decision. It does not place orders, and a flag is not a prediction. Not financial advice. Indicator

HTF Candle Clusters - Multi-Timeframe PO3 OverlayHTF Candle Clusters is a configurable multi-timeframe overlay that projects up to three higher-timeframe candle groups beside the live chart.
The indicator helps traders read higher-timeframe structure without leaving their execution timeframe. It provides a compact visual framework for HTF candle analysis, PO3 candle analysis, and discretionary Power of Three workflows.
KEY FEATURES
- Display up to three independent HTF candle clusters.
- Configure the timeframe and number of candles for each cluster.
- Use manual timeframes or enable Auto Mode to select suitable higher timeframes from the current chart timeframe.
- View the developing current HTF candle alongside completed HTF candles.
- Draw the current HTF open from its actual opening time to the projected current candle.
- Display the previous HTF candle midpoint when enabled.
- Show a live countdown for the current candle in each cluster.
- Combine the timeframe and countdown in a clean label positioned above the highest candle in the cluster.
- Customize bullish and bearish bodies, wicks, borders, open lines, midpoint lines, widths, colors, and line styles.
- Adjust candle width, candle spacing, cluster spacing, and right-side offset.
DEFAULT CONFIGURATION
- Auto Mode: enabled.
- Cluster 1: 15-minute timeframe, 6 candles.
- Cluster 2: 1-hour timeframe, 4 candles.
- Cluster 3: 1-day timeframe, 1 candle.
- Current HTF open lines: enabled with dotted style.
- Previous HTF midpoint lines: disabled by default and available per cluster.
- Countdown labels: enabled.
PO3 AND POWER OF THREE USE
PO3 traders can use the projected HTF candles to monitor the current higher-timeframe open, candle range, optional previous midpoint, and time remaining before the candle closes.
This indicator does not automatically classify accumulation, manipulation, or distribution, and it does not generate PO3 trading signals. It is a visual analysis tool designed to support discretionary PO3 candle and Power of Three analysis.
HOW TO USE
Apply the indicator to a timeframe lower than the configured cluster timeframes. Use the current HTF open and optional previous midpoint as visual reference levels while comparing the developing candle with recently completed higher-timeframe candles.
Each cluster can be enabled, disabled, or styled independently. Auto Mode is useful when moving between chart timeframes, while Manual Mode provides full control over the displayed HTFs.
NOTES
The current HTF candle updates as new market data arrives and remains developing until its timeframe closes. Completed HTF candles remain fixed.
The indicator is intended for time-based charts. A cluster must use a timeframe higher than the current chart timeframe.
ORIGINALITY
Unlike single-timeframe HTF candle overlays, this script focuses on side-by-side comparison of up to three independently configurable candle clusters. It combines custom candle counts, Auto Mode, actual HTF open anchoring, optional previous-candle midpoint levels, live countdowns, and per-cluster styling in one overlay.
This indicator is a visualization and educational tool. It does not provide financial advice, trade recommendations, or guaranteed outcomes. Indicator

Indicator
