Daily Pivot Points LEVELS S-RThis indicator plots daily pivot points based on the previous day’s high, low, and close. It displays the main pivot line, as well as the first levels of support (S1) and resistance (R1), with optional second levels (R2, S2) for additional reference. Ideal for
Titik pangsi dan tahap
MAG Support Resistance Lines⚡ MAG Support Resistance Lines
💡 MAG S/R maps high-probability intraday reversal zones derived from directional magnitude — letting you trade where structure and liquidity truly converge.
🔍 Purpose
Automatically detects dynamic support and resistance zones using a Magnitude Bias Line — a proprietary directional-strength model built from historical price behavior.
Optimized for 1m–15m intraday charts to highlight high-impact support and resistance areas.
🧭 How It Works
Magnitude Bias Line – Computes a long-length bias curve that smooths directional flow (default 258 bars).
Pivot Detection – Identifies local highs/lows of this curve to mark potential structural turning points.
These zones DO NOT repaint, meaning the lines you see were plotted before price reached them.
Zones do expire once historic price data fed by TradingView is too far back/no longer available.
Zones should be treated as "nothing" until price action confirms it wants to respect it or continue past it.
Zone Creation –
A zone box is created around each pivot level, providing a visual approximation of potential support or resistance.
Thickness is defined by Box Height % (e.g. 0.0004 ≈ 0.04 %).
Extension & Mitigation – Zones extend forward until a new bias pivot overlaps them; new pivots replace old ones at updated price levels.
⚙️ Key Inputs
Setting | Default | Description
Magnitude Range | 258 | Controls how smooth/strong the Magnitude Bias Line is (larger = fewer zones).
Box Height % | 0.0004 | Fraction of price defining zone height (use 0.0007 on SPX, 0.0004 on ES).
Zone Color / Transparency | Green / 85% | Visual style for zone fill and border.
🕐 Timeframe Guidelines
Fitted for 1m → 15m charts. Future updates may allow higher timeframes.
If loaded outside this range, a red label reminder will appear.
🎯 Usage Tips
Watch price action for reversals or continuations at each zone. Price may V-rebound from a zone or punch through then retest the opposite side before continuing.
Utilize next zone as a TP or SL depending on your strategy rules.
Combine with VWAP, Expected Move bands, or Gamma levels for confluence.
Adjust Box Height % to match current volatility.
If you see a specific indicator that pairs well with this one, please let other's know in the comments! Together we find success and I am forever grateful to the trading communities that shared knowledge with me!
⚠️ Disclaimer (NIF)
This tool is for research and informational purposes only (Not Investment or Financial advice).
Trading involves risk; users should exercise independent judgment before making financial decisions.
Key Levels All in OneA Clean OHLC Levels Toolkit (with Globex & ATH)
Levels is a highly configurable OHLC levels tool designed to give traders multi-timeframe context without overwhelming the chart. It plots Daily/Weekly/Monthly levels, Globex session extremes, and an All-Time High line—then keeps everything readable with label merging, optional fading, and careful session logic.
How to Use
Choose your sets: Toggle Daily, Weekly, Monthly, Globex, and ATH in Display.
Pick which levels to show: For each set, enable any combination of Open / High / Low / Close, select line style (solid/dashed/dotted), and width.
Trace the origin (optional): “Trace back” draws a subtle line from the level’s origin candle to the right edge.
Tame the clutter: Turn on Label merging and/or ATR-based fading to reduce noise near the current price.
Place the lines where you want them: Use Offset to Left/Right to control how far lines extend.
Scope & scale: Limit how many higher-timeframe sets render and Hide Above a chosen chart interval to keep lower timeframes clean.
Key Features
Daily / Weekly / Monthly HTFs: Plot previous period Open, High, Low, Close with per-level color, style, and width.
RTH-aware daily labels: On Regular Trading Hours charts, the script adds PDH (RTH) and PDL (RTH) variants alongside standard PDH/PDL for precise session context.
Globex session extremes: Automatically tracks Globex High/Low and, auto-hide a level the moment it’s touched during RTH to declutter once the market interacts with it.
All-Time High line: Plot ATH with optional trace-back to the origin bar for quick historical orientation.
Label merging (smart de-duplication): Nearby labels (e.g., PDH / PWH / PMH clustering) can be merged into a single tag showing combined names—and, if enabled, a single price or price range.
Readable labels your way: Toggle bold, numeric size, full names (e.g., “Previous Day High”) vs. tickers like PDH, show/hide price, and optionally match label color to the line color.
Fade distant levels: Reduce transparency for levels beyond a configurable ATR window around the current price to highlight what matters now.
Chart-friendly by design: Choose how many HTF sets can render at once and disable the indicator above a selected timeframe for performance and clarity.
Timeframe & Session Settings
Limit to higher timeframe sets: Cap visible HTF groups (e.g., only the next 1–3 higher sets) for a cleaner stack.
Hide Above: Automatically disable the indicator on charts above a chosen interval (e.g., anything higher than 60m).
Offsets: Offset to Left and Offset to Right control the horizontal span of each line.
Note: There is no “Offset between HTFs”—levels are aligned cleanly; spacing is managed by left/right offsets only.
HTF Controls (per set)
Pick levels: Any combination of O/H/L/C.
Style: Solid / dashed / dotted and width.
Trace back: Optional origin trace (inherit or custom style/size).
Max count: Limit how many back levels are kept per set.
Labels & Merging
Rich formatting: Bold text, numeric size, color & background control, optional price suffix, and full vs. short names.
Merge within threshold: Define a price threshold to bucket nearby labels; the tool produces a single, tidy label (e.g., PDH / PWH / PMH · 4321.25).
Custom merge styling: Separate text and background colors for merged labels.
Fading Levels (ATR-aware)
Change Transparency: Set how much to fade.
Range window: Only levels within X ATRs (X candles’ ATR) of current price retain full opacity.
ATR length: Choose the averaging window used in the calculation.
Drop Tool Bidirectional (-/+4%..32%) [A tool that helps you identify the downward price levels from a chosen peak, showing drops of 4%, 8%, 12%, and so on, based on the entered peak value.
GEX Delta Hedging Lines - v.4.1GEX Delta Hedging Indicator - Institutional Levels
Introduction
This Pine Script indicator is designed to visualize Gamma Exposure (GEX) levels, Delta Hedging zones, and institutional support/resistance points on your TradingView charts. It helps traders identify key price levels where market makers and institutions might hedge their options positions, potentially leading to price reversals or continuations. The indicator overlays lines for resistances (Call Wall, R1, R2), supports (Put Wall, S1, S2, S3), a Gamma Flip zone, and customizable trading zones (Buy, Neutral, Sell). It also includes alerts for level breaches and a summary table for quick reference.
Key Features
Resistance Levels: Call Wall (maximum resistance), R1 (strong), R2 (light) – all configurable with colors, styles, and widths.
Support Levels: Put Wall (maximum support), S1 (strong), S2 (moderate), S3 (weak/danger) – fully customizable.
Gamma Flip Zone: Indicates potential regime changes in market behavior.
Trading Zones: Visual boxes for Buy (green), Neutral (yellow), and Sell (red) areas, with adjustable boundaries and colors.
Current Price Line: Dotted line for the reference price, with labels.
Alerts: Trigger notifications when levels are tested or broken.
Summary Table: Displays levels, prices, and distances from the current close, positioned customizable.
Style Options: Adjust line widths, styles (solid/dashed/dotted), label sizes, and more for a personalized view.
Senkou Span BUsing in conjunction with Senkou Span A to create effective kumo alert signals when kumo changes direction: bullish or bearish.
Unified Moving Average V5 (EN/UA)## Title
Unified Moving Average V5 — Practical Trend Tool (EN/UA UI)
## Short description
Practical trend tool that colors market direction, highlights potential turns with optional confirmation, and supports multi‑timeframe alignment. Includes live Max% tracking and a compact status panel. Bilingual EN/UA UI.
or quick bias assessment
- Potential turn signals with optional confirmation
- Multi‑timeframe (LTF/HTF) alignment tools
- Live Max% move tracking since the last turn
- A status panel showing state, confirmation, and key reference levels
## How to use (high level)
1) Pick your preferred MA family and length for the asset/timeframe you trade.
2) Enable trend coloring to see bias (up/down/neutral) instantly.
3) Turn on confirmation if you prefer additional validation on potential turns.
4) Use HTF as a directional filter and LTF for timing.
5) Watch the status panel for current state, confirmation state, and reference levels.
## Inputs (practical)
- Source: which price the MA reads (Close/Open/High/Low/HL2/HLC3/OHLC4)
- MA Type & Length: choose family (SMA/EMA/RMA/WMA/VWMA/HMA) and period (1–500)
- Display: line width, stepline, color‑by‑trend, colors, right‑side value label
- Alerts: potential turn alerts; price/MA cross alerts
- Profit / Max %: optional leverage multiplier and label colors
- Confirmation: adds additional validation on potential turns; debounce with Min bars between turns
- MTF: enable LTF/HTF, set timeframes, show lines, colors, entry labels, compact labels, append price
- Status panel: toggle table, choose corner, adjust offsets
## Signals & Alerts
- Potential turn (with optional confirmation)
- Price/MA cross
- LTF/HTF turn notifications## Overview
Unified MA V5 helps you read trend direction at a glance and align entries with your preferred timeframe stack. It offers:
- Trend coloring f
## Recommended presets (no strategy advice)
- Swing Trend Following
- MA: HMA or EMA; Length 100–200
- Confirmation: On; Min bars between turns: 2–4
- MTF: HTF = 4× current; LTF Off
- Display: Stepline On; Line width 3
- Alerts: Potential turn + Price/MA cross
- Intraday Momentum
- MA: EMA; Length 34–55
- Confirmation: On; Min bars between turns: 1–2
- MTF: HTF = 2–4×; LTF = 0.25–0.5×
- Display: Stepline On
- Alerts: Potential turn + Price/MA cross
- Scalping
- MA: WMA or HMA; Length 20–34
- Confirmation: Optional; Min bars between turns: 0–1
- MTF: LTF = 0.2–0.5×; HTF Optional
- Display: Stepline On; Consider disabling some labels to reduce clutter
- Alerts: Potential turn (short horizon)
- Mean‑Reversion Bias
- MA: RMA or SMA; Length 50–100
- Confirmation: On
- MTF: HTF = 2–4×; LTF Optional
- Display: Color‑by‑trend On
- Alerts: Price/MA cross emphasis
## Notes
- Labels can accumulate during volatile sessions; disable some if needed.
- Table offsets and placement options may vary by platform.
- This is a tool for visualization and alerts, not financial advice.
## Indicator direction
Trend-Following / Trend Change Detection with optional confirmation via MA retest.
Liquidaciones BTCUSDT.PAllows you to manually record liquidation prices for both short and long positions, which are then displayed on the chart:
Orange: Short liquidations
Blue: Long liquidations
Optionally, a specific liquidation price can be highlighted to indicate higher-volume liquidations
Note: All liquidation prices must be entered manually.
Tradisfy | TSFY | ORB Pro**TSFY | ORB Pro**
Introduction
TSFY | ORB Pro combines the classic Opening Range Breakout (ORB) logic with professional market structure tools such as EMAs, the Daily Open, ADR, and Pivot Points.
The goal: A clean and logically structured intraday visualization of volatility, trend, and key price zones — without visual clutter.
Timezone: Europe/Berlin
---
Core Features
Multi-Session ORB: Separate Opening Ranges for London, Gold, and New York sessions with ORH, ORL, and Mid levels, optionally extendable to the end of the trading day.
EMAs (Intraday & Daily): Adaptive trend filters from 4 to 800 periods plus Daily 13/50/200 EMAs for higher-timeframe structure context.
Classic Pivots: Automatic calculation of daily PP, R, S, and Mid levels with fully customizable colors, styles, and extensions.
Daily Open: Marks the daily opening price as a bias reference point.
ADR (Average Daily Range): Calculates the average true range of the last X days, optionally anchored to the Daily Open with an optional 50% midpoint.
---
Interpretation
Break above ORH → bullish momentum; break below ORL → bearish weakness.
Combine ORB zones with EMAs, Pivots, or ADR for higher confluence.
Daily Open provides intraday bias, ADR defines realistic target zones.
Reactions around R/S levels or OR Mid often indicate short-term turning points.
---
Usage
Use the ORB zone as the basis for breakout, retest, or mean-reversion setups.
Plan realistic take-profit zones using ADR and Pivot levels.
Daily EMAs define the overall market bias.
All components can be toggled on or off individually.
---
Notes
Optimized for intraday ORB trading.
No alerts integrated (yet).
All colors, line widths, and transparency levels are fully customizable.
Non-repainting — lines are extended forward, not redrawn.
Performance-friendly despite multiple visual components (max. 500 lines/labels).
---
TSFY | ORB Pro is a complete framework for modern intraday traders who want to combine session logic, trend filters, and market structure into one clean and efficient tool.
RSI Breakout Zones█ OVERVIEW
“RSI Breakout Zones” is a technical analysis tool that identifies significant zones on the chart based on the Relative Strength Index (RSI). The indicator maps overbought (OB) and oversold (OS) zones using boxes, then extends them until the next zone of the same type is detected, highlighting breakout points to aid in trade entry decisions. These zones often serve as areas of consolidation, support, or resistance.
█ CONCEPTS
The indicator identifies overbought (above 70) and oversold (below 30) zones, drawing boxes that extend until the next zone of the same type (OB for OB, OS for OS) is detected. Breakout signals are generated when the price crosses the zone boundaries, indicating potential shifts in market momentum.
Why are RSI zones important? These zones represent areas of extreme market sentiment, often leading to corrections or reversals. Overbought zones suggest potential selling pressure, while oversold zones indicate buying opportunities. After a breakout, a zone may switch roles, e.g., from support to resistance or vice versa, making it a key element in price action analysis. Larger zones, formed during high volatility, may attract price for retests due to stronger imbalances in buyer/seller dynamics. Consolidation often occurs within these zones as the market seeks equilibrium before further moves. However, in strong trends, zones may be decisively broken without immediate pullbacks, and their significance depends on their position relative to key support and resistance levels.
█ FEATURES
- RSI Zone Detection: Calculates RSI with a customizable length (default 14) and identifies overbought/oversold zones based on user-defined levels (default 70/30), drawing boxes that dynamically adjust to price action within the zone.
- Customizable Boxes: Zones extend until the next zone of the same type is detected. The indicator draws zones with adjustable colors for overbought (red) and oversold (green) areas, with options for box and zone transparency.
- Breakout Signals: Generates upward (green triangle) and downward (red triangle) breakout signals when the price crosses the top or bottom of a zone. Signals appear below or above the bar, indicating potential trade entry points.
- Midline: Automatically draws a dashed line at the midpoint of each zone, helping traders assess price behavior within the zone and potential halfway retests.
- Box Management: Option to remove outdated boxes.
- Alerts: Built-in support for alerts on breakout signals, enabling traders to receive notifications for key zone crossings.
█ HOW TO USE
Add to Chart: Apply the indicator to your TradingView chart via the Pine Editor or Indicators menu.
Configure Settings:
- RSI Settings: Adjust RSI Length (default 14), Overbought Level (default 70), and Oversold Level (default 30) to tailor zone detection sensitivity—higher lengths smooth signals for longer-term analysis.
- Box Settings: Configure colors and transparency for overbought (red) and oversold (green) zones, including box transparency (default 90) and zone transparency (default 90).
- Signal Settings: Customize breakout signal colors (green for upward, red for downward) and enable/disable keeping boxes after RSI normalization.
Interpreting Signals:
- Upward Breakout Signal: A green triangle below the bar indicates a breakout, suggesting potential bullish momentum and trend continuation or reversal.
- Downward Breakout Signal: A red triangle above the bar indicates a breakout, suggesting potential bearish momentum.
- RSI Zones: If the price re-enters a zone after a breakout, it may signal a false breakout or consolidation; persistent zones can act as future support/resistance levels. Consolidation often occurs within these zones as the market seeks equilibrium.
- Use signals alongside other technical analysis tools for confirmation, such as moving averages (to confirm trend direction), Fibonacci levels (to identify key price zones), or volume indicators (to validate breakout strength). Analyze RSI zones on higher timeframes for stronger signals due to broader market context.
█ APPLICATIONS
- Momentum Trading: Use RSI zones as overbought/oversold filters. In an uptrend, look for buying opportunities on upward breakouts, and in a downtrend, on downward breakouts. Combining with MACD crossovers, Fibonacci levels, or pivot points enhances zone significance.
- Inter-Zone Trading: Utilize breakouts from one RSI zone and hold the position until reaching the next zone, which may act as a target level or reversal point.
█ NOTES
- Test the indicator across different timeframes and markets (stocks, forex, crypto) to optimize RSI length and levels for your trading style.
- For best results, use in trending markets where RSI extremes are more predictive; in ranging markets, additional filters are recommended to reduce false signals.
- Always combine with risk management; RSI zones alone do not guarantee reversals, and false breakouts may occur in low-liquidity environments.
Multi-Timeframe Support & ResistanceThis indicator automatically plots dynamic support and resistance levels across multiple timeframes — including 1H, 4H, 1D, 1W, 1M, and the current chart timeframe. Each level is color-coded for clarity and extends across the chart to highlight key price zones.
**Key Features:**
- ⏱ Multi-timeframe analysis: 6 configurable timeframes
- 🎨 Custom color and style settings for each timeframe
- 📏 Adjustable number of levels per timeframe
- 🧼 Clean chart layout with no duplicate lines
- 🔄 Auto-refresh every 10 bars for up-to-date levels
Support and resistance levels are calculated using historical high/low ranges and evenly distributed across the selected lookback period. This helps traders identify confluence zones, breakout targets, and reversal areas with precision.
Multi-Entry Position SizerMulti-Entry Position Sizer (with Risk, Margin & Tables)
This tool is designed for traders who manage multiple staggered entries (scaling in) with fixed risk allocation. It calculates position sizes, margin requirements, and liquidation levels for up to 5 custom entry points, based on a defined stop loss and wallet risk.
🔧 Features
Entry Management
Supports up to 5 entries.
Use 0 to ignore an entry, -1 to auto-use current price.
Valid entries are drawn as colored dashed lines.
Invalid entries (e.g., entry on wrong side of stop loss) are flagged with red dotted lines and labels.
Risk Control
Risk defined in Direct USDT or % of wallet size.
Risk automatically split across all valid entries.
Per-entry quantity and margin calculated dynamically.
Visualization
Stop loss line in red.
Liquidation levels drawn as faded dotted lines.
Entry labels show price and required margin in USDT.
Summary table (top-right) with symbol, side, risk, SL, leverage.
Entries table (bottom-right) listing each valid entry with:
Price
Quantity
Margin in USDT
Risk/entry in USDT
Liquidation level
Alerts
Alerts trigger when price touches a valid entry.
Separate alert for stop loss hit.
📊 How to Use
Select Side (Long or Short).
Enter your Wallet Size, Risk Parameters, and Leverage.
Define your Stop Loss Price.
Configure up to 5 Entry Points.
0 = disabled
-1 = current market price
Any positive value = custom entry price
Watch tables and chart update automatically:
Invalid entries turn red (ignored in sizing).
Valid entries show correct margin and liquidation prices.
✅ Who Is It For?
Traders who scale in with multiple orders.
Traders who want precise risk per trade.
Anyone who needs to see margin requirements and liquidation prices before placing orders.
⚠️ Disclaimer:
This script is for educational purposes. It does not place orders automatically and should not be considered financial advice. Always double-check calculations with your exchange before trading.
Metallic Retracement ToolI made a version of the Metallic Retracement script where instead of using automatic zig-zag detection, you get to place the points manually. When you add it to the chart, it prompts you to click on two points. These two points become your swing range, and the indicator calculates all the metallic retracement levels from there and plots them on your chart. You can drag the points around afterwards to adjust the range, or just add the indicator to the chart again to place a completely new set of points.
The mathematical foundation is identical to the original Metallic Retracement indicator. You're still working with metallic means, which are the sequence of constants that generalize the golden ratio through the equation x² = kx + 1. When k equals 1, you get the golden ratio. When k equals 2, you get silver. Bronze is 3, and so on forever. Each metallic number generates its own set of retracement ratios by raising alpha to various negative powers, where alpha equals (k + sqrt(k² + 4)) / 2. The script algorithmically calculates these levels instead of hardcoding them, which means you can pick any metallic number you want and instantly get its complete retracement sequence.
What's different here is the control. Automatic zig-zag detection is useful when you want the indicator to find swings for you, but sometimes you have a specific price range in mind that doesn't line up with what the zig-zag algorithm considers significant. Maybe you're analyzing a move that's still developing and hasn't triggered the zig-zag's reversal thresholds yet. Maybe you want to measure retracements from an arbitrary high to an arbitrary low that happened weeks apart with tons of noise in between. Manual placement lets you define exactly which two points matter for your analysis without fighting with sensitivity settings or waiting for confirmation.
The interactive placement system uses TradingView's built-in drawing tools, so clicking the two points feels natural and works the same way as drawing a trendline or fibonacci retracement. First click sets your starting point, second click sets your ending point, and the indicator immediately calculates the range and draws all the metallic levels extending from whichever point you chose as the origin. If you picked a swing low and then a swing high, you get retracement levels projecting upward. If you went from high to low, they project downward.
Moving the points after placement is as simple as grabbing one of them and dragging it to a new location. The retracement levels recalculate in real-time as you move the anchor points, which makes it easy to experiment with different range definitions and see how the levels shift. This is particularly useful when you're trying to figure out which swing points produce retracement levels that line up with other technical features like previous support or resistance zones. You can slide the points around until you find a configuration that makes sense for your analysis.
Adding the indicator to the chart multiple times lets you compare different metallic means on the same price range, or analyze multiple ranges simultaneously with different metallic numbers. You could have golden ratio retracements on one major swing and silver ratio retracements on a smaller correction within that swing. Since each instance of the indicator is independent, you can mix and match metallic numbers and ranges however you want without one interfering with the other.
The settings work the same way as the original script. You select which metallic number to use, control how many power ratios to display above and below the 1.0 level, and adjust how many complete retracement cycles you want drawn. The levels extend from your manually placed swing points just like they would from automatically detected pivots, showing you where price might react based on whichever metallic mean you've selected.
What this version emphasizes is that retracement analysis is subjective in terms of which swing points you consider significant. Automatic detection algorithms make assumptions about what constitutes a meaningful reversal, but those assumptions don't always match your interpretation of the price action. By giving you manual control over point placement, this tool lets you apply metallic retracement concepts to exactly the price ranges you care about, without requiring those ranges to fit someone else's definition of a valid swing. You define the context, the indicator provides the mathematical framework.
Scalp BTC/ETH — Reversal & Continuation (v1, Pine v6)Scalp BTC/ETH — Reversal & Continuation (1m à 10m)
Cet indicateur détecte des opportunités de micro-scalping sur futures (BTC/ETH) basées sur deux mécaniques courtes validées par structure de prix :
A) Reversal de pression (contre-mouvement contrôlé)
Détection d’une sur-extension brutale suivie d’une absorption sur la bougie suivante.
Objectif : capturer la première respiration après un excès de prix (rejet court).
B) Continuation courte (momentum + reprise)
Détection de 3 bougies directionnelles consécutives suivies d’un pullback léger, puis signal sur la reprise du mouvement initial.
Gestion intégrée (scénario standard TP dynamique)
TP1 → 50% de la position à un gain fixe (% adaptable au timeframe)
Stop déplacé au Break-Even sur le restant
Sortie finale sur bougie inverse significative
(correction ≥ X% du corps précédent) ou timeout (max bars en trade)
Scalp BTC/ETH — Reversal & Continuation (1m to 10m)
This indicator detects short-term futures scalping setups on BTC & ETH using two mechanical price-action models designed for fast execution:
A) Reversal Compression (counter-move entry)
Identifies a sharp impulse (overextension) followed by absorption / failure to extend on the next candle.
Objective: capture the first corrective pullback after exhaustion.
B) Controlled Continuation (momentum follow-through)
Identifies 3 consecutive trend candles, then a shallow pullback, and triggers an entry on the resumption of the main leg.
Built-in trade logic (dynamic TP structure)
TP1 → scale out 50% of the position at a fixed percentage (auto-scaled per timeframe)
Stop moved to Break-Even after TP1
Final exit on either:
• a meaningful opposite candle (≥ X% correction of prior body), or
• a timeout (max bars in trade)
Technical characteristics
Designed for 1m / 3m / 5m / 7m / 10m
No repainting (bar-close confirmed logic)
Works for both LONG & SHORT
Built-in alert events:
ENTRY_LONG / ENTRY_SHORT / TP1 / EXIT_STOP / EXIT_INVERSE / EXIT_TIMEOUT
Suitable for manual execution, semi-automation (alerts) or full bot integration (webhook JSON)
Purpose
Provide a repeatable, rule-based, non-subjective framework to harvest micro-moves with controlled risk, without relying on lagging indicators or long-term prediction.
(A Strategy / backtesting version is planned as a next iteration.)
Turtle soupHi all!
This indicator will show you turtle soups. The logic is that pivots detected from a higher timeframe, with the pivot lengths of left and right in the settings, will be up for 'grabs' by price that spents more than one candle above/below the pivot.
If only one candle is beyond the pivot it's a liquidity sweep or grab. Liquidity sweeps can be discovered through my script 'Market structure' (), but this script will discover turtle soup entries with false breakouts that takes liquidity.
The turtle soup can have a confirmation in the terms of a change of character (CHoCH). The turtle soup strategy usually comes with some sort of confirmation, in this case a CHoCH, but it can also be a market structure shift (MSS) or a change in state of delivery (CISD).
Turtle soups (pivots that have been 'taken') within a turtle soup will also be visible (but not have a turtle).
Alerts are available for when a turtle soup setup occurs and you can set the alert frequency of your liking (to get early signals with a script that might repaint or wait for a closed candle).
I hope that this description makes sense, tell me otherwise. Also tell me if you have any improvements or feature requests.
Best of trading luck!
The chart in the publication contains a 4 hour chart with a daily timeframe and confirmations with CHoCH.
Levels[cz]Description
Levels is a proportional price grid indicator that draws adaptive horizontal levels based on higher timeframe (HTF) closes.
Instead of relying on swing highs/lows or pivots, it builds structured support and resistance zones using fixed percentage increments from a Daily, Weekly, or Monthly reference close.
This creates a consistent geometric framework that helps traders visualize price zones where reactions or consolidations often occur.
How It Works
The script retrieves the last HTF close (Daily/Weekly/Monthly).
It then calculates percentage-based increments (e.g., 0.5%, 1%, 2%, 4%) above and below that reference.
Each percentage forms a distinct “level group,” creating layered grids of potential reaction zones.
Levels are automatically filtered to avoid overlap between different groups, keeping the chart clean.
Visibility is dynamically controlled by timeframe:
Level 1 → up to 15m
Level 2 → up to 1h
Level 3 → up to 4h
Level 4 → up to 1D
This ensures the right amount of structural detail at every zoom level.
How to Use
Identify confluence zones where multiple levels cluster — often areas of strong liquidity or reversals.
Use the grid as a support/resistance map for entries, targets, and stop placement.
Combine with trend or momentum indicators to validate reactions at key price bands.
Adjust the percentage increments and reference timeframe to match the volatility of your instrument (e.g., smaller steps for crypto, larger for indices).
Concept
The indicator is based on the idea that markets move in proportional price steps, not random fluctuations.
By anchoring levels to a higher-timeframe close and expanding outward geometrically, Levels highlights recurring equilibrium and expansion zones — areas where traders can anticipate probable turning points or consolidations.
Features
4 customizable percentage-based level sets
Dynamic visibility by timeframe
Non-overlapping level hierarchy
Lightweight on performance
Fully customizable colors, styles, and widths
M2025Overview
We Provide you a custom made model called M2025
M2025 works based on some well-known fundamentals of trading, here are the filters/checks we used in this script:
MTF Support/Resistance (Based on RSI)
Liquidity Levels
Displacement/FVG
Support/Resistance (Based on RSI)
support and resistance are key concepts used to identify potential turning points in the market.
Support is a price level where demand is strong enough to prevent the price from falling further — it acts as a “floor.”
Resistance is a level where selling pressure tends to stop the price from rising — it acts as a “ceiling.”
Support and resistance help traders identify entry points, exit targets, and stop-loss areas, and are essential tools for understanding market structure and trend strength.
In M2025 , Support and Resistance are identified based on pivot high and pivot low found with RSI values.
Liquidity Levels
liquidity levels are price areas where a large number of buy or sell orders are clustered. These zones often form around swing highs, swing lows, support, and resistance levels, where many traders place stop-loss or pending orders.
Fair Value Gap
an FVG (Fair Value Gap) refers to an imbalance or “gap” in price action that occurs when the market moves too quickly in one direction, leaving little to no trading activity between certain price levels. This gap represents an area where buy and sell orders were not efficiently matched, creating an inefficiency in the market.
Traders often expect price to return to these zones later to “fill” the gap, restoring balance and are used to identify potential retracement zones.
How it works
This Model 2025 mainly works in 4 steps using all the techniques mentioned above.
Bullish Setup
Step 1 : Market is in Bullish Zone
Step 2 : Market Breaks the Buy Side Liquidity
Step 3 : Market Makes FVG while moving up before breaking the SSL
Step 4 : Market Breaks the Sell Side Liquidity within the Window Range
Bearish Setup
Step 1 : Market is in Bearish Zone
Step 2 : Market Breaks the Sell Side Liquidity
Step 3 : Market Makes FVG while moving down before breaking the BSL
Step 4 : Market Breaks the Buy Side Liquidity within the Window Range
Conclusion
M2025 works using well known trading techniques but the innovation in that is using them as steps and triggers which stimulate the real trading methods of many trades around the world. This is just an idea which we wanted to share with this great community of ours, thus this indicator is a tool for technical analysis and it should not be the sole basis for trading decisions for anyone out there. No indicator is perfect hence depending on one is not recommended.
Trend Direction (ZigZag)This indicator is designed to visually identify and label key market structure points—Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), and Lower Lows (LL)—using a ZigZag algorithm that efficiently tracks trend reversals and swing pivots. It overlays dynamic lines, labels, and color-coded bars directly onto your TradingView chart, making it ideal for traders seeking a clearer view of price structure for strategy development and confirmation.
What the Indicator Does
Automatically plots a ZigZag line following swing highs and lows, filtered by a customizable look-back length, helping to remove minor “noise” and highlight true structural pivots.
Labels each significant high or low as HH, HL, LH, or LL, enabling instant recognition of bullish or bearish market conditions.
Distinguishes structural shifts (“Break of Structure,” or BOS) with optional colored bar backgrounds for enhanced visual clarity when trends change.
Offers flexible controls over line color, width, label visibility and size, making it adaptable for different charting styles and timeframes.
Features and Customization
ZigZag Settings: Choose your preferred length and visual styling to fine-tune swing detection, with the ability to show or hide zigzag lines and adjust colors and thickness.
Labeling Structure: Toggle on/off the display of HH/HL/LH/LL labels, with customizable text size, helping you focus on the information relevant to your strategy.
Breakout Confirmation (Fib Factor): Integrates Fibonacci factor logic for validating when a breakout (BOS) should be recognized, giving added confidence in market turns.
Bar Coloring: Automatically paints bars to match current market bias (bullish or bearish), highlighting moments of structural change for quicker response.
How it Helps Traders
Clarifies Trend Structure: Makes it simple to distinguish trend direction and strength at a glance, improving timing and confidence in trade decisions.
Ideal for Strategy Building: Supports a variety of market-structure-based trading strategies, such as trend continuation, reversal setups, and breakout confirmations.
Saves Analysis Time: Automates the complex process of marking and tracking price swings, so you can focus on execution and risk management.
This indicator offers powerful market structure visualization and analysis, suited for all levels of traders and especially those who use price-action and swing-based systems (Supply & Demand).
Chronos Reversal Labs🧬 Chronos Reversal Lab - Machine Learning Market Structure Analysis
OVERVIEW
Chronos Reversal Lab (CRL) is an advanced market structure analyzer that combines computational intelligence kernels with classical technical analysis to identify high-probability reversal opportunities. The system integrates Shannon Entropy analysis, Detrended Fluctuation Analysis (DFA), Kalman adaptive filtering, and harmonic pattern recognition into a unified confluence-based signal engine.
WHAT MAKES IT ORIGINAL
Unlike traditional reversal indicators that rely solely on oscillators or pattern recognition, CRL employs a multi-kernel machine learning approach that analyzes market behavior through information theory, statistical physics, and adaptive state-space estimation. The system combines these computational methods with geometric pattern analysis and market microstructure to create a comprehensive reversal detection framework.
HOW IT WORKS (Technical Methodology)
1. COMPUTATIONAL KERNELS
Shannon Entropy Analysis
Measures market uncertainty using information theory:
• Discretizes price returns into bins (user-configurable 5-20 bins)
• Calculates probability distribution entropy over lookback window
• Normalizes entropy to 0-1 scale (0 = perfectly predictable, 1 = random)
• Low entropy states (< 0.3 default) indicate algorithmic clarity phases
• When entropy drops, directional moves become statistically more probable
Detrended Fluctuation Analysis (DFA)
Statistical technique measuring long-range correlations:
• Analyzes price series across multiple box sizes (4 to user-set maximum)
• Calculates fluctuation scaling exponent (Alpha)
• Alpha > 0.5: Trend persistence (momentum regime)
• Alpha < 0.5: Mean reversion tendency (reversal regime)
• Alpha range 0.3-1.5 mapped to trading strategies
Kalman Adaptive Filter
State-space estimation for lag-free trend tracking:
• Maintains separate fast and slow Kalman filters
• Process noise and measurement noise are user-configurable
• Tracks price state with adaptive gain adjustments
• Calculates acceleration (second derivative) for momentum detection
• Provides cleaner trend signals than traditional moving averages
2. HARMONIC PATTERN DETECTION
Identifies geometric reversal patterns:
• Gartley: 0.618 AB/XA, 0.786 AD/XA retracement
• Bat: 0.382-0.5 AB/XA, 0.886 AD/XA retracement
• Butterfly: 0.786 AB/XA, 1.272-1.618 AD/XA extension
• Cypher: 0.382-0.618 AB/XA, 0.786 AD/XA retracement
Pattern Validation Process:
• Requires alternating swing structure (XABCD points)
• Fibonacci ratio tolerance: 0.02-0.20 (user-adjustable precision)
• Minimum 50% ratio accuracy score required
• PRZ (Potential Reversal Zone) calculated around D point
• Zone size: ATR-based with pattern-specific multipliers
• Active pattern tracking with 100-bar invalidation window
3. MARKET STRUCTURE ANALYSIS
Swing Point Detection:
• Pivot-based swing identification (3-21 bars configurable)
• Minimum swing size: ATR multiples (0.5-5.0x)
• Adaptive filtering: volatility regime adjustment (0.7-1.3x)
• Swing confirmation tracking with RSI and volume context
• Maintains structural history (up to 500 swings)
Break of Structure (BOS):
• Detects price crossing previous swing highs/lows
• Used for trend continuation vs reversal classification
• Optional requirement for signal validation
Support/Resistance Detection:
• Identifies horizontal levels from swing clusters
• Touch counting algorithm (price within ATR×0.3 tolerance)
• Weighted by recency and number of tests
• Dynamic updating as structure evolves
4. CONFLUENCE SCORING SYSTEM
Multi-factor analysis with regime-aware weighting:
Hierarchical Kernel Logic:
• Entropy gates advanced kernel activation
• Only when entropy < threshold do DFA and Kalman accelerate scoring
• Prevents false signals during chaotic (high entropy) conditions
Scoring Components:
ML Kernels (when entropy low):
• Low entropy + trend alignment: +3.0 points × trend weight
• DFA super-trend (α>1.5): +4.0 points × trend weight
• DFA persistence (α>0.65): +2.5 points × trend weight
• DFA mean-reversion (α<0.35): +2.0 points × mean-reversion weight
• Kalman acceleration: up to +3.0 points (scaled by magnitude)
Classical Technical Analysis:
• RSI oversold (<30) / overbought (>70): +1.5 points
• RSI divergence (bullish/bearish): +2.5 points
• High relative volume (>1.5x): +0-2.0 points (scaled)
• Volume impulse (>2.0x): +1.5 points
• VWAP extremes: +1.0 point
• Trend alignment (Kalman fast vs slow): +1.5 points
• MACD crossover/momentum: +1.0 point
Structural Factors:
• Near support (within 0.5 ATR): +0-2.0 points (inverse distance)
• Near resistance (within 0.5 ATR): +0-2.0 points (inverse distance)
• Harmonic PRZ zone: +3.0 to +6.0 points (pattern score dependent)
• Break of structure: +1.5 points
Regime Adjustments:
• Trend weight: 1.5× in trend regime, 0.5× in mean-reversion
• Mean-reversion weight: 1.5× in MR regime, 0.5× in trend
• Volatility multiplier: 0.7-1.3× based on ATR regime
• Theory mode multiplier: 0.8× (Conservative) to 1.2× (APEX)
Final Threshold:
Base threshold (default 3.5) adjusted by:
• Theory mode: -0.3 (APEX) to +0.8 (Conservative)
• Regime: +0.5 (high vol) to -0.3 (low vol or strong trend)
• Filter: +0.2 if regime filter enabled
5. SIGNAL GENERATION ARCHITECTURE
Five-stage validation process:
Stage 1 - ML Kernel Analysis:
• Entropy threshold check
• DFA regime classification
• Kalman acceleration confirmation
Stage 2 - Structural Confirmation:
• Market structure supports directional bias
• BOS alignment (if required)
• Swing point validation
Stage 3 - Trigger Validation:
• Engulfing candle (if required)
• HTF bias confirmation (if strict HTF enabled)
• Harmonic PRZ alignment (if confirmation enabled)
Stage 4 - Consistency Check:
• Anticipation depth: checks N bars back (1-13 configurable)
• Ensures Kalman acceleration direction persists
• Filters whipsaw conditions
Stage 5 - Structural Soundness (Critical Filter):
• Verifies adequate room before next major swing level
• Long signals: must have >0.25 ATR clearance to last swing high
• Short signals: must have >0.25 ATR clearance to last swing low
• Prevents trades directly into obvious structural barriers
Dynamic Risk Management:
• Stop-loss: Placed beyond last structural swing ± 2 ticks
• Take-profit 1: Risk × configurable R1 multiplier (default 1.5R)
• Take-profit 2: Risk × configurable R2 multiplier (default 3.0R)
• Confidence score: Calibrated 0-99% based on confluence + kernel boost
6. ADAPTIVE REGIME SYSTEM
Continuous market state monitoring:
Trend Regime:
• Kalman fast vs slow positioning
• Multi-timeframe alignment (optional HTF)
• Strength: ATR-normalized fast/slow spread
Volatility Regime:
• Current ATR vs 100-bar average
• Regime ratio: 0.7-1.3 typical range
• Affects swing size filtering and cooldown periods
Signal Cooldown:
• Base: User-set bars (1-300)
• High volatility (>1.5): cooldown × 1.5
• Low volatility (<0.5): cooldown × 0.7
• Post-BOS: minimum 20-bar cooldown enforced
FOUR OPERATIONAL MODES
CONSERVATIVE MODE:
• Threshold adjustment: +0.8
• Mode multiplier: 0.8×
• Strictest filtering for highest quality
• Recommended for: Beginners, large accounts, swing trading
• Expected signals: 3-5 per week (typical volatile instrument)
BALANCED MODE:
• Threshold adjustment: +0.3
• Mode multiplier: 1.0×
• Standard operational parameters
• Recommended for: General trading, learning phase
• Expected signals: 5-10 per week
APEX MODE:
• Threshold adjustment: -0.3
• Mode multiplier: 1.2×
• Maximum sensitivity, reduced cooldowns
• Recommended for: Scalping, high volatility, experienced traders
• Expected signals: 10-20 per week
INSTITUTIONAL MODE:
• Threshold adjustment: +0.5
• Mode multiplier: 1.1×
• Enhanced structural weighting, HTF emphasis
• Recommended for: Professional traders, swing positions
• Expected signals: 4-8 per week
VISUAL COMPONENTS
1. Fibonacci Retracement Levels
• Auto-calculated from most recent swing structure
• Standard levels: 0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%, 127.2%, 161.8%, 200%, 261.8%
• Key levels emphasized (50%, 61.8%, 100%, 161.8%)
• Color gradient from bullish to bearish based on level
• Automatic cleanup when levels are crossed
• Label intensity control (None/Fib only/All)
2. Support and Resistance Lines
• Dynamic horizontal levels from swing clusters
• Width: 2px solid lines
• Colors: Green (support), Red (resistance)
• Labels show price and level type
• Touch-based validation (minimum 2 touches)
• Real-time updates and invalidation
3. Harmonic PRZ Boxes
• Displayed around pattern completion (D point)
• Pattern-specific colors (Gartley: purple, Bat: orange, etc.)
• Box height: ATR-based zone sizing
• Score-dependent transparency
• 100-bar active window before removal
4. Confluence Boxes
• Appear when confluence ≥ threshold
• Yellow/orange gradient based on score strength
• Height: High to low of bar
• Width: 1 bar on each side
• Real-time score-based transparency
5. Kalman Filter Lines
• Fast filter: Bullish color (green default)
• Slow filter: Bearish color (red default)
• Width: 2px
• Transparency adjustable (0-90%)
• Optional display toggle
6. Signal Markers
• Long: Green triangle below bar (tiny size)
• Short: Red triangle above bar (tiny size)
• Appear only on confirmed signals
• Includes alert generation
7. Premium Dashboard
Features real-time metrics with visual gauges:
Layout Options:
• Position: 4 corners selectable
• Size: Small (9 rows) / Normal (12 rows) / Large (14 rows)
• Themes: Supreme, Cosmic, Vortex, Heritage
Metrics Displayed:
• Gamma (DFA - 0.5): Shows trend persistence vs mean-reversion
• TCI (Trend Strength): ATR-normalized Kalman spread with gauge
• v/c (Relative Volume): Current vs average with color coding
• Entropy: Market predictability state with gauge
• HFL (High-Frequency Line): Kalman fast/slow difference / ATR
• HFL_acc (Acceleration): Second derivative momentum
• Mem Bias: Net bullish-bearish confluence (-1 to +1)
• Assurance: Confidence × (1-entropy) metric
• Squeeze: Bollinger Band / Keltner Channel squeeze detection
• Breakout P: Probability estimate from DFA + trend + acceleration
• Score: Final confluence vs threshold (normalized)
• Neighbors: Active harmonic patterns count
• Signal Strength: Strong/Moderate/Weak classification
• Signal Banner: Current directional bias with emoji indicators
Gauge Visualization:
• 10-bar horizontal gauges (█ filled, ░ empty)
• Color-coded: Green (strong) / Gold (moderate) / Red (weak)
• Real-time updates every bar
HOW TO USE
Step 1: Configure Mode and Resolution
• Select Theory Mode based on trading style (Conservative/Balanced/APEX/Institutional)
• Set Structural Resolution (Standard for fast markets, High for balanced, Ultra/Institutional for swing)
• Enable Adaptive Filtering (recommended for all volatile assets)
Step 2: Enable Desired Kernels
• Shannon Entropy: Essential for predictability detection (recommended ON)
• DFA Analysis: Critical for regime classification (recommended ON)
• Kalman Filter: Provides lag-free trend tracking (recommended ON)
• All three work synergistically; disabling reduces effectiveness
Step 3: Configure Confluence Factors
• Enable desired technical factors (RSI, MACD, Volume, Divergence)
• Enable Liquidity Mapping for support/resistance proximity scoring
• Enable Harmonic Detection if trading pattern-based setups
• Adjust base confluence threshold (3.5 default; higher = fewer, cleaner signals)
Step 4: Set Trigger Requirements
• Require Engulfing: Adds precision, reduces frequency (recommended for Conservative)
• Require BOS: Ensures structural alignment (recommended for trend-following)
• Require Structural Soundness: Critical filter preventing traps (highly recommended)
• Strict HTF Bias: For multi-timeframe traders only
Step 5: Adjust Visual Preferences
• Enable/disable Fibonacci levels, S/R lines, PRZ boxes, confluence boxes
• Set label intensity (None/Fib/All)
• Adjust transparency (0-90%) for overlay clarity
• Configure dashboard position, size, and theme
Step 6: Configure Alerts
• Enable master alerts toggle
• Select alert types: Anticipation, Confirmation, High Confluence, Low Entropy
• Enable JSON details for automated trading integration
Step 7: Interpret Signals
• Wait for triangle markers (green up = long, red down = short)
• Check dashboard for confluence score, entropy, DFA regime
• Verify signal aligns with higher timeframe bias (if using HTF setting)
• Confirm adequate space to take-profit levels (no nearby structural barriers)
Step 8: Execute and Manage
• Enter at close of signal candle (or next bar open)
• Set stop-loss at calculated level (visible in alert if JSON enabled)
• Scale out at TP1 (1.5R default), trail remaining to TP2 (3.0R default)
• Exit early if entropy spikes >0.7 or DFA regime flips against position
CUSTOMIZATION GUIDE
Timeframe Optimization:
Scalping (1-5 minutes):
• Theory Mode: APEX
• Anticipation Depth: 3-5
• Structural Resolution: STANDARD
• Signal Cooldown: 8-12 bars
• Enable fast kernels, disable HTF bias
Day Trading (15m-1H):
• Theory Mode: BALANCED
• Anticipation Depth: 5-8
• Structural Resolution: HIGH
• Signal Cooldown: 12-20 bars
• Standard configuration
Swing Trading (4H-Daily):
• Theory Mode: INSTITUTIONAL
• Anticipation Depth: 8-13
• Structural Resolution: ULTRA or INSTITUTIONAL
• Signal Cooldown: 20-50 bars
• Enable HTF bias, strict confirmations
Market Type Optimization:
Forex Majors:
• All kernels enabled
• Harmonic patterns effective
• Balanced or Institutional mode
• Standard settings work well
Stock Indices:
• Emphasis on volume analysis
• DFA critical for regime detection
• Conservative or Balanced mode
• Enable liquidity mapping
Cryptocurrencies:
• Adaptive filtering essential
• Higher volatility regime expected
• APEX mode for active trading
• Wider ATR multiples for swing sizing
IMPORTANT DISCLAIMERS
• This indicator does not predict future price movements
• Computational kernels calculate probabilities, not certainties
• Past confluence scores do not guarantee future signal performance
• Always backtest on YOUR specific instruments and timeframes before live trading
• Machine learning kernels require calibration period (minimum 100 bars of data)
• Performance varies significantly across market conditions and regimes
• Signals are suggestions for analysis, not automated trading instructions
• Proper risk management (stops, position sizing) is mandatory
• Complex calculations may impact performance on lower-end devices
• Designed for liquid markets; avoid illiquid or gap-prone instruments
PERFORMANCE CONSIDERATIONS
Computational Intensity:
• DFA analysis: Moderate (scales with length and box size parameters)
• Entropy calculation: Moderate (scales with lookback and bins)
• Kalman filtering: Low (efficient state-space updates)
• Harmonic detection: Moderate to High (pattern matching across swing history)
• Overall: Medium computational load
Optimization Tips:
• Reduce Structural Analysis Depth (144 default → 50-100 for faster performance)
• Increase Calc Step (2 default → 3-4 for lighter load)
• Reduce Pattern Analysis Depth (8 default → 3-5 if harmonics not primary focus)
• Limit Draw Window (150 bars default prevents visual clutter on long charts)
• Disable unused confluence factors to reduce calculations
Best Suited For:
• Liquid instruments: Major forex, stock indices, large-cap crypto
• Active timeframes: 5-minute through daily (avoid tick/second charts)
• Trending or ranging markets: Adapts to both via regime detection
• Pattern traders: Harmonic integration adds geometric confluence
• Multi-timeframe analysts: HTF bias and regime detection support this approach
Not Recommended For:
• Illiquid penny stocks or micro-cap altcoins
• Markets with frequent gaps (stocks outside regular hours without gap adjustment)
• Extremely fast timeframes (tick, second charts) due to calculation overhead
• Pure mean-reversion systems (unless using CONSERVATIVE mode with DFA filters)
METHODOLOGY NOTE
The computational kernels (Shannon Entropy, DFA, Kalman Filter) are established statistical and signal processing techniques adapted for financial time series analysis. These are deterministic mathematical algorithms, not predictive AI models. The term "machine learning" refers to the adaptive, data-driven nature of the calculations, not neural networks or training processes.
Confluence scoring is rule-based with regime-dependent weighting. The system does not "learn" from historical trades but adapts its sensitivity to current volatility and trend conditions through mathematical regime classification.
SUPPORT & UPDATES
• Questions about configuration or usage? Send me a message on TradingView
• Feature requests are welcome for consideration in future updates
• Bug reports appreciated and addressed promptly
• I respond to messages within 24 hours
• Regular updates included (improvements, optimizations, new features)
FINAL REMINDERS
• This is an analytical tool for confluence analysis, not a standalone trading system
• Combine with your existing strategy, risk management, and market analysis
• Start with paper trading to learn the system's behavior on your markets
• Allow 50-100 signals minimum for performance evaluation
• Adjust parameters based on YOUR timeframe, instrument, and trading style
• No indicator guarantees profitable trades - proper risk management is essential
— Dskyz, Trade with insight. Trade with anticipation.
Inside SwingsOverview
The Inside Swings indicator identifies and visualizes "inside swing" patterns in price action. These patterns occur when price creates a series of pivots that form overlapping ranges, indicating potential consolidation or reversal zones.
What are Inside Swings?
Inside swings are specific pivot patterns where:
- HLHL Pattern: High-Low-High-Low sequence where the first high is higher than the second high, and the first low is lower than the second low
- LHLH Pattern: Low-High-Low-High sequence where the first low is lower than the second low, and the first high is higher than the second high
Here an Example
These patterns create overlapping price ranges that often act as:
- Support/Resistance zones
- Consolidation areas
- Potential reversal points
- Breakout levels
Levels From the Created Range
Input Parameters
Core Settings
- Pivot Lookback Length (default: 5): Number of bars on each side to confirm a pivot high/low
- Max Boxes (default: 100): Maximum number of patterns to display on chart
Extension Settings
- Extend Lines: Enable/disable line extensions - this extends the Extremes of the Swings to where a new Swing Started or Extended Right for the Latest Inside Swings
- Show High 1 Line: Display first high/low extension line
- Show High 2 Line: Display second high/low extension line
- Show Low 1 Line: Display first low/high extension line
- Show Low 2 Line: Display second low/high extension line
Visual Customization
Box Colors
- HLHL Box Color: Color for HLHL pattern boxes (default: green)
- HLHL Border Color: Border color for HLHL boxes
- LHLH Box Color: Color for LHLH pattern boxes (default: red)
- LHLH Border Color: Border color for LHLH boxes
Line Colors
- HLHL Line Color: Extension line color for HLHL patterns
- LHLH Line Color: Extension line color for LHLH patterns
- Line Width: Thickness of extension lines (1-5)
Pattern Detection Logic
HLHL Pattern (Bullish Inside Swing)
Condition: High1 > High2 AND Low1 < Low2
Sequence: High → Low → High → Low
Visual: Two overlapping boxes with first range encompassing second
Detection Criteria:
1. Last 4 pivots form High-Low-High-Low sequence
2. Fourth pivot (first high) > Second pivot (second high)
3. Third pivot (first low) < Last pivot (second low)
LHLH Pattern (Bearish Inside Swing)
Condition: Low1 < Low2 AND High1 > High2
Sequence: Low → High → Low → High
Visual: Two overlapping boxes with first range encompassing second
Detection Criteria:
1. Last 4 pivots form Low-High-Low-High sequence
2. Fourth pivot (first low) < Second pivot (second low)
3. Third pivot (first high) > Last pivot (second high)
Visual Elements
Boxes
- Box 1: Spans from first pivot to last pivot (larger range)
- Box 2: Spans from third pivot to last pivot (smaller range)
- Overlap: The intersection of both boxes represents the inside swing zone
Extension Lines
- High 1 Line: Horizontal line at first high/low level
- High 2 Line: Horizontal line at second high/low level
- Low 1 Line: Horizontal line at first low/high level
- Low 2 Line: Horizontal line at second low/high level
Line Extension Behavior
- Historical Patterns: Lines extend until the next pattern starts
- Latest Pattern: Lines extend to the right edge of chart
- Dynamic Updates: All lines are redrawn on each bar for accuracy
Trading Applications
Support/Resistance Levels
Inside swing levels often act as:
- Dynamic support/resistance
- Breakout confirmation levels
- Reversal entry points
Pattern Interpretation
- HLHL Patterns: Potential bullish continuation or reversal
- LHLH Patterns: Potential bearish continuation or reversal
- Overlap Zone: Key area for price interaction
Entry Strategies
1. Breakout Strategy: Enter on break above/below inside swing levels
2. Reversal Strategy: Enter on bounce from inside swing levels
3. Range Trading: Trade between inside swing levels
Technical Implementation
Data Structures
type InsideSwing
int startBar // First pivot bar
int endBar // Last pivot bar
string patternType // "HLHL" or "LHLH"
float high1 // First high/low
float low1 // First low/high
float high2 // Second high/low
float low2 // Second low/high
box box1 // First box
box box2 // Second box
line high1Line // High 1 extension line
line high2Line // High 2 extension line
line low1Line // Low 1 extension line
line low2Line // Low 2 extension line
bool isLatest // Latest pattern flag
Memory Management
- Pattern Storage: Array-based storage with automatic cleanup
- Pivot Tracking: Maintains last 4 pivots for pattern detection
- Resource Cleanup: Automatically removes oldest patterns when limit exceeded
Performance Optimization
- Duplicate Prevention: Checks for existing patterns before creation
- Efficient Redraw: Only redraws lines when necessary
- Memory Limits: Configurable maximum pattern count
Usage Tips
Best Practices
1. Combine with Volume: Use volume confirmation for breakouts
2. Multiple Timeframes: Check higher timeframes for context
3. Risk Management: Set stops beyond inside swing levels
4. Pattern Validation: Wait for confirmation before entering
Common Scenarios
- Consolidation Breakouts: Inside swings often precede significant moves
- Reversal Zones: Failed breakouts at inside swing levels
- Trend Continuation: Inside swings in trending markets
Limitations
- Lagging Indicator: Patterns form after completion
- False Signals: Not all inside swings lead to significant moves
- Market Dependent: Effectiveness varies by market conditions
Customization Options
Visual Adjustments
- Modify colors for different market conditions
- Adjust line widths for visibility
- Enable/disable specific elements
Detection Sensitivity
- Increase pivot length for smoother patterns
- Decrease for more sensitive detection
- Balance between noise and signal
Display Management
- Control maximum pattern count
- Adjust cleanup frequency
- Manage memory usage
Conclusion
The Inside Swings indicator provides a systematic approach to identifying consolidation and potential reversal zones in price action. By visualizing overlapping pivot ranges
The indicator's strength lies in its ability to:
- Identify key price levels automatically
- Provide visual context for market structure
- Offer flexible customization options
- Maintain performance through efficient memory management
SD Daily BTC (M1)EN
Description:
This indicator is based on an institutional model that calculates price zones representing cheap and expensive market areas using standard deviations. It helps visualize potential price extremes and better understand market structure.
Note:
The indicator is designed only for the M1 or lower timeframes.
It should be used solely as confirmation of existing trade ideas and never as a standalone decision-making tool.
Available at ko-fi.com
SD Daily FDAX (M1)EN
Description:
This indicator is based on an institutional model that calculates price zones representing cheap and expensive market areas using standard deviations. It helps visualize potential price extremes and better understand market structure.
Note:
The indicator is designed only for the M1 or lower timeframes.
It should be used solely as confirmation of existing trade ideas and never as a standalone decision-making tool.
Available at ko-fi.com
SD Daily NQ (M1)EN
Description:
This indicator is based on an institutional model that calculates price zones representing cheap and expensive market areas using standard deviations. It helps visualize potential price extremes and better understand market structure.
Note:
The indicator is designed only for the M1 or lower timeframes.
It should be used solely as confirmation of existing trade ideas and never as a standalone decision-making tool.
Available at ko-fi.com






















