Daily Alpha vs XBIDaily alpha of stock versus sector benchmark. In this case we looked at the biotech sector but you can replace it with whatever benchmark that fits the type of stocks that you are analyzing. Simply we take the delta between stock performance in the chosen time frame versus the index. Simple but effective!
指標和策略
Daily Move Percentile + StdDevDaily Move Percentile + Standard Deviation
Quantifies how unusual today's price move is relative to historical norms, combining percentile ranking with standard deviation analysis. Designed for volatile assets like biotech where contextualizing moves against typical volatility is essential.
How it works:
Calculates daily percentage change
Ranks today's move against the historical distribution (percentile)
Measures how many standard deviations from the mean (z-score)
Displays average volatility so you can contextualize whether a move is normal for this specific stock
Color coding:
Teal: 95th+ percentile up move — rare upside
Red: 95th+ percentile down move — rare downside
Lime: 80th-95th percentile up move — notable upside
Orange: 80th-95th percentile down move — notable downside
Gray: Normal volatility — nothing unusual
Information table (top right):
Today's move (%)
Percentile rank (how unusual)
Standard deviations (z-score)
Average volatility (typical daily move for this stock)
1 Std Dev (baseline volatility measure)
Use cases:
Identify statistically significant moves worth investigating
Contextualize moves against stock-specific volatility (a -5% day means different things for different stocks)
Spot potential mean-reversion setups after extreme moves
Monitor portfolio names for unusual activity
Recommended settings:
30-60 day lookback for volatile biotech
252 day lookback for stable, large-cap names
7M Multi-Factor Momentum ScoreboardThe 7M Scoreboard is more than just a collection of indicators; it is a Real-Time Scoring Engine designed for momentum traders and quant-focused analysts. While many scripts simply "mash up" indicators, the 7M Dashboard provides a weighted analytical framework that filters market noise into a single, actionable 7M Score.
It evaluates seven distinct dimensions of market health: Price Action, Relative Volume (Time-specific and Daily), Capital Structure (Float), and Multi-timeframe Trend alignment (VWAP, VWMA, MACD).
Make sure to enable Extended Trading Hours in the TradingView settings.
What makes it original?
The core innovation lies in the 7M Scoring & Alerting logic. Instead of a trader manually checking eight different parameters, the script performs a logical "Pass/Fail" assessment on every bar.
Dynamic Time-Anchored Change: Unlike standard change percentages, this script allows you to anchor the "Starting Price" to the Pre-market (4:00 AM), Regular Open (9:30 AM), or Post-market (4:00 PM).
Relative Volume (RVOL) at Time: It compares the current 5-minute volume not just to recent bars, but to the historical average for that specific time of day, filtering out the standard "lunchtime lull."
Capital Structure Integration: It incorporates a "Float" filter, essential for identifying low-float momentum vs. heavy-cap institutional moves.
How it works
The script calculates a total score out of 9 points based on the following criteria:
Momentum: Is price change > X percent from your chosen time anchor?
Liquidity: Is the 5-minute volume > X million?
Relative Strength: Is Daily RVOL and Time-specific RVOL > X?
Trend Alignment: Is price above VWAP and the 20-period VWMA?
Momentum Convergence: Is the MACD histogram positive?
Volatility Health: Is RSI between 30 and 70 (avoiding extreme over-extension)?
Step-by-Step Guide to Use
Set your Market Type: Open the settings and choose your Price Change Anchor.
Use Pre-Market if you trade the morning "Gap and Go."
Use Regular Open if you are a day-trader focused on the 9:30 AM bell.
Configure Thresholds: Set your Min % Move (e.g., 1.5%) and Min 5m Vol.
Monitor the 7M Score: Look at the bottom row.
Score < 5: High-risk, no clear momentum.
Score 7+: High-probability "7M Pass" setup.
Alerts (Great with TV's Watchlist Alerts)
Right-click the chart and "Add Alert." Select the 7M Dashboard and choose the "🚀 7M PASS" condition to be notified the moment a ticker hits your momentum criteria.
Recommended Settings for Different Assets
Small-Cap Momentum Pre-Market - 4.0% (Change) - 500k (5m Vol) - 50M (Float)
Mega-Cap / Tech Regular - 1.0% (Change) - 1.5M (5m Vol) - 30,000M (Float)
Crypto Intraday Regular - 2.5% (Change) - 1M (5m Vol) - 10,000M (Foat)
Technical Details
Pine Script Version: v6
Visuals: Features a high-contrast UI with adaptive text sizing for the final 7M Score.
Alerting: Includes an optimized alert() function for real-time momentum detection.
Disclaimer
The "7M Multi-Factor Momentum Scoreboard" is a technical analysis tool provided for educational and informational purposes only. Nothing contained in this script, its outputs, or the 7M Score constitutes financial, investment, or trading advice. Trading stocks, futures, and cryptocurrencies involves significant risk of loss and is not suitable for every investor.
No Guarantees: Past performance as displayed by historical indicators is not indicative of future results.
Model Limitations: The 7M Score is based on mathematical calculations of price and volume; it does not account for fundamental news, earnings surprises, or broader macroeconomic shifts.
Personal Responsibility: You are solely responsible for your own trading decisions. Always perform your own due diligence and consult with a licensed financial advisor before putting capital at risk.
INVESTIFY Free Intraday Indicator📌 INVESTIFY Free Intraday Indicator – Description
INVESTIFY Free Intraday Indicator is designed to help traders identify clear market direction and avoid overtrading.
This indicator focuses on trend-based confirmation, not random signals.
It provides limited and high-quality BUY / SELL signals — only when the market shows a clear directional move.
🔍 What this indicator does:
Identifies Bullish & Bearish market bias
Gives only one BUY or SELL per trend
Avoids signal spamming in sideways markets
Helps traders stay disciplined and patient
🎯 Best use case:
Intraday trading
Directional confirmation
Trend-following traders
Beginners who want clean structure
Works on all markets (Forex, Indices, Crypto, Commodities)
⚠️ Important Notes:
This is a FREE version for learning and confirmation
No targets or stop-loss are shown
Best used along with price action & discipline
Avoid overtrading — quality over quantity
Trade the direction, not the noise.
🔐 Want more precision?
The paid INVESTIFY Pro version includes:
Advanced entries
SL & risk structure
Session filtering
Re-entry logic
Smart money confirmations
📩 DM to get access
Tradovate Trades Overlay (CSV Import)This indicator, is a tool to visualize the past trades from a tradovate .csv file format in TradingView. A python code is commented in the file, which converts the .csv file into a format that TradingView can import. (for more details please read the header of the indicator)
Group 1: Monthly Permission + Value LocationThis indicator is your monthly gatekeeper: it decides whether trading is allowed and shows where price sits in long-term value, before you ever think about entries.
This script answers one question, clearly and consistently:
“Should I even be trading right now, and where is price sitting inside the big monthly map?”
It is not an entry tool.
It does not tell you when to buy or sell.
It sets permission and context so you don’t make trades in bad environments.
Think of it as the front gate to your system.
What you see on the chart
1. Monthly value levels (manually entered)
You manually enter:
Monthly VAL (Value Area Low)
Monthly VAH (Value Area High)
Optional: Monthly POC, HVN1, HVN2 (display only)
These levels define the monthly value area.
The script never recalculates them or moves them.
Why manual?
Your system defines value from FRVP anchoring.
Automation would break your rules.
This keeps the indicator honest and predictable.
2. Monthly permission: Risk ON vs Risk OFF
The script evaluates the last three completed monthly candles and checks for environments where price is unreliable.
It will mark Risk OFF if any of the following are true:
A. Monthly alternation (chop)
The last three non-doji monthly candles alternate direction
Example: up → down → up
This means direction is not sticking
B. Repeated high volatility
Monthly RangeRatio ≥ your threshold
Happens in 2 of the last 3 months
Indicates unstable movement, not controlled expansion
C. Volume spike during chop
Monthly VolumeRatio spikes above your threshold
Occurs while alternation or chop is present
Indicates emotional participation without structure
If any of those are true → Risk OFF
Otherwise → Risk ON
This matches your rule:
“Avoid environments where closes don’t stick.”
3. Monthly location badge (where price is sitting)
The script classifies the current monthly close into one of five clear states:
Outside Above VAH
Outside Below VAL
Inside (Near VAH)
Inside (Near VAL)
Inside Value
“Near” is defined as a percentage of value width (default 10%), not a guess.
This gives you a fast answer to:
Am I inside value or outside?
If inside, am I near an edge or in the middle?
No interpretation required.
4. Readout dashboard (optional table)
If enabled, the dashboard shows:
Monthly Permission: Risk ON / Risk OFF
Location status (from the badge logic)
Monthly RangeRatio
Monthly VolumeRatio
Monthly ADX(14)
Anchor age (days since you anchored monthly value)
This is a status panel, not a signal board.
How you’re meant to use it
Step 1: Check permission first
If Risk OFF → you do nothing
You do not look for setups
You do not drop to weekly or daily
This enforces discipline.
Step 2: Note monthly location
Inside value → only value rotation logic is allowed later
Outside value → expansion logic may be allowed later
Near an edge → expect interaction, not immediate continuation
This sets the boundaries for all lower-timeframe decisions.
Step 3: Move on to Group 2 only if allowed
This script does not:
Choose Roadmap A or B
Trigger entries
Select targets
That happens later, on weekly and daily charts.
Group 1 only answers:
“Is the environment tradable, and where are we in the big picture?”
What this script deliberately does NOT do
No entries
No exits
No alerts
No pattern guessing
No automated value calculation
No repainting
It is intentionally boring.
That’s the point.
Why this matters (especially for newer traders)
Most traders lose money before the trade:
Trading during chop
Trading inside value as if it’s trending
Trading high volatility without structure
This script prevents that by:
Forcing you to check environment first
Giving you objective monthly context
Removing emotional decision-making
If this script says Risk OFF, you’re already doing the right thing by standing aside.
Institutional ROC + Z-Score HeatmapInstitutional ROC + Z-Score Heatmap
Identifies statistically significant daily price moves by calculating the z-score of the rate of change (ROC) against a configurable historical lookback period. Designed for cross-asset regime monitoring and volatility detection.
How it works:
Calculates the daily percentage change (ROC)
Compares that move to the historical distribution of daily moves
Expresses the result as a z-score (standard deviations from the mean)
Color coding:
Teal: Extreme positive move (>3σ) — rare upside, potential blowoff top
Red: Extreme negative move (<-3σ) — rare downside, potential capitulation
Orange/Lime: Warning zone (2-3σ) — unusual but not extreme
Gray: Normal volatility — nothing actionable
Use cases:
Identify regime shifts across asset classes (equities, crypto, commodities)
Spot potential mean-reversion setups after extreme moves
Monitor cross-asset risk appetite (BTC, XBI, SPY) for tactical hedging signals
Recommended settings:
ROC Length: 1 (daily moves)
Lookback: 252 (1 year) for stable assets, 60-90 for volatile biotech
CRR Bill Williams Neo System (Alligator, Fractals, AO, AC, MFI)CRR Bill Williams Neo System is an educational chart overlay that combines classic Bill Williams concepts into a single visual framework.
The script integrates Alligator (SMMA-based trend structure), confirmed Fractals, Awesome Oscillator (AO), Accelerator Oscillator (AC), and the Bill Williams Market Facilitation Index (MFI).
Signals Logic
BUY signals appear when the Alligator trend is bullish (Lips > Teeth > Jaw), the Awesome Oscillator (AO) is above zero, the Accelerator Oscillator (AC) is above zero, the MFI state is GREEN or SQUAT, and price closes above the Lips line.
SELL signals appear when the Alligator trend is bearish (Lips < Teeth < Jaw), the Awesome Oscillator (AO) is below zero, the Accelerator Oscillator (AC) is below zero, the MFI state is GREEN or SQUAT, and price closes below the Lips line.
Signals can be configured to appear only after bar close for confirmation.
Fractals Behavior
Fractals are detected using pivot confirmation.
A fractal is confirmed only after the selected number of right bars have closed.
Because of this, fractal markers appear with a delay.
This behavior is expected and does not represent repainting.
How to Use
This indicator is designed to help visualize trend direction, momentum, and market activity.
It should be used as a confirmation tool together with price action and proper risk management.
Disclaimer
This script is for educational purposes only.
It does not constitute financial advice.
Always apply your own analysis and risk management.
US Open Vertical LineUS Open Vertical Line
This indicator automatically plots a vertical dashed line at the US market open (09:30 New York time) on your chart.
It is designed for traders who focus on session-based price action, including:
New York open volatility
Opening drive and reversals
Intraday rotations and liquidity events
The indicator is minimal by design — it does not calculate ranges, highs/lows, or signals.
It simply marks the exact moment the US session opens, allowing you to combine it with your own strategy, levels, and risk management.
Key features:
Accurate US open detection using New York time (handles DST automatically)
Works on all timeframes
Clean, non-intrusive vertical dashed line
Ideal for futures, stocks, and index traders
Use it as a visual anchor for planning and executing trades around the most liquid part of the trading day.
3 EMA Kesisim-Canengin15 dakikalık grafiklerde ema 8 in sırasıyla 21 ve 50 yi kesmesi ile alim satim sinyali üretir
Time Candle Markers (6H / 4H / 1H / 15M)Time candle markers to make it easier to spot timed TPD's and PSP's.
Super SMA Trio (20 50 200)Three SMAs in one (20, 50, 200). This is self-explanatory. TradingView wants me to add more text even though nobody should have any trouble understanding the script.
Impulse OTE Fibonacci & Trend Catcher V2------------IMPORTANT------------
Look at the first 3 options in the input settings. You can change these based on what your trading - crypto, NQ, Forex etc. There are tool tips with the recommended settings there as well.
------------What the trader is supposed to do------------
Wait for an UP or DOWN arrow (trend shift).
Let the indicator lock an impulse and draw the fibs.
When price pulls into OTE, it prints READY.
When confirmation happens, it prints ENTRY.
------------Why it’s useful------------
It’s meant to stop you from:
taking random fibs from random swings,
trading weak/noisy moves,
or entering too early without confirmation.
Instead it forces a simple flow:
Trend → Impulse → Pullback to OTE → Confirmed entry
Macro Clock Overlap 166/186/208) Anchored (v6)Macro Clock Overlap is a time-based market structure overlay designed to visualize cyclical pressure zones created by the interaction of three independent macro clocks:
166 weeks — Momentum / expansion cycle (anchored to a major weekly RSI peak)
186 weeks — Capitulation / contraction cycle (anchored to a weekly RSI < 30 trough)
208 weeks — Bitcoin halving cycle (protocol-defined supply shock)
Rather than attempting to predict price, this indicator highlights periods of structural instability where multiple cycles overlap — conditions that historically coincide with increased volatility, regime shifts, and non-linear market behavior.
How it works
Each cycle is projected forward and backward from a fixed anchor date.
Around each projected event, a configurable time window (± weeks) is applied.
For every bar, the script computes an Overlap Score (0–3):
0 — No active macro cycles
1 — Single cycle influence
2 — Reinforced cycle overlap (heightened instability)
3 — Rare full convergence (maximum structural stress)
The background shading reflects the current overlap score, and optional vertical lines mark projected cycle events for each clock.
What this indicator is (and isn’t)
✔ A probabilistic timing framework
✔ A way to identify volatility expansion and transition zones
✔ Useful for risk management, position sizing, and expectation setting
✘ Not a price prediction tool
✘ Not a buy/sell signal generator
✘ Not curve-fitted to price action
This tool is best used in conjunction with price structure, trend, and momentum analysis.
Customization
Anchor dates can be adjusted from the settings panel
Cycle lengths and window sizes are fully configurable
Visuals (background shading, vertical lines, table) can be toggled on/off
Designed for weekly charts, but works on any timeframe with macro intent.
Philosophy
Markets are not governed by a single clock.
They evolve through the interaction of multiple rhythms — internal momentum, stress accumulation, and external shocks.
Macro Clock Overlap makes those rhythms visible.
Opening Volume Scanner - Full AnalyticsOpening Volume Scanner - Full Analytics
A volume analysis tool designed to identify unusual opening volume patterns by comparing bar volume to average daily volume (ADV). The indicator colors candlesticks when volume exceeds specified thresholds during the first bars of the trading session.
Core Functionality:
Monitors volume as a percentage of ADV for the first N bars from session open (default: 5 bars)
Colors bars across 4 progressive threshold levels (default: 5%, 10%, 20%, 50% of ADV)
Calculates ADV using a customizable period (default: 20 days)
Optional bullish-only filter to display only green bars that meet volume criteria
Volume Metrics:
Bar % of ADV: Current bar volume expressed as percentage of average daily volume
RVOL (Relative Volume): Bar volume divided by ADV (e.g., 5.0x = 500% of ADV)
30-Min Cumulative: Sum of volume for first 30 bars expressed as % of ADV
$ Volume: Bar dollar volume in millions or billions
Display Features:
Customizable data table showing real-time metrics (position, size, colors adjustable)
Optional $ volume indicator with 9 symbol choices (triangle, arrow, circle, etc.)
Progressive color coding: yellow/orange/red for increasing volume intensity
Green color scale for RVOL and cumulative thresholds
Alert System:
RVOL alerts at configurable thresholds (default: 5x, 10x, 20x)
30-minute cumulative alerts at configurable % ADV levels (default: 100%, 150%, 200%)
All alerts can be toggled on/off independently
Customization Options:
All threshold levels and colors are adjustable
Table rows can be individually shown/hidden
Background transparency and border options
Compatible with all timeframes (designed for 1-minute charts)
Use Case:
Identifies stocks experiencing unusual opening volume activity relative to their normal trading patterns. Useful for momentum traders looking for early signs of institutional activity or catalyst-driven moves in the first minutes of the session.
Time SessionTime Session is a lightweight indicator to visually highlight up to 3 trading time windows on any chart. It’s built to help you verify sessions precisely (especially when TradingView timezones/session handling can be confusing).
Key Features
3 independent session slots (enable/disable each slot)
Global timezone mode:
EXCHANGE : uses the symbol’s exchange timezone (recommended in most cases)
CUSTOM : use your own timezone string, copy the timezone label shown on your chart (bottom-right corner) and paste it into the CUSTOM field.
Example: `UTC+1`, `UTC+2`, `UTC-5`, etc.
Background highlighting for each slot (custom color + transparency)
Start/End markers at the bottom of the chart:
S1 = Slot 1 Start , E1 = Slot 1 End
S2 = Slot 2 Start , E2 = Slot 2 End
S3 = Slot 3 Start , E3 = Slot 3 End
Data Window debug : `inSlot1`, `inSlot2`, `inSlot3`, `inAny`
How to Use
1. Add the indicator to your chart.
2. Set Timezone Mode to EXCHANGE or CUSTOM .
3. If CUSTOM , paste the chart timezone label (e.g., `UTC+1`)
4. Configure Session Slot 1/2/3 using `HHMM-HHMM` (example: `07:00-18:00`).
5. Use the highlighted background and **S/E markers** to confirm the exact hours.
Good Trading
XAMD - cycles shows a table of active amd phases saves the trouble of having to look through htfs and you just see a table of them all
5 Min FVG ORB by LybandzThis is a 5 minute ORB strategy. Essentially all it does is give buy signals if we broke above and got a bullish FVG and gives sell signals if we break down and get a bearish FVG. Its a little sloppy but it does give correct buy/sell signals. It also plots overnight levels. Ignore the SL/TP levels, those arent made correctly yet and I am too lazy to fix it. Just place the stop loss under the FVG candle and put the take profit at either 1:1.5 or 1:2 RR. Breakeven at internal highs/lows or after a volatile large move in your favored direction.
Note - for the entries, make sure to enter after a signal is given on M1. Using M5 timeframe will give different (but similar) results. Put your stop under the M1 FVG and go breakeven at 1:1 RR. Take a partial at 1:1.5 and hold the rest to whatever you want.
Enjoy :)
Volatility-Based Stop CalculatorVolatility-Based Stop Calculator
Daily volatility-based stop distance and target levels with regime awareness using VIX-derived stress features
Overview
Volatility-Based Stop Calculator is a daily risk-sizing helper that computes ATR-based stop distances and target levels using a volatility regime score built from VIX momentum, VIX acceleration, and SPY realized volatility. It is not a signal or entry tool; it provides a consistent stop distance and target ladder for the current session.
Key Features
Volatility Regime Scoring: Uses VIX momentum (5‑day change), VIX acceleration, and SPY realized volatility to create a daily severity score.
Quantile Buckets: Maps the severity score into 4 volatility buckets (LOW / NORMAL / ELEVATED / EXTREME).
Dynamic k Multiplier: Adjusts stop distance via VIX percentile, gap risk (ETFs only), realized vol ratio, and VIX9D term stress.
ATR-Based Stops: Final stop distance is ATR × k, rounded to tick size.
Targets Ladder: Plots TP1/TP2/TP3 and stop levels from a reference price (daily close or live price).
Overlap Consolidation: In Both mode, overlapping long/short levels are merged into a single line/label.
Live Lines + Labels: Uses dynamic lines and labels (not plot lines) for clean chart overlays.
Table Summary: Monospace table showing regime, k, ATR, stop distance, and volatility stats.
How It Works
Daily Data Pull: Uses daily bars for all volatility calculations to match the original daily model.
Severity Score: Ranks VIX momentum, VIX acceleration, and SPY realized vol, then blends them with weights.
Bucket Mapping: Converts severity into 4 quantile buckets and selects base k per bucket.
Dynamic Adjustments: Adds VIX percentile, ETF gap risk, asset vs market realized vol, and VIX9D term stress.
Stop + Targets: Computes stop distance and applies 1R/2R/3R targets from the reference price.
Use Cases
Stop Placement: Avoid stops that are too tight in high volatility or too wide in low volatility.
Risk Sizing: Use the stop distance with your own risk model to size positions.
Daily Context: Track volatility regime shifts without needing a separate regime model.
Consistent Execution: Standardize stop/target placement across sessions.
Settings
Volatility Inputs:
VIX Symbol, VIX9D Symbol
SPY Symbol (market baseline)
NQ/ES Baseline Symbols (futures baselines)
Stop Model:
ATR EMA Span
VIX Percentile Window
Severity Lookback
Bucket Lookback
Gap Lookback (ETFs)
Bucket Smoothing
Display:
Show Levels (Long/Short/Both)
Use Live Price (current chart) or Daily Close
Level Line Style/Width
Label Size and Position
Long/Short/Overlap colors
Table Styling:
Background, header, border, frame, and text settings
Table position and text size
Technical Notes
All volatility calculations are based on daily data; intraday charts use daily series under the hood.
Futures gap adjustment is disabled; ETFs include gap risk.
This is a risk sizing helper, not a trade signal generator.
Best Practices
Use daily regime output to set stops, then execute on your preferred timeframe.
Confirm symbol mappings for VIX/VIX9D/ES/NQ in your data feed.
If levels feel too wide or tight, adjust the k inputs rather than ATR length first.
A daily volatility‑based stop calculator that adapts stop distance and targets to the current regime.
ZigZag with Day Count + Month Shading (Selectable) A clean ZigZag indicator that shows how long each trend lasts.
Each completed ZigZag leg is labeled with:
The number of days the trend lasted
The start and end dates (for example: 10th jan → 25th jan)
You can also:
Shade only the months you care about (each month can be turned on or off)
Add optional vertical lines at the start and end of each trend
Customize label size, colours, and transparency
This indicator is useful for understanding trend duration, timing, and seasonal behaviour at a glance.
Adaptive Nadaraya-Watson (Non Repainting) [Metrify]To understand this implementation of the Nadaraya-Watson estimator, we have to look at the core equation governing non-parametric regression. This script aren't trying to average prices; we are trying to find the probability density of where price should be relative to its recent history.
1. The Kernel Physics (Bandwidth Modulation)
In standard kernel regression, you have a bandwidth parameter (h). This controls the "smoothness" of the curve. If h is too low, the curve jitters with every tick of noise. If h is too high, it acts like a sluggish SMA.
A static h fails because market volatility is dynamic. When the market explodes (high volatility), a tight bandwidth generates false signals. When the market sleeps, a wide bandwidth misses the micro-trends.
It try solving this by making h a function of the Asset's volatility ratio:
heff=h×max(0.5,min(SMA(ATR20,100)ATR20,2.0))
If the current ATR(20) is double the long-term average (100), the bandwidth doubles. This forces the estimator to "zoom out" during chaos, effectively ignoring noise that would otherwise look like a reversal.
vol_ratio = use_vol ? vol_raw / (vol_base == 0 ? 1 : vol_base) : 1.0
vol_mod = math.max(0.5, math.min(vol_ratio, 2.0))
h_eff = h_val * vol_mod
2. The Gaussian Loop (Endpoint Estimation)
Standard Nadaraya-Watson scripts repaint because they calculate the regression over a full window centered on the bar. To make this usable for live trading, we must calculate the Endpoint Estimate.
We iterate backward from the current bar (i=0) to the lookback limit. For every historical price Xi, we calculate a weight wi based on how far away it is in time (distance).
The weight is derived from the Gaussian Kernel function:
wi=exp(−2heff2i2)
Price data closer to the current bar (i=0) gets a weight near 1.0. Data further away (i=50) decays exponentially toward 0.
for i = 0 to lookback by 1
float dist = float(i)
float w = math.exp(-math.pow(dist, 2) / (2 * math.pow(h_eff, 2)))
num := num + w * src
den := den + w
3. Statistical Deviation (MAE vs. StDev)
Most Bollinger Band-style indicators use Standard Deviation (Root Mean Square). The problem with StDev is that it squares the errors, which heavily penalizes large outliers. In crypto or volatile forex pairs, one wick can blow out the bands for 20 bars.
This one use Mean Absolute Error (MAE) instead.
MAE=N1∑∣Price−y^∣
MAE is linear. It measures the average distance price strays from the kernel estimate without squaring the penalty. This creates "tighter" bands that adhere closer to price action during normal trend behavior but don't expand ridiculously during a flash crash.
Pine Script
float error = math.abs(src - y_hat)
float mae = ta.sma(error, lookback)
We project two sets of bands:
Inner Band (Balanced): The "Noise Zone". Price inside here is considered random walk.
Outer Band (Precision): The "Exhaustion Zone". Price reaching here is statistically unlikely (2.8x MAE).
Input & Visual Summary
Kernel Physics:
h_val: The base smoothness. Lower (e.g., 6) = faster, noisier. Higher (e.g., 10) = slower, smoother.
use_vol: Keep this TRUE. It prevents the bands from being too tight during news events.
Envelope Statistics:
mult_in / mult_out: These are your risk settings. 1.5/2.8 is a standard deviation-like setting suited for MAE.
SFP Trend & VWAP Liquidity Pro [Zofesu]🎯 SFP Trend & VWAP Liquidity Pro
Master the Flow with Institutional Precision.
It was primarily built on Nasdaq, sometimes works on Crypto and Commodities, mostly on Indices. Suitable for periods when the market is going sideways. Requires longer setup.
This indicator is a high-performance trading tool designed to identify Swing Failure Patterns (SFP) while maintaining strict alignment with market momentum. By combining Dynamic Liquidity Zones with a Dual-Filter Trend Engine , it ensures you only trade the most high-probability sweeps in the direction of institutional money.
🧠 The Philosophy
Trading liquidity sweeps (SFP) without a trend filter is like catching falling knives. This tool solves that by requiring Confluence . It identifies where retail stop-losses are being hunted and confirms if the major trend (VWAP/MA) is ready to defend that level.
🛠️ Key Features & Functionality
⚡ Smart SFP Detection: Automatically tracks historical Swing Highs and Lows to detect "fakeouts" where price sweeps liquidity and closes back within the range.
🛡️ Dual-Filter Trend Engine: Two fully customizable filters (EMA, SMA, HMA, or VWAP). You can use them to define a "Golden Zone" for entries.
⚓ Professional VWAP Anchoring: Choose how your volume-weighted price resets—Session, Week, Month, or Year. This allows you to track institutional value from intraday to long-term swing perspectives.
📊 Dynamic Liquidity Lines: Real-time visual tracking of the most recent "Upper" and "Lower" liquidity levels.
⚙️ Customizable Modes
The Institutional Fort: Use two slow MAs (e.g., 2000 & 5000) for maximum safety. Only take SFPs that align with the long-term macro trend.
The Volume Specialist: Combine one MA with a Weekly/Monthly VWAP. This aligns price action with pure volume-weighted value.
The Pure Aggressor: Turn off MA filters and use only Session VWAP for high-frequency scalping and rapid liquidity plays.
🚀 How to Trade with STVL Pro
Long Signal (BULL SFP): Price sweeps below a Swing Low but closes above it + Price is trending above your active Filters (A & B).
Short Signal (BEAR SFP): Price sweeps above a Swing High but closes below it + Price is trending below your active Filters (A & B).
You can preset filter A to EMA 2000
You can preset filter B to HMA 5000.
If the price is approaching the green lookback, just switch filter B to VWAP, you don't have to change the numbers. VWAP automatically uses the "Session" setting. So you will have EMA as support on the chart and VWAP will search for SFP. If HMA is closer to the red lookback zone, switch filter A to VWAP, it will search for SFP for short. SFP label may not always appear, it is very strict.
⚠️ Disclaimer
Past performance does not guarantee future results. Always use proper risk management. Designed for disciplined traders who value quality over quantity.






















