PivotBoss Oscillator (PBOsc)PivotBoss Oscillator (PBOsc) – Description
The PivotBoss Oscillator (PBOsc) is a momentum-based indicator derived from the PivotBoss PEMA Method, designed to identify market bias, trend strength, and potential reversals across all timeframes and instruments.
Unlike traditional oscillators, PBOsc measures the differential among three pivot-based EMAs (fast, medium, and slow) relative to the pivot point (PP) of each bar, allowing it to self-adjust dynamically with current market volatility.
Calculation Logic
Pivot Point (PP):
𝑃
𝑃
=
(
𝐻
𝑖
𝑔
ℎ
+
𝐿
𝑜
𝑤
+
𝐶
𝑙
𝑜
𝑠
𝑒
)
/
3
PP=(High+Low+Close)/3
Pivot-Based EMAs:
Fast PEMA = EMA(PP, fast length)
Medium PEMA = EMA(PP, medium length)
Slow PEMA = EMA(PP, slow length)
Differentials:
Diff1 = Fast PEMA − Slow PEMA
Diff2 = Medium PEMA − Slow PEMA
Diff3 = Fast PEMA − Medium PEMA
Oscillator Value:
𝑃
𝐵
𝑂
𝑠
𝑐
=
(
𝐷
𝑖
𝑓
𝑓
1
+
𝐷
𝑖
𝑓
𝑓
2
+
𝐷
𝑖
𝑓
𝑓
3
)
/
𝑃
𝑃
PBOsc=(Diff1+Diff2+Diff3)/PP
Interpretation
Above Zero Line (0): Bullish bias; momentum favors the upside.
Below Zero Line (0): Bearish bias; momentum favors the downside.
Advancing Bars (Green): PBOsc rising → Strengthening trend or positive momentum.
Declining Bars (Red): PBOsc falling → Weakening trend or negative momentum.
Analytical Uses
Change of Bias: Detects short-term shifts in market sentiment.
Trending Markets: Measures pullbacks or continuations within ongoing trends.
Divergence: Divergence between price and PBOsc can signal potential reversals.
Default Settings
Default: (8, 13, 21)
Alternate Presets: (5, 8, 13), (13, 21, 34), (21, 34, 55)
Forecasting
Bitcoin Gold Fair Value Model | FREEBitcoin Gold Fair Value Model | FREE
This script presents a quantitative model that explores the historical relationship between Bitcoin (BTCUSD) and Gold (TVC:GOLD).
It estimates Bitcoin’s fair value projection based on the price of gold, using a rolling regression model calculated over a user-defined lookback period (default: 1000 days).
📘 How It Works
The model fits a simple linear regression of Bitcoin’s daily close price versus Gold’s daily close price.
From this relationship, it computes a projected Bitcoin price based on today’s gold value, plotted forward by a chosen number of days (default: 65).
Confidence ranges (±1 standard deviation and 95% interval) help visualize the uncertainty around the projection.
A statistical panel displays the projected price, range estimates, and R² value, indicating the strength of correlation between the two assets.
⚙️ Features
Rolling regression using historical BTC and Gold data.
Forward fair-value projection line (customizable projection period).
1σ (standard deviation) and 95% confidence bands.
On-chart statistical summary with current model values.
Real-time updates when new daily data becomes available.
📊 How to Use
Recommended for use on the daily timeframe with the INDEX:BTCUSD symbol.
The model provides a statistical estimate of Bitcoin’s price relative to gold trends, not a trading signal.
The R² value can be used to assess the current strength of correlation - higher R² suggests a more stable relationship, while lower values indicate weaker or changing dynamics.
⚠️ Important Notes
This indicator is intended for educational and analytical purposes only.
It does not predict prices or provide financial advice.
Relationships between assets can and do change over time.
Always perform your own research and use additional tools for confirmation.
💸 Monetary Momentum Oscillator (MMO)Monetary Momentum Oscillator (MMO)
The Monetary Momentum Oscillator (MMO) measures the rate of change in the money supply (like M2, Fed Balance Sheet, or similar macro series) and applies a momentum-based RSI calculation to visualize liquidity acceleration and deceleration.
💡 Purpose:
MMO is designed for macro-level analysis — it identifies when monetary expansion is overheating (potential inflation or risk-on conditions) and when contraction is cooling off (liquidity tightening or deflationary stress).
📊 How It Works:
Calculates the percentage change of the selected data source over a chosen lookback period.
Applies an RSI transformation to visualize momentum extremes.
Overlays signal smoothing and highlights overheat/cooldown zones.
🔍 Interpretation:
Above 70 → Liquidity acceleration / overheating (potential inflationary impulse).
Below 30 → Liquidity deceleration / contraction (risk-off, tightening).
Crossovers → Momentum shifts that often precede macro trend reversals in risk assets.
⚙️ Best Used On:
Macroeconomic series such as M2SL, M2V, WALCL, or custom liquidity indexes.
Long-term charts (weekly or monthly) for detecting major monetary regime transitions.
🧩 Core Idea:
Liquidity is the real market engine — this oscillator quantifies its pulse.
ORB Multi-Range (5,10,15 min plain)Simple, accurate ORB lines for 5, 10, and 15-minute opening ranges — no clutter, just clean breakout levels.
YM & NQ Directional Strength PanelA real-time momentum visualization tool for tracking directional strength across three major U.S. equity index futures (YM, NQ, ES). The indicator displays RSI-based momentum readings for each contract using a color-coded histogram that transitions from bright green (bullish, above 50) to bright red (bearish, below 50).
Live momentum tracking for Dow (YM), Nasdaq (NQ), and S&P 500 (ES) micro contracts
Customizable moving average types (ALMA, EMA, SuperSmoother) with adjustable parameters
Visual confirmation of multi-index alignment - quickly spot when all three indices agree on direction
Dynamic color gradient showing overbought (top) and oversold (bottom) zones
Ideal for scalpers and day traders who need quick confirmation of market directional bias across multiple indices without cluttering their charts.
Darvas Box with alertsTitle: Darvas Box with Breakout Signals
This indicator implements the legendary Darvas Box trading strategy developed by Nicolas What is the Darvas Box?
The Darvas Box is a momentum-based trading method that identifies consolidation zones by drawing boxes around price ranges. When price breaks out of these boxes, it often signals the beginning of a new trend.
Features:
Automatic Darvas Box detection and drawing based on customizable box length parameter
Dynamic box coloring (Green when price is above, Red when below, Yellow when inside)
Visual breakout signalsAdjust the "Box Length" parameter to match your trading timeframe (default: 5)
Wait for a Darvas Box to form (consolidation period)
Look for breakout signals (triangles) indicating potential trading opportunities
Set up alerts to be notified when breakouts occur
Use the box levels as potential support/resistance zones
Digital RPM HUD — 4 Feeds + Confidence + Timeline (v3)🏎️ Digital RPM HUD — 4 Feeds + Confidence + Timeline (v3)
A performance-style trading dashboard for momentum-driven traders.
The Digital RPM HUD gives you an instant visual readout of market “engine speed” — combining four customizable data feeds (Trend, Momentum, Volume, Volatility) into a single confidence score (0–100) and a color-coded timeline of regime changes.
Think of it as a racing-inspired control panel: you only “hit the throttle” when confidence is high and all systems agree.
🔧 Key Features
4 Data Feeds – assign your own logic (EMA, RSI, RVOL, ATR, etc.).
Confidence Meter – blends the four feeds into one smooth 0–100 reading.
Timeline Strip – shows recent bullish / bearish / neutral states at a glance.
Visual Trade Cues – optional on-chart LONG / SHORT / EXIT markers.
Fully Customizable – thresholds, weights, smoothing, colors, layout.
HUD Overlay – clean, minimal, and adjustable to any corner of your chart.
💡 How to Use
Configure each feed to reflect your preferred signals (e.g., trend EMA 200, momentum RSI 14, volume RVOL 20, volatility ATR 14).
Watch the Confidence gauge:
✅ Above Bull Threshold → Market acceleration / long bias.
❌ Below Bear Threshold → Momentum loss / short bias.
⚪ Between thresholds → Neutral zone; stay patient.
Use the Timeline to confirm trend consistency — more green = bullish regime, more red = bearish.
⚙️ Recommended Setups
Scalping: Trend EMA 50 + RSI 7 + RVOL 10 + ATR 7 → Fast response.
Intraday: EMA 200 + RSI 14 + RVOL 20 + ATR 14 → Balanced signal.
Swing: Multi-TF Trend + MACD + RVOL + ATR → Smooth and steady.
⚠️ Disclaimer
This script is not a trading strategy and does not execute trades.
All signals are visual aids — always confirm with your own analysis and risk management.
Rotation Flow Model v6 (BTC → ETH → ALTS) Ghost 2Confirm the flows after massive dip to confirm entry points
Bitcoin Halving Cycle Strategy ProBitcoin Halving Cycle Strategy Pro - Advanced Market Cycle Analysis Tool
This professional indicator analyzes Bitcoin's 4-year halving cycles using precise mathematical calculations. It identifies bull and bear market phases based on 500 days before and 560 days after each halving event, providing traders with data-driven market cycle insights.
Key Features:
• Automatic Bull/Bear Market Zone Detection with color-coded areas
• Historical Halving Analysis (2012-2028) with future projections
• Live Performance Tracking during bull phases (returns, max drawdown)
• Customizable cycle parameters (days before/after halving)
• Interactive info table showing current cycle phase and metrics
• Visual timeline markers for halving dates and cycle boundaries
Perfect for long-term Bitcoin investors, cycle analysts, and traders who want to understand market psychology and timing based on historical halving patterns. Uses proven 1060-day cycle theory backed by empirical data.
GLOBAL LIQUIDITY PROXY, G5 Total Liquidity (CBBS + M2) - USDG5 Total Liquidity (CBBS + M2) - USD
G5 (US, CN, EU, JP, GB)
Somma Balance Sheet Central Banks e M2 convertiti in USD
Devil Marks - Multi TimeframeA handy completely new script that shows Devil Marks for several time frames on the current time frame.
Devil Marks are where candles have no wick at one end of the candlestick. These levels are seen as areas that price needs to go back to at some point to re-balance the imbalance. These levels can add confluence to a trade idea.
A table is included that shows the closest devil mark for each time frame.
Devil Marks should show until that level is mitigated by price trading at that level.
369 Candle Highlighter - Customizable. [V1]The final 3/6/9 Candle Highlighter is a TradingView indicator that scans each candle’s time in a user-selected timezone, calculates the sum of all digits in the hour and minute, reduces that sum to a single digit, and highlights the candle in a chosen color with customizable transparency whenever the result equals 3, 6, or 9. Users can select their timezone, pick the highlight color, adjust transparency, enable optional tiny wicks above or below the candle, turn on alerts with custom messages for each number, and activate a debug mode that shows the reduced digit and candle time. This ensures that only the correctly calculated 3/6/9 candles are visually marked on the chart while allowing full customization for aesthetics, performance, and alerting preferences.
Zay Gwet AlertEMA 9, VWAP and ORB 15 minutes alert in Burmese. When the market across the EMA 9 will give alert to buy or sell. And when the market across the VWAP and ORB 15 will alert as well. Especially for Burmese community as it is in Burmese language.
Nifty vs Nifty Fut Premium indicator This indicator compares Nifty Spot and Nifty Futures prices in real-time, displaying the premium (or discount) between them at the top of the pane.
Trading applications:
Arbitrage opportunities: When the premium becomes unusually high or low compared to fair value (based on cost of carry), traders can exploit the mispricing through cash-futures arbitrage
Market sentiment: A rising premium often indicates bullish sentiment as traders are willing to pay more for futures, while a declining or negative premium suggests bearish sentiment
Rollover strategy: Near expiry, monitoring the premium helps traders decide optimal timing for rolling positions from current month to next month contracts
Risk assessment: Sudden spikes in premium can signal increased demand for leveraged long positions, potentially indicating overbought conditions or strong momentum
ADAM Projection - Efficiency Ratio Adaptive)Overview
The ADAM Projection is a visualization of how a price path might extend from its recent motion, expressed as a continuation (trend reflection) or anti-trend (mean reversion) pattern. This indicator expands upon Jim Sloman’s original ADAM projection—introduced in “The Adam Theory of Markets or What Matters Is Profit” (1983)—by adding a modern quantitative framework for Efficiency Ratio (ER) weighting, time-scaled path normalization, and smooth blending between continuation and anti-trend projections.
What Is the ADAM Theory?
Jim Sloman’s original ADAM projection was designed to model pure trend continuation. He proposed that every market motion could be mirrored around a central anchor price (the “Adam line”), effectively reflecting past price movements forward in time to visualize what a continuation of the same geometric path would look like. This reflection concept captured the idea that market structure exhibits self-similarity and that price trends often extend symmetrically beyond recent pivots.
How This Script Extends It
This version generalizes Sloman’s concept by introducing an adjustable blend between continuation (reflection) and anti-trend (forward paste) behavior, weighted by an adaptive ER domain.
Anchor Axis
The reflection axis (anchorPrice) can be Close, HL2, HLC3, or OHLC4.
The projection is drawn forward from this anchor for a user-defined horizon (len bars).
Dual Paths
Continuation (Reflection): Mirrors historical closes across the anchor.
Anti-trend (Forward Paste): Extends historical closes directly forward without inversion.
Efficiency Ratio (ER)
The Efficiency Ratio measures how directional recent price movement has been: ER = |Net Change| / Σ|Δi|
Values near +1 indicate strong directionality (favoring continuation); values near 0 indicate noise or consolidation (favoring anti-trend behavior).
Signed ER Normalization
ER values are mapped into a user-defined domain between erMin and erMax, with:
erSharp (γ) controlling the steepness of the blend curve
erFloor providing stability when ER ≈ 0
beta (β) weighting volatility across time (β = 0.5 approximates √time scaling)
Blended Projection
Each projected point is a weighted combination of the two paths: y_proj = (1 − w) * y_fade + w * y_cont
The blend factor w is derived from the normalized ER domain and gamma shaping, producing a smooth morph between the anti-trend and continuation geometries.
Visualization
The teal projection line shows the dynamically blended continuation/anti-trend forecast for the next len bars.
The gray anchor line marks the reflection axis.
Each segment adapts in real time based on ER magnitude and recent path structure.
Key Parameters
Core: len, anchorPrice, lineThin — projection horizon and appearance
Lines: showProj, colProj — show or recolor projection
ER Domain: erMin, erMax, erSharp, erFloor, beta — control domain scaling, shaping, and time weighting
Practical Use
High ER values emphasize continuation (trend-following behavior).
Low or negative ER values emphasize fading or mean reversion.
The projection helps visualize whether recent structure supports trend persistence or weakening.
Interpretation
The ADAM Projection is not a predictive indicator but a geometric tool for studying market symmetry and efficiency. It provides a structured way to visualize how recent movements would look if extended forward under both continuation and anti-trend assumptions. This blends Sloman’s original reflection concept with modern ER-based adaptivity.
Summary
Origin: Jim Sloman (1983) — trend continuation via reflection symmetry.
Extension: Adds ER-driven blending to model both continuation and anti-trend regimes.
Concept: Price reflection vs. direct forward extension.
Purpose: Study of geometric price symmetry and efficiency, not a trade signal.
Machine Learning Price Predictor: Ridge AR [Bitwardex]🔹Machine Learning Price Predictor: Ridge AR is a research-oriented indicator demonstrating the use of Regularized AutoRegression (Ridge AR) for short-term price forecasting.
The model combines autoregressive structure with Ridge regularization , providing stability under noisy or volatile market conditions.
The latest version introduces Bull and Bear signals , visually representing the current momentum phase and model direction directly on the chart.
Unlike traditional linear regression, Ridge AR minimizes overfitting, stabilizes coefficient dynamics, and enhances predictive consistency in correlated datasets.
The script plots:
Fit Line — in-sample fitted data;
Forecast Line — out-of-sample projection;
Trend Segments — color-coded bullish/bearish sections;
Bull/Bear Labels 🐂🐻 — dynamic visual signals showing directional bias.
Designed for researchers, students, and developers, this tool helps explore regularized time-series forecasting in Pine Script™.
🧩 Ridge AR Settings
Training Window — number of bars used for model training;
Forecast Horizon — forecast length (bars ahead);
AR Order — number of lags used as features;
Ridge Strength (λ) — regularization coefficient;
Damping Factor — exponential trend decay rate;
Trend Length — period for trend/volatility estimation;
Momentum Weight — strength of the recent move;
Mean Reversion — pullback intensity toward the mean.
🧮 Data Processing
Prefilter:
None — raw close price;
EMA — exponential smoothing;
SuperSmoother — Ehlers filter for noise reduction.
EMA Length, SuperSmoother Length — smoothing parameters.
🖥️ Display Settings
Update Mode:
Lock — static model;
Update Once Reached — rebuild after forecast horizon;
Continuous — update every bar.
Forecast Color — projection line color;
Bullish/Bearish Colors — colors for trend segments.
🐂🐻 Bull/Bear Signal System
The Bull/Bear Signal System adds directional visual cues to highlight local momentum shifts and model-based trend confirmation.
Bull (🐂) — appears when upward momentum is confirmed (momentum > 0) .
Displayed below the bar, colored with Bullish Color.
Bear (🐻) — appears when downward momentum is dominant (momentum < 0) .
Displayed above the bar, colored with Bearish Color.
Signals are generated during model recalculations or when the directional bias changes in Continuous mode.
These visual markers are analytical aids , not trading triggers.
🧠 Core Algorithmic Components
Regularized AutoRegression (Ridge AR):
Solves: (X′X+λI)−1X′y
to derive stable regression coefficients.
Matrix and Pseudoinverse Operations — implemented natively in Pine Script™.
Prefiltering (EMA / Ehlers SuperSmoother) — stabilizes noisy data.
Forecast Dynamics — integrates damping, momentum, and mean reversion.
Trend Visualization — color-coded bullish/bearish line segments.
Bull/Bear Signal Engine — visualizes real-time impulse direction.
📊 Applications
Academic and educational purposes;
Demonstration of Ridge Regression and AR models;
Analysis of bull/bear market phase transitions;
Visualization of time-series dependencies.
⚠️ Disclaimer
This script is provided for educational and research purposes only.
It does not provide trading or investment advice.
The author assumes no liability for financial losses resulting from its use.
Use responsibly and at your own risk.
Multi Brownian Forecast📊 Multi Brownian Forecast (Time-Adaptive, Probabilistic)
This indicator uses a sophisticated Geometric Brownian Motion (GBM) Monte Carlo simulation to project future price paths. It adapts to any chart timeframe and provides quantitative, multi-period probability signals.
---
🧠 Core Mathematical Methodology
The model relies on GBM, which is a continuous-time stochastic process that models asset prices.
1. Historical Analysis (Drift & Volatility):
* The script first calculates Logarithmic Returns over a user-defined Historical Lookback (Hours) .
* Drift ($\mu$): Computed as the average of the log returns.
* Volatility ($\sigma$): Computed as the standard deviation of the log returns.
* These values are then time-adapted to an hourly step, compensating for the chart's current timeframe (e.g., 5-minute, 1-hour).
2. Monte Carlo Simulation:
* It runs a specified Number of Simulations (e.g., 1000).
* For each simulation, the price is stepped forward hourly using the GBM formula, which incorporates the calculated drift and a random shock drawn from a normal distribution (generated via the Box-Muller transform ).
---
✨ Key Features
Probabilistic Quartile Forecast: Plots a dynamic "cone" of probability on the chart. It shows key price percentiles (Q1, Q2/Median, Q3, and Q4/Outer Bound) at the forecast's expiration, visualizing the expected range of price outcomes based on the simulations.
Multi-Period Probability Signals: This is the core signal feature. Users can define multiple, independent forecast periods (e.g., 4h, 16h, 48h) in a comma-separated list.
* For each period, a Probability Up and Probability Down is calculated based on hitting a custom Target Price Change (%) (e.g., 2%) at a certain confidence level given a simulation over the historical backlook.
* The probabilities are displayed in a chart table. The cell text turns white if the calculated probability exceeds the user-defined Signal Confidence (%) .
Conditional Fibonacci Retracement: Optionally displays a Fibonacci Retracement on the chart. This feature is only activated when one of the multi-period signals reaches its minimum confidence threshold, providing a contextual technical level when a probabilistic edge is found.
Magic Volume - Projected [MW]Magic Volume – Projected
This lower-pane volume tool estimates the full-bar volume before the bar closes by measuring the current bar’s elapsed time and the rate of incoming volume. It then contrasts that “expected volume” against typical activity and recent momentum to spotlight potential burst conditions (breakout/acceleration), color-codes the live volume stream, and annotates when the projected surge is likely bullish or bearish based on bar structure and recent highs/lows.
Settings
Projected / Expected Volume
Moving Average: EMA length used for volume baseline comparisons. (Default: 14)
Minimum Volume: Hard floor the bar’s raw volume must exceed to qualify as notable. (Default: 10,000)
Consecutive Volume Above 14 EMA: Count required for “sustained” high-volume context. (Default: 3)
Stochastic Volume Burst
Stochastic Length: Window for the Stochastic calculation on volume. (Default: 8)
Smoothing: Smoothing applied to Stochastic volume and its signal. (Default: 3)
Stochastic Volume Breakout Threshold: Level above which Stochastic volume is considered a breakout. (Default: 20)
Volume Bar Increase Amount: Multiplier the current bar’s volume must exceed vs. prior bar to be considered a “burst.” (Default: 1.618)
Plotted Items
Expected Volume (columns): Magenta columns projecting the full-bar volume from intrabar rate. Turns lime when a high expected-volume condition aligns with bullish bar structure; turns red under analogous bearish conditions.
Actual Volume (columns): Live volume columns, color-coded by state:
• Blue = baseline;
• Orange = “burst” (volume rising fast above prior × factor and above baseline);
• Yellow = “burst at breakout” (burst + Stochastic volume breakout);
• Light Blue = Stochastic breakout only.
Volume EMA (line): Yellow EMA for baseline comparison (default 14).
Calculations
Compute elapsed time in the current bar (ms → seconds) and convert the current bar’s accumulated volume into a rate (volume per second).
Project full-bar Expected Volume = (volume so far / seconds elapsed) × bar-seconds.
Compute Volume EMA (default 14) for baseline; derive Stochastic(volume, length) and smoothed signal for momentum.
Define “Burst” conditions:
• Volume > prior volume × Volume Bar Increase Amount;
• Volume > Minimum Volume;
• Volume > Volume EMA;
• Stochastic(volume) rising and/or above threshold.
Classify “Burst at Breakout” when Burst aligns with Stochastic crossover above the Breakout Threshold.
Classify Bullish/Bearish Expected Volume: if Expected Volume is ≥ 1.618 × prior bar volume and prior volume > Volume EMA, then:
• Bullish if bar is green with a rising low;
• Bearish if bar is red with a falling high.
Color-map actual volume columns by state; overlay Expected Volume columns (magenta) and paint conditional overlays (lime/red) when directional context is detected.
How to Use
Spot the Surge Early
When Expected Volume spikes well above typical (and especially above ~1.618× the prior bar) before the bar closes, it often precedes a volatile move. Use this to prepare entries with tight, structure-based risk (e.g., just beyond the current bar’s wick) and asymmetric targets.
Confirm with Momentum
Yellow/orange volume columns indicate burst/breakout behavior in the live tape. When this aligns with a lime (bullish) or red (bearish) Expected Volume column, the probability of follow-through improves—particularly if aligned with prevailing trend or key levels.
Context Matters
Combine with your preferred S/R or structure tools (e.g., order blocks, channels, VWAP) to avoid chasing into obvious supply/demand. The projected surge can mark both continuations and sharp reversals depending on location and broader context.
Alerts
High Expected Volume – Bullish: When projected volume surges and the price action meets bullish conditions (green body with rising low).
High Expected Volume – Bearish: When projected volume surges and the price action meets bearish conditions (red body with falling high).
Other Usage Notes and Limitations
Projected volume depends on intrabar pace; abrupt pauses/flushes can change the projection quickly, especially on very small timeframes.
Minimum Volume and EMA baselines help filter thin markets; adjust upward on illiquid symbols to reduce noise.
A rising projection does not pick direction on its own—directional coloring (lime/red) requires price-action confirmation; otherwise treat magenta projections as “heads-up” only.
As with any single indicator, use within a broader plan (risk management, structure, confluence) to mitigate false positives and improve selectivity.
Inputs (Quick Reference)
Moving Average (int, default 14)
Stochastic Length (int, default 8)
Smoothing (int, default 3)
Stochastic Volume Breakout Threshold (int, default 20)
Volume Bar Increase Amount (float, default 1.618)
Minimum Volume (int, default 10,000)
Consecutive Volume Above 14 EMA (int, default 3)
FVG Scanner ProFVG Scanner Pro — Smart Fair Value Gap Detector (with HTF context & proximity alerts)
What it does
FVG Scanner Pro automatically finds Fair Value Gaps (FVGs) on your current chart and (optionally) on a higher timeframe (HTF), draws them as color-coded zones, and notifies you when price comes close to a gap boundary using an ADR-based proximity trigger and (optional) volume confirmation. It’s designed for ICT-style gap trading, confluence building, and clean visual execution.
How it works:
FVG definition
* Bullish FVG (gap up): low > high (the current candle’s low is above the high 2 bars ago).
* Bearish FVG (gap down): high < low (the current candle’s high is below the low 2 bars ago).
* Gaps smaller than your Min FVG Size (%) are ignored. (Gap size = (top-bottom)/bottom * 100.)
Higher-timeframe logic (auto-selected)
The script auto picks a sensible HTF:
1–5m → 15m, 15m → 1H, 1H → 4H, 4H → 1D, 1D → 1W, 1W → 1M, small 1M → 3M, big ≥3M → 12M.
You can display HTF FVGs and even filter so current-TF FVGs only show when they overlap an HTF gap.
Proximity alerts (ADR-based)
The script computes ADR on the current chart timeframe over a user-set lookback (default 20 bars).
An alert fires when price moves toward the closest actionable boundary and comes within ADR × Multiplier:
Bullish: price moving down, within distance of the bottom of a bullish FVG.
Bearish: price moving up, within distance of the top of a bearish FVG.
Yellow ▲/▼ markers show where a proximity alert triggered.
Volume filter (optional)
Require volume to be greater than SMA(20) × multiplier to accept a newly formed FVG.
Lifecycle
Each gap remains active for Extend FVG Box (Bars) bars.
You can delete the box after fill, or keep filled gaps visible as gray zones, or hide them.
Color legend
Current-TF Bullish: Pink/Magenta box
Current-TF Bearish: Cyan/Turquoise box
HTF Bullish: Gold box
HTF Bearish: Orange box
Filled (if shown): Gray box
Alert markers: Yellow ▲ (bullish), Yellow ▼ (bearish)
Inputs (what to tweak)
Show FVGs: Bullish / Bearish / Both
Max Bars Back to Find FVG: collection window & cleanup guard
Extend FVG Box (Bars): how long a zone stays tradable/active
Min FVG Size (%): ignore micro gaps
Delete Box After Fill & Show Filled FVGs: choose how you want completed gaps handled
Show Alert Markers: show/hide the yellow proximity arrows
Show Higher Timeframe FVG: overlay HTF gaps (auto TF)
HTF Filter: only display current-TF gaps that overlap an HTF gap
ADR Lookback & Proximity Multiplier: tune alert sensitivity to your market & timeframe
Volume Filter & Volume > MA Multiple: require above-average volume for new gaps
Built-in alerts (ready to use)
Create alerts in TradingView (⚠️ “Once per bar” or “Once per bar close”, your choice) and select from:
🟢 Bullish FVG Proximity — price approaching a bullish gap bottom
🔴 Bearish FVG Proximity — price approaching a bearish gap top
✅ New Bullish FVG Formed
⚠️ New Bearish FVG Formed
The alert messages include the symbol and price; proximity markers are also plotted on chart.
Tips & best practices
Use FVGs with market structure (break of structure, swing points), order blocks, or liquidity pools for confluence.
On very low timeframes, raise Min FVG Size and/or lower Max Bars Back to reduce noise and keep things fast.
Extend FVG Box controls how long a zone is considered valid; align it with your holding horizon (scalp vs swing).
Information panel (top-right)
Shows your mode, current HTF, number of gaps in memory, active bull/bear counts, and current-TF ADR.
FMA Pro v1.0Foxbrady Moving Average Pro - uses EMA for tick based charts and SMA for time based charts, automatically.
KCP Support & Resistance [Dr.K.C.PRAKASH]ChatGPT said:
This indicator “KCP Support & Resistance ” (Pine Script v5) is a multi-featured support & resistance tool that combines pivots, slope-based channels, Fibonacci options, and SMA200 trend reference.
🔎 Core Concept
The script identifies pivot highs and lows and uses them to draw support and resistance levels on the chart.
It allows you to visualize them in two ways:
Horizontal lines (flat support/resistance at pivot values).
Parallel slope-based lines (trend-adjusted, drawn with slope factor).
⚙️ Settings & Options
Theme
useDark: Switches to a dark-color palette with bright neon-style lines for better visibility on dark charts.
Basic Settings
length: Pivot length (bars used to detect swing high/low).
lookback: How many past pivot points to use for plotting lines.
Slope: Multiplier applied to slope calculations (for slanted trendline-style S/R).
Extend Horizontal Lines Left?: Option to extend horizontal lines to both sides.
Extend Parallel Lines Left?: Same for slope-based lines.
Show/Hide Controls
Show Parallel Lines?: Toggle diagonal support/resistance.
Show Horizontal Lines?: Toggle flat levels.
Show SMA 200 Line?: Toggle long-term SMA(200) reference.
Hide Fibonacci Lines? / Show Fib Trend Line? / Show All Fibonacci Lines?: (reserved for Fib functionality).
Line Colors
Customizable line colors for parallel & horizontal high/low lines.
If Dark Theme is enabled → Uses preset colors:
Electric Blue (Resistance - Parallel Highs)
Neon Green (Support - Parallel Lows)
Deep Red/Pink (Horizontal Highs)
Warm Yellow (Horizontal Lows)
📐 Logic & Calculations
Pivot Detection
Uses ta.pivothigh & ta.pivotlow with length to mark swing points.
Stores them in arrays for drawing multiple levels.
Slope Calculation
Uses covariance/variance of price vs. time (bar_index) to estimate slope.
Multiplied by Slope factor.
Makes trend-following parallel support/resistance lines possible.
Line Drawing
Parallel lines: Slanted, based on pivot highs/lows + slope.
Horizontal lines: Flat support & resistance levels extended across the chart.
SMA200 Plot
Plots SMA(200) for long-term trend direction.
Colored white if EMA(200) > SMA(200), else yellow (trend bias visual).
📊 What You See on Chart
Support & Resistance drawn dynamically from pivots.
Choice of horizontal (classic S/R) or sloped (trend-following) lines.
Dark theme colors → Electric blue, neon green, deep pink, warm yellow (if enabled).
SMA200 reference line → Helps identify bullish/bearish long-term bias.
Optional Fibonacci lines (future expansion).