SuperTrend Weighted by Divergence█ OVERVIEW
SuperTrend Weighted by Divergence is a trend-following indicator based on the classic SuperTrend, enhanced with dynamic ATR weighting driven by divergences. Its key feature is adaptive behavior: when a divergence appears, the indicator temporarily reduces the ATR multiplier, allowing the trend line to react faster to potential market reversals.
The indicator remains clean, visually clear, and well suited for traders who want to combine trend-following with early detection of weakening momentum.
█ CONCEPT
One of the biggest drawbacks of trend indicators is their lagging nature, caused by the characteristics of source data. Classic SuperTrends react only after the trend has already developed, which often leads to late entries or exits.
The idea behind SuperTrend Weighted by Divergence is to introduce dynamic adjustment of the trend line in response to the first signs of trend weakening.
Instead of treating ATR as a constant volatility buffer, the indicator temporarily modifies its impact when the market sends warning signals in the form of price–oscillator divergences.
For divergence detection, a hidden auxiliary oscillator called “MPO4 Lines – Modal Engine” (default settings) is used. This oscillator is not displayed on the chart – only the points where divergences are detected are shown as markers on price bars.
Divergences do not generate direct entry signals; they are used solely to temporarily adjust the behavior of the SuperTrend.
If, after detecting a divergence against the current trend, a divergence in line with the trend appears, the previous divergence is invalidated and the SuperTrend returns to its standard behavior (base ATR multiplier).
█ FEATURES
Data sources:
- ATR (Average True Range)
- Reference point: HL2 (high/low average)
- MPO4 Lines – Modal Engine oscillator (hidden, used only for divergence detection)
Divergence logic:
- Bullish divergence: lower low in price + higher low in the oscillator
- Bearish divergence: higher high in price + lower high in the oscillator
- Divergences are detected using pivots (left/right)
- Divergence detection is delayed by the pivot length, as confirmation requires a fixed number of bars on the right side
Divergence impact:
- After a divergence is detected, the ATR multiplier is reduced
- The reduction strength is controlled by Divergence Sensitivity
- The effect is active only for a limited number of bars – 200 bars by default (divBars)
- The effect is canceled on trend change or when a trend-aligned divergence appears
Trend change logic:
- Trend changes only after a confirmed close beyond the trailing line
- No repainting
- Trend lines break at reversal points
Visual signals:
- “Buy” and “Sell” labels only on confirmed trend changes
- Optional bar coloring based on current trend (Color bars by trend)
- Soft fill between price and the trend line
- Divergence markers (dots above/below bars) shown at the point of divergence detection, not across the entire divergence structure
Alerts:
- Buy Signal – trend change to bullish
- Sell Signal – trend change to bearish
- Bullish Divergence
- Bearish Divergence
█ HOW TO USE
Adding the indicator:
Paste the code into Pine Editor or search for “SuperTrend Weighted by Divergence” on TradingView
Main settings:
- ATR Length – ATR period
- Base ATR Multiplier – base SuperTrend width
- Pivot Length – divergence sensitivity and detection delay
- Divergence Sensitivity – strength of divergence impact (0.0–1.0)
- Color bars by trend – enable / disable bar coloring
- Line and fill colors – fully customizable
Interpretation:
- Green line and bars = uptrend
- Red line and bars = downtrend
- Divergence against the trend = possible weakening and faster SuperTrend reaction
- Trend-aligned divergence = return to standard SuperTrend behavior
- No divergence = classic, stable SuperTrend behavior
█ APPLICATIONS
Ideal for:
- Trend-following
Entering positions only in the direction of the current trend, using the SuperTrend as a directional filter.
- Early detection of trend weakness
Repeated divergences against the trend may indicate decreasing momentum and a potential upcoming reversal.
- Markets with variable dynamics (crypto, indices, forex)
Entries based on trend changes, preferably confirmed by other tools such as Fibonacci levels, RSI, support/resistance, or market structure.
- Scalping, day trading, and swing trading (with parameter adjustments)
Increasing Divergence Sensitivity to around 0.4–0.5 produces many more signals on small, often short-lived moves.
These settings work well for scalping and day trading, but are not ideal for swing trading, as they tend to generate more false signals and frequent trend changes.
█ NOTES
- Works on all markets and timeframes
- Divergences are used to adapt SuperTrend behavior, not as standalone entry signals
- Higher Divergence Sensitivity = faster reaction and more signals
- Lower Divergence Sensitivity = smoother trend and fewer changes
- Best results are achieved by tuning parameters to the instrument and trading style
Points pivots et niveaux
Open Interest Bubbles [BackQuant]Open Interest Bubbles
A visual OI positioning overlay that aggregates futures open interest across major venues, normalizes it into a consistent “signal strength” scale, then plots extreme events as bubbles, labels, and optional horizontal levels directly on price.
What this is for
Open interest is one of the cleanest ways to track when positioning is building, unwinding, or aggressively shifting. The problem is raw OI is noisy, exchange-specific, and hard to compare across time. This script solves that by:
- Aggregating OI across multiple exchanges.
- Letting you choose what “OI signal” you care about (raw, delta, percent versions).
- Normalizing the signal so “big events” are easy to spot.
- Plotting those events as bubbles and levels at the exact price they occurred.
You end up with a clean, fast visual map of where large positioning changes occurred, and where those events may later matter as reaction points.
────────────────────────────────────────────────────────────
Plotting types (what you can display)
Bubbles
This mode plots OI events as size-bucketed circles on the chart. Bigger bubbles represent stronger normalized events. You can tune:
- Bubble sizing by bucket (Tiny → Huge).
- Heatmap vs solid color styling.
- Signed vs unsigned coloring (positive/negative separation or magnitude-only).
Best use:
- Spotting “where something changed” at a glance.
- Identifying clusters of positioning events around key price zones.
- Seeing whether the market is repeatedly building/closing positions at similar levels.
Levels
Levels mode draws a horizontal line at the anchor price when an extreme OI event triggers. These act like “positioning memory” levels:
- They do not claim to be support/resistance by themselves.
- They highlight prices where the derivatives market clearly did something meaningful.
Best use:
- Marking potential reaction zones.
- Combining with your price action tools (structure, OBs, FVGs) to confirm whether an OI level aligns with a technical level.
- Building a “map” of where leverage likely entered or exited.
Modes available in the script:
- Off
- Bubbles
- Bubbles + Labels
- Labels Only
- Levels + Labels
────────────────────────────────────────────────────────────
Aggregated Open Interest source (multi-exchange)
This indicator builds a single aggregated OI series by requesting OI data from multiple exchanges and summing it. You can toggle exchanges on/off:
- Binance, Bybit, OKX, Bitget, Kraken, HTX, Deribit
You can also choose OI units:
- COIN , OI in base units (native sizing)
- USD , converted for a dollar-value representation
Important note:
Not every symbol has OI data on every venue. If the script cannot build an aggregated series for the symbol, it will throw an error rather than quietly plotting garbage.
────────────────────────────────────────────────────────────
OI Source, what the bubbles are measuring
You control what “signal” is normalized and plotted:
- Delta , change in aggregated OI from the prior bar.
Use when you want to highlight bursts of new positioning or sudden unwind events.
- Raw OI , the aggregated open interest level itself.
Use when you want to highlight absolute positioning build-up periods.
- Delta % , percent change in OI.
Use when you want moves normalized to the current OI regime, useful across different market eras.
- Raw OI % , percent change form of the raw series.
Use when you want relative changes rather than absolute size.
Practical guidance:
- Delta modes are best for “event detection”.
- Raw modes are better for “regime context” and whether positioning is structurally rising or fading.
────────────────────────────────────────────────────────────
Normalization (the key to making it readable)
Because OI varies massively across assets and time, the script includes multiple normalization modes to convert your chosen OI source into a comparable “strength” value.
Options:
- ZScore , deviation from a rolling mean in standard deviation units.
- StdNorm , scaled by rolling standard deviation.
- AbsZScore , absolute value version for magnitude-only mapping.
- AbsStdNorm , absolute value version for magnitude-only mapping.
- None , plots raw values (advanced users only, often too noisy visually).
Why this matters:
Normalization makes a “1.5” or “3.0” threshold mean something across different assets and timeframes, instead of being stuck to raw OI units.
────────────────────────────────────────────────────────────
Threshold system (when bubbles/levels trigger)
The plot is driven by two user thresholds:
- Base Threshold
Controls where “meaningful” events start. Raising this reduces noise and focuses on larger deviations.
- Extreme Threshold
Controls what qualifies as a top-tier event. Extreme events are what you typically want to convert into labels and levels.
You also control side filtering:
- Both , show positive and negative events.
- Positive Only , show only increases (or positive signal side depending on source).
- Negative Only , show only decreases (or negative signal side).
In practice:
- Use Base Threshold to tune chart cleanliness.
- Use Extreme Threshold to mark only the “big stuff” that tends to matter later.
────────────────────────────────────────────────────────────
Anchor Source (where the bubble/level is placed)
The indicator places bubbles, labels, and levels at a price anchor you choose:
- HL2, Close, Open, High, Low, VWAP
This is important because “where you pin the event” changes how it reads:
- Close is clean and consistent for backtesting and candle-close logic.
- High/Low can better represent where the fight occurred intrabar.
- VWAP can be useful for “fair price” anchoring in active markets.
────────────────────────────────────────────────────────────
Style system (theme, palette, signed logic)
This script is built to look good and stay readable on busy charts.
Themes
- BackQuant, Classic, Ice, Fire, Mono, Custom
Palette Mode
- Solid , one consistent color
- Heatmap , intensity increases with magnitude
- Single Color Adaptive , adapts to chart background for clarity
Side Coloring
- Signed , positive and negative events can use different ramps
- Unsigned , magnitude-only coloring
Negative theme handling:
- Auto (mirrors your chosen theme),
- Invert (flips the ramp),
- Custom (fully user-defined negative palette).
What this gives you:
- You can run a clean “mono” look for professional charts.
- Or a high-contrast heatmap for fast scanning.
- Or fully custom branding colors for BackQuant-style presentation.
────────────────────────────────────────────────────────────
Labels (what’s inside the label)
When labels are enabled, the script can display:
- OI , the aggregated OI value
- OI + Norm , OI plus normalized strength
- Norm Only , just the normalized strength
- Src + Norm , the selected source value (Delta, Raw, %) plus normalized strength
You can also control:
- Left/Center/Right label alignment
- Number formatting style (Raw, Compact, Volume format)
Best practice:
- Use “Src + Norm” when you want both the raw event size and its rarity.
- Use “Norm Only” when you want a clean, minimal chart.
────────────────────────────────────────────────────────────
Levels and object limits (performance and cleanliness)
Because this script draws objects, it includes a hard cleanup system:
- You set Max Levels / Labels to control chart clutter.
- The script deletes older lines/labels when the limit is exceeded.
This is critical if you trade lower timeframes, where OI events can trigger frequently.
────────────────────────────────────────────────────────────
How to interpret the signals
What a large bubble usually means:
- A statistically large positioning change relative to recent history.
- This can represent fresh leverage entering, forced liquidations, or aggressive de-risking, depending on direction and context.
How to use levels:
- Treat them as “attention levels”, not automatic entries.
- Combine them with structure and liquidity tools:
- If price revisits an OI level and shows rejection, it often confirms that level mattered.
- If price slices through with no reaction, it often indicates the OI event was transitional, not defended.
Common setups:
- Clustered extreme bubbles near a breakout zone, then retest later.
- Extreme negative event at capitulation low, followed by structure flip.
- Extreme positive build into resistance, then unwind and mean reversion.
Also, please check out @NoveltyTrade for the OI Aggregation logic & pulling the data source!
Here is the original script:
Advanced custom multi MA signals (EMA/SMA/VWMA/VWAP) Features of Multi Moving Averages
The biggest enemy in trading is "Noise." If you get swayed by minute fluctuations on the chart, you end up missing the forest for the trees.
This indicator (Advanced Custom Multi MA Signals) is not just a simple line. By combining the three core elements of Price, Time, and Volume, it acts as a navigation system that visualizes the market's "true trend." In particular, the ability to analyze 5 moving averages simultaneously across various timeframes is akin to viewing a 3D map of the battlefield.
Understanding Core Concepts
This indicator supports 4 types of moving averages. It is crucial to clearly understand the nature of each tool.
SMA (Simple Moving Average): The most basic average value. Since it produces fewer whipsaws (false signals), it is used as a baseline to judge the "long-term trend."
EMA (Exponential Moving Average): Places more weight on recent prices. It reacts sensitively to market changes, making it advantageous for identifying "entry points."
VWMA (Volume Weighted Moving Average): Incorporates "volume" into the price calculation. It acts as a "false signal filter," weeding out price moves that aren't backed by trading volume.
VWAP (Volume Weighted Average Price): The benchmark price used by institutional investors for daily trading. It is calculated based on the session, regardless of the period settings. It is considered the "lifeline" of day trading.
Indicator Settings Guide
Open the settings window and tune it to fit your trading style.
MA 01 ~ 05 (Moving Average Settings)
MA Type: Select according to your purpose. (Generally, EMA is recommended for short-term analysis, SMA/VWMA for long-term).
Length: Enter the period you wish to analyze (e.g., 20, 60, 120, 200).
Timeframe: This is the core feature. It allows you to overlay moving averages from a higher timeframe (e.g., 4-hour, Daily) onto the chart you are currently viewing (e.g., 15-minute).
Signal Option (Trading Signals)
Golden Cross (GC) / Death Cross (DC): Captures the moment the short-term line breaks through the long-term line. You can run up to 3 strategies simultaneously.
Ribbon Gradient (Trend Visualization)
Represents the gap between two moving averages with color. As the color deepens and the width expands, it indicates a powerful trend; if the width narrows, it suggests a high probability of a trend reversal.
5 Usage Strategies
The highlight of this indicator is the cross strategy utilizing the "Multi-Timeframe (MTF)" feature. Familiarize yourself with the 5 example strategies below and set up your own strategy based on your expertise.
💡 Tip 1. Do not go against the "Major Trend" (The Authority of the Weekly Candle)
Settings: Set MA5 to .
Interpretation: The Weekly 50 line is the "major trend line" managed by institutions and market makers. If the current price is above this line, maintain only a "Buy (Long)" bias; if below, maintain only a "Sell (Short)" bias. Adhering to this rule alone can help you avoid massive losses.
💡 Tip 2. Highly Reliable "Swing Signal" (Daily Golden Cross)
Settings: In Signal 1, configure the Short MA to and the Long MA to .
Interpretation: A Golden Cross where the 4-Hour 50 EMA breaks above the Daily 50 EMA often signifies a major "trend reversal" rather than a temporary rebound. This provides an ideal entry signal for office workers or swing traders who need high reliability.
💡 Tip 3. 4-Hour Candle as the Standard for "Precision Entry"
Situation: When the Daily trend is rising (Bullish alignment).
Strategy: While watching the 15-minute or 1-hour chart, set the indicator's Signal 2 to the cross of and .
Interpretation: When the Daily chart is in an uptrend, a Golden Cross occurring on the 4-Hour chart marks "the point where a correction (pullback) ends and the rise resumes." This is the entry point with the best risk-to-reward ratio.
💡 Tip 4. Filtering Out "Fake Signals" (The Secret of Volume)
Strategy: When creating a cross signal, try using VWMA (Volume Weighted) for the Long MA, even if you use EMA for the Short MA.
Reason: A Golden Cross caused simply by a rise in price can be a trap. However, if it breaks through the heavy VWMA line accompanied by volume, it is strong evidence that "genuine liquidity" has entered.
💡 Tip 5. Remember the "Hierarchy" (Higher Timeframe Priority Rule)
Principle: If a Golden Cross (Buy Signal) appears on the 4-Hour chart, but the Daily chart is in a Death Cross (Sell Signal) state, do not enter.
Interpretation: A signal from a lower timeframe cannot overcome the power of a higher timeframe. The professional approach is to trade with significant volume only when signals align (Sync) in the order of Weekly > Daily > 4-Hour. Keep this indicator's dashboard feature on and always check the status of higher timeframes.
Signal Generation Principle (Operating Mechanism)
Signals are generated when the set short-term moving average and long-term moving average cross each other.
📈 1. Golden Cross (BUY = Buy Signal)
Situation: The moment the short-term MA crosses upward from below the long-term MA.
Principle: It implies that recent buying pressure has broken through the resistance level accumulated over a long period.
📉 2. Death Cross (SELL = Sell Signal)
Situation: The moment the short-term MA crosses downward from above the long-term MA.
Principle: It implies that recent selling pressure has collapsed the long-term support line.
※ If the candles are not displaying correctly or are flickering, please set the indicator's 'Visual order' to 'Bring to front' as shown in the image below.
Investment Caution and Disclaimer
Before using this indicator for actual trading, please strictly read the contents below.
① Auxiliary indicators are a "Compass," not a "Book of Prophecy."
This indicator is merely a tool that mathematically calculates and visualizes past price data. A "magic indicator" that predicts future price fluctuations 100% accurately or guarantees profit does not exist. The signals provided are for reference only and must never be the sole basis for entry/exit decisions.
② The responsibility for all investments lies with "Yourself."
Financial investment (Cryptocurrencies, Stocks, Futures, etc.) involves high volatility and is a risky activity that can result in the loss of some or all of the principal. The final responsibility for all trading results (profits and losses) incurred by utilizing this indicator lies entirely with the investor. The distributor and developer accept no legal responsibility for investment results under any circumstances.
③ Past data does not guarantee the future.
Even a Golden Cross that fit perfectly in backtesting or past charts may operate differently in tomorrow's market situation (News, Macroeconomics, Unexpected Variables, etc.). Do not rely solely on technical analysis; you must conduct fundamental analysis and risk management in parallel.
④ Risk management is the top priority.
No matter how promising a signal appears, "all-in trading" (investing all assets in a single trade) is a shortcut to bankruptcy. More important than the indicator itself is adhering to the principles of strict scaling in (split buying) and Stop-Loss.
ICT Unicorn Model [Kodexius]ICT Unicorn Model is a market structure and imbalance confluence tool that automatically detects high probability “Unicorn” setups by combining three key elements into a single, clean script:
-A first, clean break of that swing level (displacement style break)
-A Fair Value Gap that overlaps a breaker candle body range
Instead of plotting every pivot or every imbalance independently, the script waits for a specific sequence: price establishes a valid swing, breaks that swing for the first time, and prints a setup only when the resulting context aligns with a valid, volatility filtered FVG and a clearly defined breaker range.
Each detected setup is drawn directly on the chart with labeled zones (Breaker and FVG) and is then actively monitored. If price violates the breaker boundary based on your chosen invalidation basis (Close or Wick), the setup is marked inactive and can optionally be removed to keep the chart clean.
This indicator is designed for traders who work with ICT style concepts such as liquidity runs, displacement, breaker blocks, and imbalance reversion, and who want a structured, rules based visualization rather than discretionary drawing.
🔹 Features
🔸 Fair Value Gap Detection With Volatility Filtering
Bullish and bearish FVGs are detected using classic three candle imbalance logic. To avoid low quality gaps during compression, the script applies an ATR based minimum size filter using the “FVG Min Size (ATR Multiplier)” input. Only gaps larger than ATR * threshold are considered valid.
🔸 First Break Validation (Clean Break Logic)
A key part of the model is identifying a “first break” of a swing level. The script checks whether the swing price has already been invalidated between the swing bar and the current bar. If it has, the swing is ignored. This helps reduce repeated signals and focuses on fresh structural breaks.
🔸 Breaker and FVG Confluence With Overlap Requirement
After a valid break occurs, the script defines a breaker range using the body of the swing candle (open and close). A setup is only created if this breaker body range overlaps the detected FVG price range. This overlap requirement is what filters many “almost” conditions and keeps signals more selective.
Bullish Unicorn:
Bearish Unicorn:
🔸 Configurable Invalidation Basis (Close or Wick)
You can choose how a setup fails:
-Close: invalidation requires a candle close beyond the breaker boundary
-Wick: invalidation occurs as soon as any wick crosses beyond the breaker boundary
This allows the tool to adapt to different trading styles, from conservative confirmation to more sensitive risk control.
🔸 Automatic Cleanup of Failed Setups
If “Delete Invalidated Setups” is enabled, the script removes the breaker box, FVG box, and label as soon as the setup is invalidated. If disabled, the zones remain visible for review while the setup is marked inactive internally.
🔸 Clear Chart Visuals
Each setup plots:
-A labeled Breaker zone box
-A labeled FVG zone box
-A directional Unicorn label (Bull or Bear) that updates position as the chart advances
Colors for bullish and bearish structures are fully configurable.
🔸 Alert Conditions
Two alert conditions are provided:
-Bullish Unicorn Setup Detected
-Bearish Unicorn Setup Detected
Alerts trigger only on the bar a new setup is created.
🔹 Calculations
This section summarizes the main computations used internally. The goal here is to explain the model mechanics rather than reproduce every implementation detail.
1. Swing Detection (Pivot High / Pivot Low)
Swing levels are detected using a symmetric pivot definition with “Swing Length” bars on both sides:
float ph = ta.pivothigh(high, swingLength, swingLength)
float pl = ta.pivotlow(low, swingLength, swingLength)
When a pivot is confirmed, its price and originating bar index are stored:
-Swing High: price = pivot high, isHigh = true
-Swing Low: price = pivot low, isHigh = false
The script keeps a limited history (most recent swings) to stay efficient.
2. Fair Value Gap Detection
FVGs use the classic three candle displacement imbalance:
Bullish FVG condition
bool isBullFVG = high < low
Bullish gap range is defined as:
-Top = low
-Bottom = high
Bearish FVG condition
bool isBearFVG = low > high
Bearish gap range is defined as:
-Top = low
-Bottom = high
3. ATR Based Minimum Gap Filter
ATR is computed (length 14), then the gap size is compared against a user threshold:
float atr = ta.atr(14)
bool validBullFVG = isBullFVG and (bullFvgTop - bullFvgBot) > (atr * fvgThreshold)
bool validBearFVG = isBearFVG and (bearFvgTop - bearFvgBot) > (atr * fvgThreshold)
This prevents very small imbalances from generating setups in low volatility conditions.
4. “First Break” Check Using Level Invalidation Scan
Before accepting a swing break, the script scans forward from the swing bar to the current bar to confirm the level has not already been breached. The scan can be based on wick or close:
-Wick mode: uses high or low
-Close mode: uses close
Conceptually:
priceToCheck = mode == "Wick" ? (checkBelow ? low : high) : close
If a prior breach is found, the swing is treated as already invalidated and is ignored for setup creation.
5. Break Of Structure Condition
Bullish break requirement
A bullish setup requires breaking a stored swing high with bullish body intent:
-close > swingHighPrice
-open < close
Bearish break requirement
A bearish setup requires breaking a stored swing low with bearish body intent:
-close < swingLowPrice
-open > close
An additional proximity filter is applied in the bearish branch to reduce weak or overly extended breaks by requiring the prior close to be reasonably near the swing level.
6. Breaker Range Construction
Once a qualifying swing is found, the breaker range is derived from the body of the swing candle (the candle at the swing bar index). The body boundaries are:
float breakerTop = math.max(bOpen, bClose)
float breakerBot = math.min(bOpen, bClose)
This models the breaker as the candle body range rather than full wick range, which typically produces more practical invalidation boundaries.
7. Overlap Test Between Breaker and FVG
A setup is only created if the breaker body overlaps the FVG zone. Conceptually the script rejects cases where one range is fully above or fully below the other:
-If there is no overlap, no setup is created
-If overlap exists, the Unicorn setup is valid
8. Active Monitoring and Invalidation
Each setup remains active until invalidated. Invalidation is evaluated every bar using your selected basis:
-Close basis: compares close to breaker boundary
-Wick basis: compares high or low to breaker boundary
Bullish invalidation
Setup fails if price crosses below breaker bottom.
Bearish invalidation
Setup fails if price crosses above breaker top.
If deletion is enabled, all drawings related to that setup are removed immediately on invalidation.
9. Drawing Updates and Object Lifecycle
Breaker and FVG boxes are extended to the right while the setup is active to keep zones visible into the near future. The Unicorn label is also repositioned as new bars print so the most recent context stays readable.
Auto-Anchored Fibonacci Volume Profile [Custom Array Engine]Description:
1. The Theoretical Foundation: Structure vs. Participation In professional technical analysis, traders often struggle to reconcile two distinct datasets: Price Geometry (where price should go) and Market Participation (where money actually went).
Why Fibonacci? (The Structure) Fibonacci Retracements map the mathematical structure of a trend. They identify psychological and algorithmic "interest zones" (0.382, 0.5, 0.618) where a correction is statistically likely to terminate. However, Fibonacci levels are theoretical—they are "lines in the sand" that do not guarantee liquidity or reaction.
Why Volume Profile? (The Verification) Volume Profile maps the historical exchange of shares at specific price levels. It reveals "fair value" (High Volume Nodes) and "market imbalance" (Low Volume Nodes). It is the only tool that verifies if a specific price level was actually accepted by institutional participants.
2. Underlying Calculations (The Custom Engine) This script operates on a custom-built calculation engine that bypasses standard built-in functions entirely. It uses Pine Script Arrays to build a Volume Profile from scratch. Here is the breakdown of the proprietary code logic:
A. The "Smart-Fill" Distribution Algorithm (Solves Gapping)
The Problem: Standard volume scripts often assign a candle's entire volume to a single price row. In volatile markets or steep trends, this creates visual "gaps" or a "barcode" effect because price moved too fast to register on every row.
My Solution: I wrote a custom loop that calculates the vertical overlap of every candle against the profile grid.
The Math: Volume Per Bin = Total Candle Volume / Bins Touched.
The Result: If a single volatile candle spans 10 price rows (bins), the script mathematically divides that volume and distributes it equally into all 10 array indices. This generates a solid, continuous distribution curve that accurately reflects price action through the entire candle range, not just the close.
B. Dynamic Arrays & Split-Volume Logic The script initializes two separate floating-point arrays (buyVolArray and sellVolArray) sized to the user's resolution (up to 300 rows). It iterates through the specific time-window of the swing:
If Close >= Open, the calculated volume slice is injected into the Buy Array.
If Close < Open, it is injected into the Sell Array.
These arrays are then visually stacked to render the dual-color profile, allowing traders to see the "Delta" (Buyer vs. Seller aggression) at key structural levels.
C. Custom Garbage Collection (Performance) To enable the "Auto-Anchoring" feature without causing chart lag or visual artifacts ("ghosting"), the script includes a Garbage Collection System. Before drawing a new profile, the script iterates through a tracking array of all existing objects (box.delete, line.delete) and clears them from memory. This ensures the indicator remains lightweight and responsive even when dragging chart margins or switching timeframes.
3. The Synthesis: Why Combine Them? The core philosophy of this script is Confluence . A Fibonacci level without volume is merely a suggestion; a Fibonacci level backed by volume is a defensive wall. By algorithmically anchoring a Volume Profile to the exact coordinates of a Fibonacci swing, this tool allows traders to instantly answer critical questions:
"Is the Golden Pocket (0.618) supported by a High Volume Node (HVN), or is it a Low Volume Node (LVN) that price might slice through?"
"Is the Shallow Retracement (0.382) holding because of structural support, or just a lack of selling pressure?"
4. How to Read the Indicator
The Geometry: The script automatically detects the trend and draws standard Fib levels (0, 0.236, 0.382, 0.5, 0.618, 0.786, 1.0).
The Confluence Check: Look for the Point of Control (Red Line). If this High Volume Node aligns with a key Fib level (e.g., the 0.618), the probability of a reversal increases significantly.
The Imbalance Check: Look for "Valleys" in the profile (Low Volume Nodes). These gaps often act as "slippage zones" where price travels quickly between structural levels.
Buy/Sell Splits: The dual-color bars (Teal/Red) reveal the composition of the volume. A 0.618 level held up by dominant Buy Volume is a stronger bullish signal than one with mixed volume.
5. Settings & Customization
Lookback Length: Sensitivity of the swing detection (Default: 200 bars).
Resolution: Granularity of the profile rows (Default: 100). Higher values provide smoother definition.
Width (%): Responsive sizing that scales the profile relative to the trend's duration.
Extend Lines: Option to project structural levels infinitely to the right.
Disclaimer This script is an analytical tool for visualizing historical market data. It does not provide trade signals or financial advice.
Structure Lite - Automatic Major Trend LinesStructure Lite – Pivot-Based Market Structure Visualization
OVERVIEW
Structure Lite is an open-source charting tool designed to assist traders in visualizing higher-timeframe market structure. The script identifies major swing points using high-period pivot analysis and projects structural support and resistance lines directly on the chart. Its purpose is to highlight persistent market structure while minimizing visual noise.
CORE CONCEPTS & CALCULATIONS
Pivot Identification
The script uses Pine Script’s built-in ta.pivothigh() and ta.pivotlow() functions to identify confirmed swing highs and lows. A pivot is only validated after a user-defined number of bars (Major Pivot Lookback) have formed on both sides of the price extreme, ensuring that only structurally significant pivots are selected.
Structural Pairing
Each structural line is created only after two consecutive pivots of the same type are confirmed (high-to-high or low-to-low). The script stores the price and bar index of these pivots and uses them as fixed anchor points.
Line Projection
Once a valid pivot pair is formed, the script draws a line between the two points using line.new() and extends it forward using extend.right. These lines represent projected structural boundaries rather than trade signals.
Object Management
To maintain chart clarity and performance, the script manages all drawn objects through a line array. A FIFO (First-In, First-Out) method is applied so that only the three most recent structural lines remain visible. Older lines are automatically deleted as new ones are created.
DESIGN PHILOSOPHY & ORIGINALITY
While many indicators plot frequent swing points or short-term pivots, Structure Lite focuses on structural persistence. By filtering for higher-period pivots and limiting the number of displayed projections, the script emphasizes dominant market structure rather than short-term fluctuations. This approach is intended to support discretionary analysis, not replace it.
HOW TO USE
Major Pivot Lookback
Increase the value to focus on higher-timeframe structure (e.g., swing or position trading).
Decrease the value to visualize intraday structural levels.
Visual Encoding
Green lines represent projected structural support
Red lines represent projected structural resistance
Visibility Control
A boolean input allows all structure lines to be hidden instantly to restore a clean price chart.
LIMITATIONS & DISCLAIMER
This script is a visualization tool only. It does not generate trade signals, entry or exit points, alerts, or directional forecasts. All plotted levels are derived from historical price action and may change as new pivots form. The script is provided for educational and analytical purposes and should be used in conjunction with other forms of market analysis
SMT Divergence [Kodexius]SMT Divergence is a correlation-based divergence detector built around the Smart Money Technique concept: when two normally correlated instruments should be making similar swing progress, but one prints a new extreme while the other fails to confirm it. This “disagreement” can be a valuable contextual signal around liquidity runs, distribution phases, and potential reversal or continuation points.
The script compares the chart symbol (primary) with a user-selected comparison symbol (for example BTC vs ETH, ES vs NQ, EUR/USD vs GBP/USD) and automatically scans both instruments for confirmed swing highs and swing lows using pivot logic. Once swings are established, it checks for classic SMT conditions:
Primary makes a new swing extreme while the comparison symbol forms a non-confirming swing .
To support a wider range of markets, the indicator includes an Inverse Correlation option for pairs that typically move opposite to each other (for example DXY vs EUR/USD). With this enabled, the divergence rules are logically flipped so that the script still detects “non-confirmation” in a way that is consistent with the pair’s relationship.
The indicator is designed to be readable and actionable. It can draw divergence labels directly on the main chart, connect the relevant swing points with lines, show a compact information table with the last signal and settings, and optionally render the comparison symbol as a mini candle chart in the indicator pane for quick visual validation.
🔹 Features
🔸 Two-Symbol SMT Analysis (Primary vs Compare)
Select any comparison symbol to evaluate correlation structure and divergence. The script fetches the comparison OHLC data using the current chart timeframe to keep both series aligned for analysis.
🔸 Inverse Correlation Mode
For inversely correlated pairs, enable “Inverse Correlation” so the script interprets confirmation appropriately (for example, a higher low on the comparison instrument might be expected to correspond to a lower low on the primary, depending on the relationship). This helps avoid false conclusions when the pair naturally moves opposite.
🔸 Pivot-Based Swing with Adjustable Sensitivity
Swings are detected using confirmed pivots (left bars and right bars). This provides cleaner structural swing points compared with raw candle-to-candle comparisons, and it lets you control sensitivity for different market conditions and timeframes. The script also limits stored swing history to keep performance stable.
🔸 Flexible Detection Mode: Time Matched or Independent Swings
You can choose how swings are paired across instruments:
Time Matched searches for a comparison swing that occurred at the same pivot time as the primary swing.
Independent Swings compares each symbol’s own last two swings without requiring an exact time match.
🔸 Range Control and Noise Filtering
To reduce weak or irrelevant signals:
“Max Bars Between Swings” ensures the two swings being compared are close enough in structure to be meaningful.
“Min Price Diff (%)” can require a minimum percentage change between the primary’s last two swing prices to confirm the move is significant.
🔸 Clear Visual Output with Tooltips
When a divergence is detected, the script can print a label (“SMT”) with bullish or bearish styling and a tooltip that includes the symbol pair and the primary swing price for quick context.
🔸 Divergence Lines for Context
Optional lines connect the relevant swing points, making it easier to see the exact structure that triggered the signal. One line can be drawn on the main chart and another in the indicator pane for the comparison series.
🔸 Info Table (At a Glance)
A compact table can display the active symbols, correlation mode, total divergences stored, and the most recent signal type.
🔸 Alerts Included
Built-in alert conditions are provided for bullish SMT, bearish SMT, and any SMT event so you can automate notifications without editing the code.
🔸 Optional Comparison Candle Panel
If enabled, the indicator can plot the comparison symbol as candles in the indicator pane. This is useful for confirming whether the divergence is happening around major levels, consolidations, or impulsive legs on the secondary instrument.
🔹 Calculations
This section summarizes the core logic used by the script.
1. Data Synchronization (Comparison Symbol)
The comparison instrument is requested on the chart’s current timeframe so swing calculations are performed consistently:
=
request.security(compareSymbolInput, timeframe.period, )
This ensures pivots and swing times are derived from the same bar cadence as the primary chart.
2. Swing Detection via Confirmed Pivots
Swings are detected using pivot logic with user-defined left and right bars:
primaryPivotHigh = ta.pivothigh(high, pivotLeftBars, pivotRightBars)
primaryPivotLow = ta.pivotlow(low, pivotLeftBars, pivotRightBars)
Because pivots are confirmed only after the “right bars” have closed, the script stores each swing using an offset so the swing’s bar index and time reflect where the pivot actually occurred, not where it was confirmed.
3. Swing Storage and Retrieval
Both symbols maintain arrays of SwingPoint objects. Each new swing is pushed into the array, and older swings are dropped once the array exceeds the configured maximum. This makes the divergence engine predictable and prevents uncontrolled memory growth.
The script then retrieves the last and previous swing highs and lows (per symbol) to evaluate structure.
4. Matching Logic (Time Matched vs Independent)
When “Time Matched” is selected, the script searches the comparison swing array for a pivot that occurred at the exact same timestamp as the primary swing. When “Independent Swings” is selected, it simply uses the comparison symbol’s last two swings of the same type.
5. Bullish SMT Condition (LL vs HL)
A bullish SMT event is defined as:
Primary forms a lower low (last low < previous low)
Comparison forms a higher low (last low > previous low)
If inverse correlation is enabled, the comparison condition flips to maintain logical confirmation rules
The two primary swings must be within the configured bar distance window
Optional minimum percentage difference must be satisfied
A simple anti duplication rule prevents repeated triggers on the same structure
These checks are implemented directly in the bullish detection block.
6. Bearish SMT Condition (HH vs LH)
A bearish SMT event is defined as:
Primary forms a higher high (last high > previous high)
Comparison forms a lower high (last high < previous high)
Inverse correlation flips the comparison rule
Range checks, minimum difference filtering, and duplicate protection apply similarly
These checks are implemented in the bearish detection block.
7. Percentage Difference Filter
The optional “Min Price Diff (%)” filter measures the relative distance between the last two primary swing prices. This prevents very small structural changes from being treated as valid SMT signals.
priceDiffPerc = math.abs(lastSwing.price - prevSwing.price) / prevSwing.price * 100.0
The divergence condition is only allowed to trigger if this value exceeds the user defined threshold.
priceOk = priceDiffPerc >= minPriceDiff
This filter is especially useful on higher timeframes or during low volatility conditions, where micro structure noise can otherwise produce misleading signals.
8. Visualization and Output
When a divergence is confirmed, the script:
Stores the event in a divergence array (limited by “Max Divergences to Display”)
Draws a directional SMT label with a tooltip (optional)
Draws connecting lines using time based coordinates for clean alignment (optional)
It also updates an information table on the last bar only, and exposes alertconditions for automation workflows.
Support and ResistanceSupport & Resistance Zones
This indicator automatically identifies support and resistance zones by clustering confirmed pivot highs and lows into statistically valid price areas.
Instead of drawing single horizontal lines, it creates price zones whose width is dynamically controlled using ATR (Average True Range), allowing the zones to adapt to market volatility.
Core Logic
The indicator scans a user-defined number of historical bars and detects pivot highs and pivot lows using a configurable pivot strength.
Each new pivot is evaluated against previously detected zones:
A zone becomes visible only after receiving sufficient confirmation (minimum number of pivot touches).
This ensures that only structurally meaningful levels are drawn.
Zone Construction Rules
Zones are formed by grouping pivot points whose total price range remains within ATR range
Each zone expands dynamically as new pivots confirm it
Zones are drawn as rectangular areas, not lines
Zones extend to the right, remaining active until price structure changes
This approach avoids over-plotting and reduces noise commonly seen in traditional support/resistance tools.
Dynamic Zone Coloring
Zones automatically change color based on current price position:
Support Color → Price is above the zone
Resistance Color → Price is below the zone
Neutral (In-Zone) Color → Price is trading inside the zone
This makes it easy to visually assess market context without additional indicators.
Inputs Explained
Logic Settings
Bars to Apply
Number of historical bars scanned to detect pivots and construct zones.
Pivot Strength
Number of candles required on both sides of a pivot high/low for confirmation.
Min Pivot Confirmation
Minimum number of aligned pivots required before a zone is drawn.
Styling
Support, resistance, and in-zone colors
Zone fill transparency
Why This Approach
Uses price structure, not arbitrary levels
Adapts to market volatility via ATR
Filters out weak, single-touch levels
Works across all markets and timeframes
This indicator is designed to highlight areas of interest, not generate buy or sell signals.
It is best used in combination with trend, momentum, or volume-based tools.
Custom Session ORB - Extending Past Current CandleCustom Session ORB - Extending Past Current Candle
This indicator plots Opening Range Breakout (ORB) levels for one or two customizable trading sessions directly on your chart. It dynamically tracks the high, low, and midpoint of the defined session(s) and extends these levels beyond the session using a configurable offset.
Features:
Supports two custom sessions.
New York and Asia pre-saved.
Automatically tracks session High, Low, and Mid.
Option to extend ORB levels past the live candle.
Option to display only the most recent ORB for a clean chart.
Configurable line thickness, style, and label size.
Works in Eastern Standard Time (EST) without manual adjustment.
Settings:
Show Labels: Toggle to display ORB values on chart.
Label Font Size: Small, Normal, Large.
Mid Line Style: Solid, Dashed, or Dotted.
ORB Line Thickness: Set line thickness of ORB levels.
Extend Past Current Candle by N Bars: Controls how far the ORB extends visually.
Show Only Current ORB: Cleans chart by removing previous session ORB levels.
Enable Session 1 / 2: Toggle individual sessions on/off.
Session Time: Set the start and end times for each session (automatically in EST).
How It Works:
The indicator monitors the defined session time, records the high, low, and midpoint, and draws lines at those levels. When the session ends, the lines are extended by the specified offset for easy breakout visualization. Labels can optionally show the exact price levels.
AperonFx Pivot Points ATRThis indicator builds on classic pivot point methodology and enhances it with volatility-based ATR offsets to define adaptive support and resistance zones.
The pivot level is derived from the prior period’s price data, while the surrounding levels are calculated using the current day’s ATR to reflect prevailing market conditions.
Support and resistance are placed at incremental distances of 0.5, 1, 1.5 and 2 ATR away from the pivot, creating a structured price framework.
Users can adjust the pivot calculation method, reference timeframe, and visual presentation to suit their workflow.
AperonFx Pivot Points 1.1This indicator plots ATR-based pivot levels with a clean, institutional layout.
The central pivot (P) is calculated from the selected timeframe and price formula, while support and resistance levels are placed at equal distance steps above and below the pivot.
Users can choose between an automatic step based on ATR or a fixed price step for fully controlled, symmetric levels.
All levels are drawn as continuous segments that align precisely with the active pivot period.
Price annotations are displayed in a minimal, unobtrusive style and always match the exact level values.
The indicator is designed to remain consistent across chart timeframes without recalculation drift.
It is intended for traders who want clear, structured reference levels rather than reactive signals.
Global J-1 & W-1 Levels (Fixed Lines / Lignes Fixes)Description
This indicator automatically plots key price levels from the previous day (D-1) and the previous week (W-1). It is designed for Day Traders and Scalpers who need clear visual references without cluttering their chart with past history.
Unlike standard indicators that use plot() and create "step-like" lines, this script uses graphic objects (line.new) to display fixed, infinite horizontal lines, just as if you had drawn them manually.
Key Features:
D-1 Levels (Blue): Previous Day High (DR-1) and Low (DS-1).
W-1 Levels (Red): Previous Week High (WR-1) and Low (WS-1).
Clean Chart: Lines are displayed only for the current session. No historical clutter.
Readability: Dashed lines with level names and exact prices displayed on the right.
How to use it? These levels often act as institutional support and resistance. Watch for price reactions (bounces or breakouts) near these zones to confirm your trade entries.
Wiz ATRAverage True Range for given day based off past X amount of time periods. Best used by Trader Dante who is a ledge
ATR High and Low Offset from PriceAverage True Range based on last X time periods. Learned this from the master Trader Dante, but wanted to code my own ATR indicator for practice and I noticed his keeps moving throughout the day on BTC, so testing my own.
Smart Money Concept Change of Character Break of StructureSMC Structure
Visualizes Change of Character (CHoCH) and Break of Structure (BoS) - two fundamental Smart Money Concepts for identifying trend reversals and continuations.
This is the 1st version of an implementation of this concept.
It is NOT supposed to be used as a signal but a confirmation. Best use during NYSE hours.
Full Description
Overview
This indicator automatically detects and displays two core Smart Money Concepts (SMC) directly on your chart:
CHoCH (Change of Character) – The first structural break against the prevailing trend, signaling a potential reversal
BoS (Break of Structure) – A structural break in the direction of the current trend, confirming continuation
These concepts are essential building blocks of SMC trading methodology, helping traders identify where institutional players may be entering or exiting positions.
How It Works
The indicator uses pivot-based swing detection to identify significant highs and lows. When price breaks through these levels, it classifies the move as either a CHoCH or BoS based on the current trend context.
CHoCH (Change of Character)
Occurs when price breaks structure AGAINST the current trend
First warning sign that the trend may be reversing
Displayed as a solid horizontal line with "CHoCH" label
Green = Bullish reversal | Red = Bearish reversal
BoS (Break of Structure)
Occurs when price breaks structure IN THE DIRECTION of the current trend
Confirms that the existing trend remains intact
Displayed as a dashed horizontal line with "BoS" label
Teal = Bullish continuation | Maroon = Bearish continuation
Visual Example
Uptrend with BoS (continuation):
HH ◄── BoS (trend continues)
/
HL
/
HH
/
HL
Uptrend → CHoCH → Downtrend (reversal):
HH
/ \
HL \
LL ◄── CHoCH (trend reversal!)
Settings
Pivot Settings
Pivot Lookback: Number of bars used to identify swing highs/lows (default: 5). Higher values = fewer but more significant structure points.
Display Options
Show CHoCH: Toggle CHoCH visualization
Show BoS: Toggle BoS visualization
Show Swing Points: Display SH/SL labels at detected pivots
Extend Lines to Right: Extend structure lines into future bars
Show Info Table: Display current trend and last swing levels
Show Trend Background: Color the chart background based on trend direction
Colors
Fully customizable colors for all elements
How to Use
Identify the trend: Look at the sequence of CHoCH and BoS signals to understand market structure
Watch for CHoCH: A CHoCH signals potential reversal – wait for confirmation before trading against the previous trend
Trade with BoS: BoS confirms trend continuation – look for entries on pullbacks in the direction of the trend
Combine with other SMC concepts: Works great alongside Order Blocks, Fair Value Gaps, and liquidity concepts
Tips
Use higher pivot lookback values on higher timeframes for cleaner signals
A CHoCH doesn't guarantee reversal – it's the first warning sign, not confirmation
Multiple BoS signals in a row indicate a strong, healthy trend
Look for CHoCH occurring at key levels (support/resistance, order blocks) for higher probability setups
Feedback Welcome!
This is an open-source indicator and I'd love to hear your thoughts!
Please comment below if you have:
Feature requests or ideas for improvements
Bug reports or issues
Suggestions for additional SMC concepts to add
Your feedback helps make this indicator better for everyone. Happy trading! 🚀
Goldbach Timing Model This indicator is designed as a simple visual framework rather than a rigid signal system. It highlights time-based structure and key alignment zones to help identify when price behavior is more likely to be active or responsive. The logic is intentionally flexible, allowing the user to apply their own discretion instead of relying on strict conditions. Its primary value is visual clarity and context, not automatic entries or exits.
HMA Pivot Buy/Sell (only) + AlertsThis Pine Script is a lightweight indicator that plots only HMA-based pivot Buy/Sell signals and provides alert conditions for them.
What it does
Calculates a Hull Moving Average (HMA) using either:
a dynamic length based on the chart timeframe, or
a custom user-defined length.
Detects HMA pivot points (local turning points):
Buy signal when the HMA forms a local minimum (trend turns up).
Sell signal when the HMA forms a local maximum (trend turns down).
Optionally plots the HMA line and prints only the Buy/Sell markers on the chart (no extra arrows/emoji/labels from other systems).
Adds TradingView alerts for Buy, Sell, and combined Buy/Sell events.
Signal logic
Buy (HMA Pivot Low) triggers when:
HMA > HMA and HMA < HMA
Meaning: the HMA was falling, formed a bottom, and has started rising.
Sell (HMA Pivot High) triggers when:
HMA < HMA and HMA > HMA
Meaning: the HMA was rising, formed a top, and has started falling.
Inputs
Source: price source used to compute HMA (default: close).
Use Custom HMA Length: enables manual override.
Custom HMA Length: manual HMA period (default: 55).
Alerts: only on bar close:
If enabled, alerts fire only after the bar closes (confirmed signals).
If disabled, alerts can fire intrabar (faster but less stable).
Draw signal on pivot bar (offset -1):
If enabled, markers are drawn on the pivot bar (one bar back) using offset = -1.
If disabled, markers are drawn on the confirmation bar (no offset).
Show HMA line: toggles display of the HMA line.
Alerts available
BUY (HMA Pivot) — triggers on Buy signal.
SELL (HMA Pivot) — triggers on Sell signal.
BUY/SELL (HMA Pivot) — triggers on either Buy or Sell.
Each alert message includes ticker, timeframe, and close price via placeholders:
{{ticker}}, {{interval}}, {{close}}.
Multi-TF Fibonacci Pivot Points V4.5.3📊 MULTI-TIMEFRAME FIBONACCI PIVOT POINTS
Display Fibonacci-based pivot points from multiple timeframes simultaneously on any chart. Perfect for identifying key support/resistance levels, confluences, and high-probability trade zones.
═══════════════════════════════════════════════════════
✨ KEY FEATURES
🎯 MULTI-TIMEFRAME DISPLAY
• View pivots from up to 6 different timeframes at once
• 4HR, Daily, Weekly, Monthly, Quarterly, and Yearly support
• Automatic timeframe validation prevents invalid combinations
• Smart label placement reduces chart clutter
📈 FIBONACCI LEVELS
• S3: -0.618 (Deep support)
• S2: -0.382 (Intermediate support)
• S1: -0.236 (Shallow support)
• Pivot Point: 0.000 (Central pivot)
• R1: +0.236 (Shallow resistance)
• R2: +0.382 (Intermediate resistance)
• R3: +0.618 (Deep resistance)
• Optional additional Fibonacci levels available in settings
🎨 HIGHLY CUSTOMIZABLE
• Individual color control for each timeframe
• Show/hide specific levels (S3, S2, S1, P, R1, R2, R3)
• Adjustable line width and transparency
• Optional price labels
• Compact or detailed label formats
🔔 ALERT SYSTEM
• Long Signal: Price crosses above pivot point
• Short Signal: Price crosses below pivot point
• Customizable alert messages
• Works with webhooks for automated trading
═══════════════════════════════════════════════════════
💡 HOW TO USE
**CONFLUENCE TRADING:**
When multiple timeframe pivots align at the same price level, it creates a strong confluence zone. These areas often act as significant support/resistance.
Example:
• Daily R1, Weekly P, and Monthly S1 all near $90,000
• This creates a high-probability resistance zone
• Consider taking profits or shorting at this confluence
**TREND IDENTIFICATION:**
• Price above all pivots = Strong uptrend
• Price below all pivots = Strong downtrend
• Price between pivots = Range-bound or transitional
**SUPPORT/RESISTANCE:**
• Fibonacci levels act as dynamic support/resistance
• S1/R1: First line of support/resistance (shallow retracements)
• S2/R2: Intermediate zones (common reversal points)
• S3/R3: Deep retracements (high-probability bounce areas)
**ENTRY/EXIT STRATEGIES:**
• Buy at support levels (S1, S2, S3) in uptrends
• Sell at resistance levels (R1, R2, R3) in downtrends
• Use pivot point as dynamic stop loss or take profit target
• Combine with your preferred indicators for confirmation
═══════════════════════════════════════════════════════
🎓 PRACTICAL EXAMPLE: Confluence Zone Reversal
**Setup:**
• BTC in downtrend, approaching $84,000
• Daily S2, Weekly S1, and Monthly Pivot all converge at $84,000
• Strong 3-timeframe confluence = high-probability support zone
**Entry Signal:**
• Wait for price to test the $84,000 confluence level
• Look for reversal confirmation (reversal pattern, bullish engulfing, RSI divergence, volume spike etc)
• Enter long position above confluence at $84,100
**Risk Management:**
• Stop loss: $83,500 (below S2 support level – generally recommended to use same TF although for better R:R you could consider using a different TF support level)
• Initial target: $86,000 (Daily R1 resistance)
• Risk/Reward: ~$500 risk for $1,900 profit potential = 1:3.8 ratio
**Why It Works:**
When multiple timeframes agree on a support level, it creates strong buyer interest at that price zone. Professional traders and algorithms often place orders at these confluence areas. When the support holds, the reversal moves are typically swift and powerful as trapped short sellers cover positions and new buyers enter.
This same principle works in reverse for resistance confluences (shorting opportunities) and can be applied across any timeframe or asset class.
═══════════════════════════════════════════════════════
⚙️ SETTINGS GUIDE
**TIMEFRAME CONFIGURATION:**
• Enable/disable each timeframe independently
• Set 4HR, Daily, Weekly, Monthly, Quarterly, Yearly periods
• Warning system prevents invalid timeframe combinations
**LEVEL VISIBILITY:**
• Toggle individual Fibonacci levels on/off
• Hide levels you don't trade to reduce clutter
• Keep only the levels relevant to your strategy
• Enable optional additional Fibonacci levels if needed
**VISUAL CUSTOMIZATION:**
• Choose colours that match your charting style
• Adjust line width for visibility (1-3 recommended)
• Set transparency for background levels (20-40% typical)
• Enable/disable price labels based on preference
**ALERTS:**
• Set up alerts for pivot point crosses
• Receive notifications when price tests key levels
• Use webhook URLs for automated trade execution
• Customize alert messages for different scenarios
═══════════════════════════════════════════════════════
📚 UNDERSTANDING FIBONACCI PIVOTS
**What are Fibonacci Pivot Points?**
Traditional pivot points use simple averages (High + Low + Close) / 3. Fibonacci pivot points enhance this by applying Fibonacci ratios (0.236, 0.382, 0.618) to calculate support and resistance levels.
**Why Fibonacci Ratios?**
These ratios appear frequently in nature and financial markets:
• 0.236 (23.6%) - Shallow retracement
• 0.382 (38.2%) - Common retracement zone
• 0.618 (61.8%) - Golden ratio, deep retracement
Markets often respect these levels due to trader psychology and self-fulfilling prophecy.
**Multi-Timeframe Advantage:**
Higher timeframe pivots carry more weight:
• Yearly/Quarterly pivots: Major support/resistance (long-term positioning)
• Monthly pivots: Significant levels (swing trades)
• Weekly pivots: Intermediate zones (position trades)
• Daily pivots: Short-term levels (day trades)
• 4HR/Lower timeframes: Intraday precision (scalping)
When pivots from multiple timeframes align, the confluence creates stronger support/resistance that professional traders watch closely.
═══════════════════════════════════════════════════════
⚡ INTEGRATION WITH STRATEGY BUILDING
This indicator works seamlessly with strategy builders and backtesting tools. The alert system provides clean signals that can be used as entry/exit conditions.
These signals can be incorporated into automated strategies or used as confluence filters with your existing trading system.
**Compatible with:**
• TradingView's Strategy Tester
• Most strategy building tools
• Webhook-based automation platforms
• Custom Pine Script strategies
Simply reference the indicator's signals in your strategy logic or use the visual levels for manual discretionary trading.
⚠️ IMPORTANT NOTES
**Timeframe Rules:**
• Current chart timeframe must be LOWER than indicator timeframes
• Example: Can't display Daily pivots on Weekly chart
• Invalid combinations will show warning in label
• Solution: Switch to lower chart timeframe or adjust indicator settings
**Performance Considerations:**
• Displaying 6 timeframes with all levels = 42 lines on chart
• Disable unused timeframes to reduce visual clutter
• Hide levels you don't actively trade (e.g., keep only S1, P, R1)
• Use transparency to make background levels less prominent
**Alert Best Practices:**
• Test alerts on paper trading account first
• Understand alert fires when bar CLOSES (not on wick)
• Pivot point crosses generate signals, not individual S/R levels
• Combine with other confluence factors (don't trade alerts blindly)
═══════════════════════════════════════════════════════
📖 PRACTICE SUGGESTIONS
1. Observe how price respects pivot levels (especially HTF ones)
2. If available, use the Replay feature to identify how price reacts to different pivot levels (try to check in bullish, bearish and flat markets)
3. Use additional confluence for trades (previous S/R, momentum indicators etc)
4. Backtest your strategy before live trading
5. Keep a trading journal of pivot-based trades
6. Gradually add more timeframes as you gain experience
═══════════════════════════════════════════════════════
📈 BUILDING COMPLETE TRADING SYSTEMS
Multi-Timeframe Fibonacci Pivots excels at identifying high-probability price levels and confluence zones. For traders looking to develop complete trading strategies around these signals, the natural progression involves:
**1. Signal Identification** (This Indicator)
Identify key support/resistance levels and confluence zones across multiple timeframes
**2. Strategy Development**
Test and validate trading rules around these pivot levels using backtesting tools
**3. Trade Management**
Implement proper entry execution, exit management, position sizing, and risk controls
This indicator integrates seamlessly with strategy testing and trade management systems. For traders serious about building robust, professional-grade trading approaches, explore the additional indicators/strategies I will be publishing soon.
The goal is always the same: transform good trading ideas into consistently executable strategies with proper risk management.
═══════════════════════════════════════════════════════
🎯 QUICK START CHECKLIST
Getting started with MTF Fibonacci Pivots:
Add indicator to chart (lower timeframe than pivots you want to see)
Enable 1-2 timeframes initially (e.g., Daily + Weekly)
Customize colours to match your chart theme
Hide levels you don't trade (optional: keep only S1, P, R1)
Identify current confluence zones
Mark key levels you'll watch for the session/day/week
Set up alerts for pivot crosses (optional)
Practice identifying setups before taking real trades
═══════════════════════════════════════════════════════
🌟 ENJOY TRADING WITH MTF FIBONACCI PIVOTS!
Whether you're a day trader looking for intraday levels, a swing trader seeking major support/resistance zones, or a long-term investor identifying key price areas, Multi-Timeframe Fibonacci Pivots provides the levels you need at a glance.
Happy trading! 📈
═══════════════════════════════════════════════════════
🔐 RISK DISCLAIMER
This indicator is for educational
and informational purposes only. It does not constitute financial advice.
**Remember:**
• No indicator is 100% accurate
• Always use proper risk management (stop losses, position sizing)
• Past performance does not guarantee future results
• Combine with your own analysis and trading plan
• Never risk more than you can afford to lose
• Test thoroughly on paper trading before using real capital
Trading carries significant risk. Ensure you understand these risks before trading.
═══════════════════════════════════════════════════════
💬 FEEDBACK & SUPPORT
**Found a bug?** Please report via comments with:
• Chart timeframe, asset, and indicator settings
• Description of issue and expected behavior
**Feature requests?** I'm always looking to improve! Let me know:
• What additional functionality would help your trading?
• Which features do you use most/least?
• How can the indicator be more user-friendly?
**Success story?** Share how you're using MTF Fibonacci Pivots! Community feedback helps guide future development.
═══════════════════════════════════════════════════════
🙏 CREDITS & ACKNOWLEDGMENTS
**Original Concept:**
This indicator is based on the excellent "Fibonacci Extension / Retracement / Pivot Points" script by dgtrd. The original script provided a solid foundation for calculating Fibonacci-based pivot levels.
**Changes in This Version:**
• Multi-timeframe capability (display up to 6 timeframes simultaneously)
• Optional additional Fibonacci levels
• Enhanced customization (colors, widths, transparency per timeframe)
• Improved label system (compact/detailed formats, smart placement)
• Timeframe validation and warnings
• Optimized performance for multiple timeframes
**Attribution:**
Original script by dgtrd:
Enhancements and multi-timeframe implementation with the support of Al
If you find value in this indicator, please also check out dgtrd's original work and other excellent pivot point indicators in the TradingView community.
SmartManiacSmartManiac — Smart Money Liquidity & Sentiment Indicator
Overview
SmartManiac is a comprehensive Smart Money Concepts (SMC) indicator that combines liquidity structure analysis with volume delta sentiment detection. It automatically maps key liquidity levels, identifies Fair Value Gaps (FVGs) across multiple timeframes, and detects potential reversal points using a multi-factor scoring system based on volume delta, liquidations, and price action.
Features
Liquidity Structure Mapping
Previous Day/Week/Month High & Low (PDH/PDL, PWH/PWL, PMH/PML) — automatically detected and drawn with priority-based labeling
Buy-Side & Sell-Side Liquidity (BSL/SSL) — swing highs and lows that act as liquidity targets
Session High/Low — Asia, London, and New York session levels with customizable times
Smart level merging — nearby levels are consolidated using ATR-based tolerance to reduce clutter
Swept level tracking — lines change to dashed/dotted when price sweeps through them
Fair Value Gap (FVG) Zones
Multi-timeframe FVG detection: 5m, 15m, 1H, 4H, Daily, Weekly
Auto-filtering based on chart timeframe — prevents lower TF clutter on higher TF charts
Status tracking: Untouched → Touched → Half-filled → Fully filled
Sweep FVGs — special zones created when FVG forms immediately after a liquidity sweep
Sweep Imbalances
Detects FVGs that form right after liquidity sweeps
Shows pending zones in gray, changes to green (bullish setup) or red (bearish setup) when price returns to the zone
Helps identify potential reversal entries after stop hunts
Volume Delta & Sentiment Analysis
Aggregated volume from multiple exchanges for accurate delta calculation
Z-score based extreme detection for buying/selling pressure
Cumulative Volume Delta (CVD) tracking
Peak FOMO / Depression Signals
4-factor percentile scoring system:
Factor 1: Delta Z-score before reversal (buying/selling pressure buildup)
Factor 2: Volume spike + price reversal bar
Factor 3: Delta reversal confirmation
Factor 4: Liquidations spike (requires external data source)
Signals show as 🔥 (FOMO top) or 💎 (Depression bottom)
Size varies by strength (tiny = moderate, small = strong)
Requires prior price move + reversal bar confirmation to reduce false signals
Sweep Visualization Boxes
Visual representation of liquidations and delta at sweep points
Box length normalized by √(line_length) for fair comparison
Helps assess sweep "quality" — stronger sweeps may lead to stronger reversals
Sweep Confirmation Markers
After a sweep, watches for 3 confirmation factors within 5 bars:
Opposite candle color
Opposite-side liquidations
Opposite-side delta
Shows - marker when all 3 confirm
Risk State Background
Optional background coloring for Risk-Off (selling + long liqs) and Risk-On (buying + short liqs) states
Helps identify broader market sentiment regime
Debug Inspector
Moveable vertical line to inspect any bar's factor values
Useful for understanding why signals triggered or didn't trigger
How to Use
Liquidity Levels — Watch for price approaching PDH/PDL/PWH/PWL/PMH/PML and BSL/SSL levels. These are likely targets for stop hunts.
Sweep + FVG — After a sweep (level turns dashed), look for an FVG to form in the opposite direction. Gray sweep FVG turning green/red indicates potential entry zone.
Peak Signals — 🔥 appears at potential tops after strong rallies with extreme buying that reverses. 💎 appears at potential bottoms after drops with extreme selling that reverses. Hover over labels to see factor breakdown.
Confirmation Dots — Green - below price = bullish sweep confirmed. Red - above price = bearish sweep confirmed.
Settings
The indicator offers extensive customization:
Toggle each feature on/off independently
Customize colors and transparency for all elements
Adjust sensitivity thresholds for signals
Configure session times for your timezone
Set liquidations data source from external indicator
External Data
For Factor 4 (Liquidations), connect an external liquidations indicator:
Add a liquidations indicator to your chart (e.g., TradingView's native Liquidations indicator)
In SmartManiac settings, select the Long and Short liquidation plots as sources
Note: TradingView's native indicator has inverted labels — swap if needed
Notes
Best used on liquid markets with volume data (BTC, ETH, major forex pairs)
Higher timeframes (1H, 4H) tend to produce more reliable signals
Combine with your own analysis — no indicator is 100% accurate
Liquidations data significantly improves signal quality but is optional
Credits
Developed by @cybermediaboy, 2025. Methodology partially based on CryptoVolium's Smart Money approach.
Horizontal Dynamic Moving Averages [TheScalpingAnt]Overview
This indicator is a complete professional moving average framework designed for traders who want structured market insight, flexibility, and powerful visual clarity.
Instead of being limited to static moving averages, this tool gives you up to 10 independently configurable moving averages, full style control, forward-projected price lines, automatic labeling, and the freedom to build your own trend system exactly the way you trade.
This is not just a moving average indicator.
It is a market structure workstation.
Concepts
This tool is built around three core trading concepts:
Market Structure Visualization
Different moving averages represent short-term momentum, medium-term trend, and long-term bias. Seeing how they align instantly shows whether the market is trending, compressing, or reversing.
Precision and Control
Every MA can use any of the following calculation methods:
SMA — EMA — RMA — WMA — HMA — VWMA
This allows the trader to tailor the indicator to their trading system instead of being forced into one logic.
Clarity & Forward Guidance
Each moving average can be extended into the future with horizontal projections, allowing the trader to visualize reaction zones, support/resistance expectations, and confluence ahead of price.
Features
• Up to 10 fully independent moving averages
• Multiple calculation types (SMA / EMA / RMA / WMA / HMA / VWMA)
• Individual enable/disable control
• Adjustable length per MA
• Custom color per MA
• Individual line thickness and style
• Forward extension into future bars
• Optional on-price-scale value display
• Automatic price labels with length identification
• Extremely clean chart visualization
• Works on any market and timeframe
• Non-repainting
Every moving average becomes a strategic tool, not just a line.
Customization
This indicator is engineered to adapt to every trading style:
You Control:
• Which MAs are active
• Their length
• Their calculation method
• Their color
• Their thickness
• Their line style
• Whether values display on scale
• Forward extension distance
This makes the tool equally valuable for:
Scalpers – Day Traders – Swing Traders – Long-Term Investors.
Usage
Typical use cases include:
• Identifying trend direction
• Spotting pullbacks inside trends
• Recognizing trend shifts early
• Mapping dynamic support and resistance
• Aligning entries with trend bias
• Confirming breakout validity
• Detecting consolidation phases
Shorter MAs provide reaction signals
Mid-range MAs provide structural control
Higher MAs define long-term bias
Projected future lines allow traders to visually anticipate market reactions instead of reacting late.
Example Workflow
Example practical trading workflow:
1. Short-term MAs (e.g., 8 / 16 / 30) track entry conditions and momentum.
2. Mid-term MAs (50 / 100) define structural bias.
3. Long-term MAs (150 / 200 / 800 / 1500 / 3000) define macro trend.
4. If short-term averages remain above structural ones → trend continuation confidence.
5. If they compress and cross downward → structural weakness.
6. Extended forward bands mark dynamic areas where the market may react next.
Simple. Clear. Actionable.
Settings
Default design structure includes:
• Enable/Disable per MA
• Length defaults: 8 → 3000
• Full color customization
• Individual width selection
• Solid / Dashed / Dotted styles
• Price scale value toggle
• Forward extension bar length selector
Everything is designed to make the indicator powerful without cluttering the chart.
Conclusion
This indicator delivers:
✓ Professional-grade market structure visualization
✓ Absolute flexibility
✓ Clear and readable market information
✓ Better decision-making support
✓ Reduced uncertainty and guesswork
Whether you trade crypto, forex, indices, or stocks — this is a powerful tool to elevate your technical analysis.
Disclaimer
This indicator does not guarantee profits and is not financial advice. Trading involves risk. Users are fully responsible for their trading decisions.
Magical Lines (Dot-to-Dot)Automatically Support/Resistance as Magical Lines calculate from Daily ATR Range. This Indicator works with all Stocks/FnO/Index/Commodity.
BK AK-Ghost Ladder⚔️ BK AK-Ghost Ladder — Smart Money Gaps. True Support/Resistance. ⚔️
There are already some excellent FVG tools out there—built by traders who’ve put in real work studying imbalance, liquidity, and smart money behavior.
BK AK-Ghost Ladder is simply my version of that idea: my attempt to take what I learned from those great frameworks and push it further into volume, structure, lifecycle, and accountability—so every zone is treated as a living, graded object, not just a static box on a chart.
Why “Ghost Ladder”? Because the real market is full of invisible rungs—thin pockets of liquidity, imbalance steps, and defended boundaries that price climbs and falls through like a ladder you can’t see until it matters. This tool is built to reveal those rungs before you get punished by them.
“AK” in the name is not branding—it’s honor. It belongs to my mentor A.K., whose standard of discipline and clarity sits behind every decision in this tool. Above that, all glory and gratitude to Gd—the real source of any wisdom, edge, or endurance we have in this game.
🧠 What BK AK-Ghost Ladder Actually Does
This is a full institutional FVG/SR system, not a paintbrush. It:
Detects and manages bullish & bearish FVG zones using ATR/percent filters and aging logic
Assigns a 0–100 institutional strength score and 1–5★ rating to every zone
Builds a per-zone lower-timeframe volume profile with POC, volume delta, and optional volume text
Tracks historical touches, breaks, role reversals, merging, clustering, and divergence at the zone
Runs per-zone backtest stats and feeds that into an adaptive/ML-style confidence weight
Compresses the whole environment into a real-time Info Table: bias, market position, nearest S/R, risk, session
Fires alerts only when something actually matters: strong FVGs, magnetic pull, divergence at a level
If price is the map, this is the layer that tells you which levels are real and which are noise.
🧱 Core Engine — Institutional Zone Logic
Smart FVG Detection
Clean 3-bar gap logic for bullish & bearish FVGs
ATR or % based minimum gap size + optional distance filter from price
Zone aging with max life in bars and optional “reset on touch”
Overlap & proximity control:
Prevent overlapping zones
Enforce minimum bar spacing
Or keep only the strongest zone in a cluster
Institutional Strength & Rating
Each zone gets a score (0–100) + star rating (1–5★) based on:
Volume vs average (with optional lower timeframe split)
Gap size vs ATR
Pivot confluence
Historical meaningful touches
Role reversal (support ↔ resistance)
MTF FVG alignment
Session weighting (Asian / London / NY / overlaps)
Order block overlap & imbalance behavior
VWAP proximity/extremes
Fib level alignment
Delta divergence
Zone clustering & consolidation
Adaptive “performance weight” from historical reactions
Bad zones don’t just look weaker—they literally get filtered out when you enable minimum star / institutional filters.
📊 In-Zone Volume & Profile Intelligence
Each zone can be backed by lower-timeframe volume:
Per-zone volume histogram inside the gap
POC line at the most traded price in that zone
Optional total volume label
POC line color shifts with volume delta (buy vs sell pressure)
Additional bull/bear volume bars alongside the zone and/or numeric volume text inside the box
You’re not just staring at a gap—you’re seeing the liquidity pocket inside the gap.
🎯 Structure, Confluence & Role Reversal
The engine includes deep structural context:
Pivots: stored swing highs/lows for S/R confluence
MTF FVG Confluence: two extra timeframes for higher-timeframe alignment
Fibonacci Levels: auto-mapped 0.236 / 0.382 / 0.5 / 0.618 / 0.786 with optional lines & labels
Order Blocks & Imbalance: engulfing OB detection + volume/imbalance filters
VWAP Intelligence: VWAP proximity/extreme bonuses, optional short-form plotting
Delta Divergence: volume-based confirmation flags for zones under real internal pressure
Smart S/R Positioning & Role Flip
Hide “wrong side” zones or auto-flip roles when broken & retested
Track broken zones for N bars, then retire them
Mark role reversals with badges and strength bonuses
Support/resistance is treated like behavior, not just lines.
🤖 Adaptive Learning & Backtesting
Each zone is monitored when price touches it:
Checks if price respects the zone and moves X points away (success)
Or violates beyond failure threshold (failure)
Tracks successes, failures, and win rate per zone
Feeds a confidence score into an adaptive weight so consistently performing zones matter more
Zones that meet the bar get ML/🤖 marking when enabled
The script doesn’t just say “this looks strong”—it tracks how it actually behaved.
📋 Info Table & Sessions — On-Chart War Room
On the latest bar, an Info Table summarizes:
Zone count (bull vs bear)
Market position (NEAR SUPPORT / NEAR RESISTANCE / ABOVE RESISTANCE / BELOW SUPPORT / NEUTRAL)
Nearest S/R levels
Trade bias (BULLISH / BEARISH / NEUTRAL)
Active session (ASIAN / LONDON / NY / OVERLAP / OFF)
Risk level (LOW / MED / HIGH)
Sessions are coded in EST with multipliers so you can weight London/NY more heavily than Asia if that matches your playbook.
Hover the table for a strategy tooltip: live market posture, suggested behavior near the zones, and context around the current environment.
⚠ Divergence & Alerts
Real-time RSI/OBV/ADX divergence detection at the zone
Flexible visual modes: border, icon, color change, or combinations
Alerts included:
Magnetic Zone Pull (price entering ATR-based “field” of a strong zone)
Strong Bullish FVG
Strong Bearish FVG
Divergence at Zone
Let the chart call you when a real decision point appears, instead of forcing you to stare all day.
🕹 How to Use BK AK-Ghost Ladder
1️⃣ Build Bias With Structure
Use the Info Table, star ratings, and where the 4–5★ zones cluster relative to price to decide which side of the tape you’re allowed to trade on.
2️⃣ Only Trade From Strong, Aligned Zones
Focus on 4–5★ zones with confluence (pivots, Fib, OB, VWAP, clustering).
Use the zone body/wick region as your execution area, not some random mid-air candle.
3️⃣ Treat Role Reversal & Clusters as Campaign Nodes
When a strong zone breaks, flips role, and collects touches, that’s campaign territory—not scalp noise.
4️⃣ Use Divergence/Delta as a Brake, Not a Toy
If divergence lights up at your level, respect it: size down, wait for confirmation, or stand down.
5️⃣ Let the Engine Filter Junk For You
Tune volMultiplier, star thresholds, session multipliers, distance filters, and min star rating to match your timeframe and instrument.
This script’s job is to remove your excuse for taking low-quality trades.
📜 Boundaries & Wisdom
King Solomon wrote:
“Do not remove the ancient boundary stone that your fathers have set.”
This tool is built around that idea. It maps where the real boundaries live—where smart money defends, attacks, traps, and reverses.
It will not give you discipline. It will simply remove the illusion that “you didn’t know the level was there.”
⚔️ BK AK-Ghost Ladder — Map the Smart Money Gaps. Trade Only the Real Levels.
May Gd bless your vision, your patience, and every decision you make at the edge. 🙏






















