StO Price Action - Level ReactionShort-Summary
- Multi-timeframe reaction indicator for M5, M15, M30, H1, H4
- Monitors price interaction with higher timeframe levels (Daily, Weekly, H4)
- Detects whether price touches or breaks choosen levels
- Fully configurable colors, visibility and alerts per timeframe and level type
Full Description
Overview
- Tracks market reaction on significant levels across multiple timeframes
- Designed to identify intraday reactions to higher timeframe structure
- Supports both bullish and bearish reactions, with separate visual cues
- Alerts can be enabled to notify traders of touches or breaks
Core Logic
- Choice between detecting a touch or a break of the level
- Configurable reference level: Open, High or Low
- Lookback period can be set to target specific levels from previous candles
Timeframe Reactions
- Supported intraday reaction timeframes: M5, M15, M30, H1, H4, Daily, Weekly
- Each reaction type can be individually toggled for display
- Bullish and bearish reactions have separate color settings
- Alerts configurable per timeframe and reaction type
Alerting
- Alerts can be triggered for touches or breaks
- Supports separate alerts for each timeframe and each direction (bull/bear)
- Useful for real-time monitoring of key level interactions
Notes
- Intended as a market reaction tool not a standalone entry signal
- Helps traders confirm if price respects or violates higher timeframe levels
指標和策略
Gold Swings Peaks & Troughs//@version=5
indicator("Gold Swings Peaks & Troughs CLEAN", overlay=true, max_labels_count=500)
// ===== إعدادات المستخدم =====
len = input.int(2, "Swing Length") // عدد الشموع قبل وبعد لتحديد القمة/القاع
minDistance = input.int(5, "Min Bars Between Signals") // لتقليل الإشارات المتقاربة
buyColor = input.color(color.green, "BUY Color")
sellColor = input.color(color.red, "SELL Color")
// ===== متغير لتخزين آخر إشارة =====
var int lastBuyBar = na
var int lastSellBar = na
// ===== قمة و قاع محلية =====
localLow = low == ta.lowest(low, len*2 + 1)
localHigh = high == ta.highest(high, len*2 + 1)
// ===== رسم Labels فقط عند القمم والقيعان مع منع التكرار القريب =====
if localLow and (na(lastBuyBar) or bar_index - lastBuyBar >= minDistance)
label.new(bar_index, low, "BUY", style=label.style_label_up, color=buyColor, textcolor=color.white)
lastBuyBar := bar_index
if localHigh and (na(lastSellBar) or bar_index - lastSellBar >= minDistance)
label.new(bar_index, high, "SELL", style=label.style_label_down, color=sellColor, textcolor=color.white)
lastSellBar := bar_index
KSR-Ichimoku CloudThis Pine Script® code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
The script contains the original code from Ichimoku cloud and shows the cloud themselve
and mark on a chart where Tenkan-Kijun Crosses and Kumo Twists happen
© Steffen60 with thanks to @jumpr
You may use it in context to elliotwaver.live Trading system
4 SMA Strong Uptrend (Fixed Daily)Paint chart background when there is a strong aligned uptrend in the four SMA lines
Previous Day High & Lowthis indicator can draw the horizontal lines starting from the exact candle wick (origin point) where the previous day’s High or Low was created, giving you a precise visual reference of where liquidity was formed.
✅ Key Features
Plots PDH & PDL levels automatically on any symbol
Starts from the candle wick origin
The PDH line begins from the exact candle that printed yesterday’s High
The PDL line begins from the exact candle that printed yesterday’s Low
Timeframe stable
Works consistently when switching between timeframes (intraday)
Limited horizontal lines
Lines are not infinite
They extend only until a defined session limit (end of day)
Fully stylable
Customize line colors
Adjust thickness
Choose line style: Solid / Dashed / Dotted
Optional labels to clearly mark PDH and PDL
Nerot YapanimCandle Patterns Pro: Momentum & Multilingual
Overview
Candle Patterns Pro is an advanced, high-conviction candlestick pattern detector built for Pine Script v5. Unlike standard indicators that trigger on every technical occurrence, this script utilizes Momentum-Verified Logic to filter out market noise and "indecisive" price action.
Designed for clarity and precision, it features a unique Multilingual Toggle, allowing users to switch between professional English and Hebrew terminology instantly.
Key Features
1. Momentum-Verified Logic (Anti-Doji Filter)
Most pattern detectors fail by triggering on small-bodied "Doji" candles that lack direction. This indicator uses a custom isStrong algorithm: a signal only triggers if the real body of the candle represents at least 50% of the total candle range. This ensures you only see patterns where bulls or bears have shown true dominance.
2. "Real Body" Engulfing
To prioritize high-probability reversals, the Engulfing logic is calculated using Real Bodies (Open to Close) rather than wicks. By ignoring the "noise" of the thicks/wicks, the signals identify much stronger shifts in institutional pressure.
Shutterstock
3. Integrated Trend Filter (Moving Average)
Align your trades with the primary trend. When the MA Filter is enabled, bullish signals are only displayed if the price is above the Moving Average, while bearish signals appear only when the price is below it.
4. Professional Multilingual Support
This indicator is built for a global audience. Through the settings menu, users can toggle between English and Professional Hebrew labels.
English: Engulfing, 3 Soldiers, 3 Crows, Dark Cloud, etc.
Hebrew: בולען, שלושה חיילים, שלושה עורבים, ענן כהה, etc.
Supported Patterns
Engulfing (Body-Only): Clean reversal signals optimized for momentum.
Three Soldiers & Three Crows: Momentum-verified (Filtered for strength).
Morning & Evening Star: Three-candle structural reversals.
Meeting Line: Precise alignment strike patterns.
Piercing Line & Dark Cloud: Deep-penetration momentum shifts.
Harami: Traditional inside-bar setups.
User Instructions
Selection: Toggle specific patterns on or off in the inputs tab.
Clean UI: The indicator is pre-configured to keep your Status Line clean by hiding values and inputs by default.
Y-Axis Fix: If labels appear "static" or do not move with price, right-click your Price Scale and select "Merge All Scales into One (Right)".
Language: Switch between English and Hebrew via the "Language / שפה" dropdown in settings.
Technical Specifications
Version: Pine Script v5
Execution: Real-time calculation on bar close.
Alerts: Fully compatible with TradingView alerts (Push, Email, Webhook).
200 EMA Multi-Timeframe Bias (5m / 1h / 4h)200 EMA align with 5min, 1hr and 4 hr. it will have a background green if the three timeframes are align .
CQ KeltnerPosition This indicator shows where price is positioned inside a Keltner Channel using a normalized scale.
The output is a single oscillator that ranges from −1 to +1:
−1 when price is at the lower Keltner band
0 when price is at the channel midpoint
+1 when price is at the upper Keltner band
Values between these levels represent the relative position of price within the channel.
How it works
The Keltner Channel is built using a moving-average basis and an ATR-based range.
Upper and lower bands are calculated as:
Upper = Basis + (Multiplier × ATR)
Lower = Basis − (Multiplier × ATR)
The position is then normalized as:
((price − lower) / (upper − lower)) × 2 − 1
This normalization ensures consistent behavior across symbols, timeframes, and volatility regimes.
Adaptive Support/Resistance EMA IndicatorThis indicator automatically identifies and displays the optimal Exponential Moving Average (EMA) period for the current market conditions by analyzing how well different EMAs act as support or resistance levels.
How It Works
Adaptive Period Selection:
The indicator tests 33 different EMA periods (ranging from 5 to 400, including Fibonacci numbers like 8, 13, 21, 34, 55, 89, 144, 233, 377) and scores each based on how effectively it functions as support or resistance.
Intelligent Scoring System:
Each EMA is evaluated using three key metrics:
Respect Rate - Percentage of time price stays on the correct side of the EMA (above for support, below for resistance)
Successful Bounces - Number of times price approached the EMA and reversed without breaking through
Break Severity - Penalties for failed breaks, weighted by both depth and duration of the violation
Trend-Aware Behavior:
Uptrend (price > 50 EMA): Finds the EMA that best acts as a support floor below price
Downtrend (price < 50 EMA): Finds the EMA that best acts as a resistance ceiling above price
Adaptive Features:
Dynamic Lookback: Automatically adjusts analysis period (50-200 bars) based on market volatility
Sticky Selection: Won't switch EMAs unless new choice shows significant improvement (8% threshold by default)
Update Frequency: Recalculates every 20 bars or immediately during high volatility periods
Visual Elements
EMA Display:
Green line = Support (in uptrends)
Red line = Resistance (in downtrends)
Optional glow effect for enhanced visibility
Optional fill between price and EMA
Labels:
Shows "SUP " or "RES " when the selected EMA changes
Markers appear only when there's a meaningful change
Info Table:
Displays real-time statistics:
Current EMA period
Role (Support or Resistance)
Adaptive lookback length
Number of successful bounces
Number of breaks
Break severity score (color-coded: green < 5, yellow 5-20, red > 20)
Key Advantages
No manual EMA period selection needed
Adapts to changing market conditions automatically
Considers both bounce quality and break severity
Reduces whipsaws through sticky selection logic
Provides transparency with detailed performance metrics
Settings
Performance Settings:
Min/Max Lookback: Range for adaptive analysis window
Update Frequency: How often to recalculate (higher = faster performance)
Sticky Threshold: Required improvement % to switch EMAs
Detection Settings:
Touch Threshold: How close price must get to count as a "touch"
Bounce Window: Bars to confirm a successful bounce vs break
Visual Settings:
Customizable support/resistance colors
Toggle glow and fill effects
Show/hide info table and change markers
TRIZONACCI_Mean reversal_signalsMarket State Engine
Deterministic Confidence-Scoring System for TradingView
A professional-grade PineScript v5 indicator that scores market conditions from 0-100, helping traders identify high-quality trading opportunities through systematic structure analysis, VWAP positioning, order flow dynamics, and time-based context.
🎯 Overview
The Market State Engine is not a trading bot—it's a noise-reduction and opportunity-ranking system designed to filter market conditions and surface only the highest-quality setups.
Instead of blindly taking every signal, this indicator:
✅ Scores market conditions objectively (0-100 scale)
✅ Filters out low-probability setups automatically
✅ Classifies opportunities into A, A+, and A++ grades
✅ Alerts only on confirmed structure shifts with supporting context
✅ Keeps the human in control - provides intelligence, not automation
Philosophy: Reduce Noise. Enforce Discipline. Surface Quality.
🚀 Key Features
Deterministic Scoring - No black boxes, fully explainable logic
Multi-Factor Analysis - Combines 4 independent market state components
Structure-First Approach - Only alerts on confirmed pivot breaks
VWAP Mean Reversion Logic - Directional filtering based on VWAP zones
Order Flow Proxy - CVD divergence and confirmation detection
Session-Aware Scoring - Prioritizes high-volume New York sessions
Alert De-Duplication - One alert per unique structure shift
Zero Repainting - Uses confirmed pivots only (left=2, right=2)
Fully Configurable - All parameters exposed as inputs
Visual Feedback - VWAP bands, setup labels, and real-time score panel
📊 Scoring System (0-100)
The Market State Engine evaluates four independent components, each contributing up to 25 points for a maximum total score of 100.
🎯 Component Breakdown
Component Max Points Description
VWAP Context 25 Measures price deviation from session VWAP
Structure Shift 25 Confirms pivot breakout (HARD GATE)
CVD Alignment 25 Detects order flow divergence/confirmation
Time-of-Day 25 Identifies high-probability trading sessions
1️⃣ VWAP Context (Max 25 Points)
Purpose: Identifies extreme price deviations from fair value for mean-reversion opportunities.
VWAP (Volume-Weighted Average Price) is calculated session-anchored to New York market time, with standard deviation bands creating zones of opportunity.
Band Structure:
1st Band: ±1σ from VWAP (fair value zone)
2nd Band: ±2σ from VWAP (moderate deviation)
3rd Band: ±3σ from VWAP (extreme deviation)
Scoring Logic (Exclusive):
Price in 3rd VWAP Band (>2σ and ≤3σ) → +25 points
Price in 2nd VWAP Band (>1σ and ≤2σ) → +15 points
Otherwise (inside 1σ or beyond 3σ) → 0 points
Key Insight: The further price stretches from VWAP, the higher the probability of mean reversion.
2️⃣ Structure Shift (Max 25 Points) — HARD GATE
Purpose: Confirms momentum shift through confirmed pivot breakouts.
⚠️ CRITICAL: Structure shift is mandatory. If no valid structure shift occurs, the total score becomes 0 regardless of other factors.
Detection Method:
Uses TradingView's ta.pivothigh() and ta.pivotlow() functions with locked parameters:
Left bars: 2
Right bars: 2
Source: Configurable (Wick or Body)
Break confirmation: Candle close only
Bullish Structure Shift:
✅ Prior swing high exists (confirmed pivot)
✅ Current candle closes above swing high + tick buffer
✅ Must occur in VWAP 2nd or 3rd band
✅ VWAP Filter: Price must be at or below VWAP (lower bands)
Bearish Structure Shift:
✅ Prior swing low exists (confirmed pivot)
✅ Current candle closes below swing low - tick buffer
✅ Must occur in VWAP 2nd or 3rd band
✅ VWAP Filter: Price must be at or above VWAP (upper bands)
Scoring:
Valid structure shift → +25 points
No structure shift → Total score = 0
Tick Buffer: Default 5 ticks (configurable) - prevents false breaks from minor price noise.
3️⃣ CVD Alignment (Max 25 Points)
Purpose: Detects institutional order flow through volume delta analysis.
CVD (Cumulative Volume Delta) is a proxy for order flow:
Close > Open → +Volume (buying pressure)
Close < Open → -Volume (selling pressure)
Scoring Logic:
Condition Points Description
Divergence +25 Price makes higher high + CVD makes lower high (bearish)
Price makes lower low + CVD makes higher low (bullish)
Confirmation +20 Price and CVD both make higher highs or lower lows
Neutral 0 No clear divergence or confirmation
Lookback Window: Last 20 bars (configurable) - prevents stale divergences.
Key Insight: Divergences suggest weakening momentum, while confirmations validate the trend.
4️⃣ Time-of-Day Context (Max 25 Points)
Purpose: Prioritizes high-volume, high-volatility New York sessions.
Scored Sessions (America/New_York timezone):
Session Time Range (NY) Points Description
Pre-Market 03:00 - 04:00 +25 Early liquidity injection
Market Open 09:30 - 11:30 +25 Highest volume period
Off-Hours All other times 0 Lower probability setups
Key Insight: Structure shifts during active sessions have higher follow-through probability.
🏆 Setup Classification
Setups are graded based on total score thresholds (configurable):
Grade Score Range Typical Components Quality Level
A++ Setup ≥90 All 4 factors aligned
(VWAP 3rd band + Structure + CVD + Session) Premium - Rare
A+ Setup ≥75 Structure + VWAP + CVD or Session
(3 of 4 factors) High - Select
A Setup ≥60 Structure + VWAP + Session
(Minimum viable setup) Good - Regular
No Grade <60 Insufficient confluence Filtered out
Default Thresholds:
A Setup: 60 points
A+ Setup: 75 points
A++ Setup: 90 points
📥 Installation
Step 1: Download the Indicator
Download the market_state_engine.pine file from this repository.
Step 2: Add to TradingView
Open TradingView
Open the Pine Editor (bottom panel)
Click "New" → "Blank indicator"
Delete all default code
Paste the contents of market_state_engine.pine
Click "Add to Chart"
Step 3: Configure for Your Symbol
Click the gear icon next to the indicator name
Adjust Tick Size for your instrument:
ES futures: 0.25
NQ futures: 0.25
Stocks: 0.01
Save settings
⚙️ Configuration
Symbol Settings
Parameter Default Description
Tick Size 0.25 Minimum price movement for your symbol
Tick Buffer Count 5 Ticks beyond swing for valid break
VWAP Settings
Parameter Default Description
VWAP Band 1 (σ) 1.0 1st standard deviation multiplier
VWAP Band 2 (σ) 2.0 2nd standard deviation multiplier
VWAP Band 3 (σ) 3.0 3rd standard deviation multiplier
Session Settings
Parameter Default Description
Session 1 0300-0400 Pre-market window (NY time)
Session 2 0930-1130 Market open window (NY time)
Score Thresholds
Parameter Default Description
A Setup Threshold 60 Minimum score for A grade
A+ Setup Threshold 75 Minimum score for A+ grade
A++ Setup Threshold 90 Minimum score for A++ grade
CVD Settings
Parameter Default Description
CVD Divergence Lookback 20 Maximum bars for divergence detection
Swing Settings
Parameter Default Options Description
Swing Detection Method Wick Wick / Body Use high/low or open/close for pivots
Visual Settings
Parameter Default Description
Show VWAP Bands ✅ Display VWAP and standard deviation bands
Show Setup Labels ✅ Display setup markers on chart
Show Score Panel ✅ Display real-time score breakdown
📖 How to Use
Step 1: Apply to 1-Minute Chart
⚠️ The indicator is locked to 1-minute timeframe - do not use on other timeframes.
Step 2: Understand the Visual Signals
Setup Labels
Green Triangle (▲) - Bullish (Long) setup detected
Red Triangle (▼) - Bearish (Short) setup detected
Label shows Grade (A/A+/A++) and Total Score
VWAP Bands
Yellow Line - Session VWAP (fair value)
Blue Bands - ±1σ (fair value zone)
Purple Bands - ±2σ (moderate deviation)
Red Bands - ±3σ (extreme deviation)
Score Panel (Top Right)
Real-time breakdown of all four components:
Component Score
VWAP Zone 15/25
Structure 25/25
CVD 20/25
Session 25/25
TOTAL 85/100 (A+)
Step 3: Interpret Signals
Valid Long Setup:
✅ Green triangle below candle
✅ Price in lower VWAP bands (below VWAP)
✅ Structure shift breaks swing high
✅ Score ≥60
Valid Short Setup:
✅ Red triangle above candle
✅ Price in upper VWAP bands (above VWAP)
✅ Structure shift breaks swing low
✅ Score ≥60
Step 4: Set Up Alerts (See Alert Conditions section)
🚦 Signal Filters (VWAP Zone Logic)
The indicator uses directional VWAP filtering to prevent counter-trend signals:
Long Signals (Green)
Only allowed when price is AT or BELOW VWAP
✅ Lower 2nd band (-2σ to -1σ)
✅ Lower 3rd band (-3σ to -2σ)
✅ At VWAP exactly
❌ BLOCKED in upper bands (above VWAP)
Logic: Longs when price is stretched below fair value (mean reversion)
Short Signals (Red)
Only allowed when price is AT or ABOVE VWAP
✅ Upper 2nd band (+1σ to +2σ)
✅ Upper 3rd band (+2σ to +3σ)
✅ At VWAP exactly
❌ BLOCKED in lower bands (below VWAP)
Logic: Shorts when price is stretched above fair value (mean reversion)
🎨 Visual Elements
Chart Overlays
Element Color Description
VWAP Line Yellow Session-anchored fair value
±1σ Bands Blue Fair value zone (no score)
±2σ Bands Purple Moderate deviation (15 pts)
±3σ Bands Red Extreme deviation (25 pts)
Swing Highs Red ▼ Confirmed pivot highs
Swing Lows Green ▲ Confirmed pivot lows
Session Background Light Green Active high-value session
Setup Labels
Bullish Setup:
A+
▲ 75
Green label below candle, shows grade and score
Bearish Setup:
A++
▼ 90
Red label above candle, shows grade and score
Score Panel
Real-time table in top-right corner:
Individual component scores (0-25 each)
Total score (0-100)
Current setup grade (A/A+/A++)
Updates in real-time as market conditions change
🔔 Alert Conditions
Setting Up Alerts
Method 1: Built-in Alert Conditions
Click "Create Alert" in TradingView
Select Market State Engine as condition
Choose alert type:
Bullish Setup - Long signals only
Bearish Setup - Short signals only
Any Setup - All signals
Set to "Once Per Bar Close"
Configure notification method (app, email, webhook)
Method 2: Custom Alert Message
Alert messages include full breakdown:
A+ Setup Detected (Score: 85)
Components: VWAP(25) + Structure(25) + CVD(20) + Time(15)
CVD State: Confirmation
Direction: Long
Timeframe: 1m
Alert Behavior
✅ One alert per unique pivot break - no spam
✅ Fires on candle close only - no repainting
✅ Minimum score filter - only A grade or higher (≥60)
✅ Direction-specific - separate bullish/bearish conditions
⚠️ No cooldown between different pivots - multiple alerts per session allowed if different swing levels break
🔧 Technical Details
Timeframe Lock
Required: 1-minute chart only
Reason: Scoring model calibrated for 1m micro-structure
Future: Multi-timeframe support planned for v2
Timezone Configuration
Hard-coded: America/New_York
Session Detection: Uses TradingView's native session functions
Consistency: All time-based logic uses NY timezone
Swing Detection Parameters
Locked to specification:
ta.pivothigh(source, left=2, right=2)
ta.pivotlow(source, left=2, right=2)
Implications:
Pivots confirmed 2 bars after formation
No repainting - historical pivots don't move
4-bar minimum swing structure (2 left + pivot + 2 right)
VWAP Calculation
Type: Session-anchored (resets daily)
Source: Typical price (high + low + close) / 3
Weighting: Volume-weighted
Standard Deviation: True population standard deviation
CVD Proxy Formula
barDelta = close > open ? volume : close < open ? -volume : 0
CVD = cumulative sum of barDelta (session-reset)
Performance Limits
Max Labels: 500 (TradingView limit)
Max Bars Back: 500
Memory: Lightweight - uses only essential variables
💡 Best Practices
1. Use as a Filter, Not a Strategy
❌ Don't: Blindly take every signal
✅ Do: Use score as confluence for your existing analysis
2. Higher Grades = Better Probability
A Setups (60-74): Regular opportunities, still require discretion
A+ Setups (75-89): High-quality, multiple factors aligned
A++ Setups (90-100): Rare premium opportunities, strongest edge
3. Respect the VWAP Zone Filter
The indicator automatically blocks:
Longs in upper VWAP bands (counter-trend)
Shorts in lower VWAP bands (counter-trend)
Trust this logic - it enforces mean reversion discipline.
4. Monitor the Score Panel
Watch which components are scoring to understand why a setup formed:
Missing CVD score? → No order flow confirmation
Missing Time score? → Outside high-volume sessions
Low VWAP score? → Weak deviation from fair value
5. Combine with Risk Management
The indicator provides opportunity scoring, not position sizing:
Use stop losses based on swing structure
Scale position size with setup grade (larger on A++, smaller on A)
Set profit targets at VWAP or opposing band
6. Session Awareness
Prioritize signals during active sessions:
03:00-04:00 NY: Pre-market momentum
09:30-11:30 NY: Highest volume, tightest spreads
Off-hours signals (0 time score) are lower probability but still valid if other factors strong.
7. Understand the Hard Gate
If no structure shift occurs:
Total score = 0
No alerts fire
Other components irrelevant
Why? Structure shift confirms momentum change - without it, there's no tradable opportunity.
8. Avoid Over-Optimization
Default settings are well-calibrated:
Don't chase "perfect" parameters
Test changes on historical data before live use
Document any modifications
9. Leverage Alert De-Duplication
The indicator prevents spam automatically:
One alert per unique swing break
New swing levels = new alerts
No need to manually filter notifications
10. Supplement with Price Action
Use the indicator alongside:
Support/resistance levels
Order flow footprint charts
Volume profile
Market internals (breadth, TICK, etc.)
📚 Example Scenarios
Example 1: A++ Premium Setup (Score: 95)
Price: In lower 3rd VWAP band (-2.8σ) → VWAP: 25 pts
Structure: Close breaks swing high → Structure: 25 pts
CVD: Price LL + CVD HL (bullish div) → CVD: 25 pts
Time: 10:15 AM NY (market open) → Time: 25 pts
Direction: LONG (price below VWAP) → Valid
Grade: A++ (95/100)
Interpretation: All factors aligned - premium mean-reversion long opportunity.
Example 2: A+ Strong Setup (Score: 80)
Price: In upper 2nd VWAP band (+1.5σ) → VWAP: 15 pts
Structure: Close breaks swing low → Structure: 25 pts
CVD: Price HH + CVD LH (bearish div) → CVD: 25 pts
Time: 2:00 PM NY (off-hours) → Time: 0 pts
Direction: SHORT (price above VWAP) → Valid
Grade: A+ (65/100)
Interpretation: Strong setup despite off-hours, bearish divergence adds confidence.
Example 3: Filtered Setup (Score: 0)
Price: In upper 3rd VWAP band (+2.5σ) → VWAP: 25 pts (if allowed)
Structure: Close breaks swing high → Structure: BLOCKED
CVD: Price HH + CVD HH (confirmation) → CVD: 20 pts (if allowed)
Time: 10:00 AM NY → Time: 25 pts (if allowed)
Direction: LONG (price ABOVE VWAP) → ❌ INVALID ZONE
Grade: None (0/100) - NO ALERT
Interpretation: VWAP filter blocked long signal in upper band - prevents counter-trend trade.
🛠️ Troubleshooting
No Signals Appearing
✅ Verify you're on 1-minute chart
✅ Check Tick Size matches your symbol
✅ Ensure VWAP Bands are visible
✅ Wait for confirmed pivots (requires at least 5 bars of history)
Alerts Not Firing
✅ Confirm alert is set to "Once Per Bar Close"
✅ Check score threshold (must be ≥60 by default)
✅ Verify VWAP zone filter isn't blocking signals
✅ Check that structure shift is actually occurring
Score Always Zero
✅ No structure shift detected (hard gate active)
✅ Price may not be in valid VWAP zone (2nd or 3rd band)
✅ Insufficient swing history (wait for pivots to form)
Too Many/Too Few Signals
Too many signals:
Increase A Setup Threshold (e.g., 70 instead of 60)
Increase Tick Buffer Count (reduces false breaks)
Too few signals:
Decrease A Setup Threshold (e.g., 50 instead of 60)
Decrease Tick Buffer Count (more sensitive to breaks)
📜 License
This indicator is provided under the Mozilla Public License 2.0.
🤝 Credits
Developed as a professional trading tool for systematic opportunity identification.
Philosophy: Reduce noise. Enforce discipline. Keep the human in control.
📞 Support
For questions, issues, or feature requests, please consult:
This README documentation
The specification document (pinescript_market_state_engine_spec.docx)
Inline code comments in market_state_engine.pine
🔄 Version History
v1.0 (Current)
Initial release
4-component scoring model (VWAP + Structure + CVD + Time)
VWAP zone directional filtering
Alert de-duplication
Configurable inputs
Real-time score panel
Session-aware logic
🎓 Understanding the Numbers
Quick Reference Card
Score Range Grade Quality Typical Use
90-100 A++ Premium Highest conviction trades
75-89 A+ High Strong probability setups
60-74 A Good Acceptable with discretion
0-59 None Filtered Skip or wait for confluence
Component Contribution Examples
Minimum A Setup (60 points):
Structure (25) + VWAP 3rd band (25) + Time (25) = 75 ✅
Typical A+ Setup (75 points):
Structure (25) + VWAP 2nd band (15) + CVD confirm (20) + Time (25) = 85 ✅
Maximum A++ Setup (100 points):
Structure (25) + VWAP 3rd band (25) + CVD divergence (25) + Time (25) = 100 ✅
🎯 Final Reminder
This is NOT a trading bot.
This is NOT financial advice.
This is a decision-support tool.
Always:
✅ Use proper risk management
✅ Understand the logic before trading
✅ Backtest on your symbols
✅ Keep the human in control
Happy Trading! 📈
SIV Trading LightSmartInVisions Trading Light (SIV Trading Light)
**Multi-Factor Market Regime & Trade Bias Indicator**
---
## Overview and Purpose
**SmartInVisions Trading Light (SIV Trading Light)** is a market **context and trade-bias indicator**, not a signal generator.
Its purpose is to answer one practical trading question:
> *“Given the current market conditions, is it statistically more favorable to think LONG, SHORT, or stay neutral?”*
Instead of relying on a single indicator, SIV Trading Light **combines several independent market dimensions into one coherent score**.
This allows traders to avoid over-trading in unfavorable environments and to align trades with the dominant market context.
---
## Why This Is NOT a Simple Indicator Mashup
This script does **not** simply merge popular indicators.
Each component is:
* normalized,
* weighted,
* evaluated against thresholds,
* and translated into **positive, neutral, or negative score contributions**.
Only the **combined interaction** of these components produces the final trade bias.
No single indicator can dominate the result on its own.
---
## Core Calculation Concept
At every bar, the indicator evaluates multiple independent factors.
Each factor contributes points to a **total bias score**.
The score is then classified into one of three states:
* **LONG bias**
* **NEUTRAL**
* **SHORT bias**
The indicator does **not** predict price direction.
It classifies the **current trading environment**.
---
## Components and How They Work Together
### 1. Trend Structure (Moving Averages)
**Purpose:** Identify the dominant directional structure.
* Fast MA vs Slow MA relationship
* Price position relative to the slow MA
* Optional slope confirmation
Contribution:
* Positive points in aligned uptrends
* Negative points in aligned downtrends
* Neutral in mixed or unclear structures
---
### 2. Momentum (RSI)
**Purpose:** Measure directional strength.
* RSI above upper threshold → bullish momentum
* RSI below lower threshold → bearish momentum
* Mid-range RSI → neutral
Momentum refines trend signals by confirming or weakening them.
---
### 3. Trend Quality / Choppiness (ADX)
**Purpose:** Filter out sideways or noisy markets.
* ADX above threshold → trending environment
* ADX below threshold → choppy environment
ADX does **not** define direction.
It modifies how much weight trend and momentum signals receive.
---
### 4. Volatility Risk (ATR%)
**Purpose:** Penalize structurally dangerous environments.
ATR is normalized as a percentage of price:
* Excessively high volatility → risk penalty
* Extremely low volatility → participation penalty
* Balanced volatility → neutral or positive contribution
This prevents aggressive trading in unstable regimes.
---
### 5. Market Participation (Relative Volume)
**Purpose:** Confirm whether moves are supported by volume.
* High relative volume → confirmation
* Low volume → weaker confidence
Volume acts as a confidence modifier, not as a directional signal.
---
### 6. Higher-Timeframe Market Regime (Optional)
**Purpose:** Align trades with the dominant higher-timeframe context.
On a user-defined **regime timeframe**, the script evaluates:
* trend structure
* RSI momentum
The regime filter can:
* amplify signals aligned with the higher timeframe
* suppress signals against it
This avoids trading aggressively against dominant market structure.
---
## Multi-Timeframe Design
The indicator separates two concepts:
* **Trading Timeframe**: the chart timeframe used for execution
* **Regime Timeframe**: a higher timeframe used for contextual bias
This design allows the same logic to be applied to:
* day trading
* swing trading
* longer-term investing
---
## Presets and Customization
Built-in presets are provided for:
* Day Trading (USA / Europe)
* Swing Trading (USA / Europe)
* Investing (USA / Europe)
Presets define:
* factor weights
* thresholds
* score boundaries
They do **not** define:
* timeframes
* moving average types or lengths
This keeps structural decisions under user control while simplifying parameter tuning.
A **Custom mode** allows full manual configuration.
---
## Visual Output
The indicator provides:
* two moving average overlays (fast / slow)
* an optional background color reflecting the current bias
* a compact badge summarizing mode, score, and state
* an optional breakdown table showing how each factor contributes to the score
These visuals are designed to explain **why** the current bias exists.
---
## Alerts
Alerts are based on **state changes**, not on every bar.
Alert outputs include:
* numerical state (`1 = LONG, 0 = NEUTRAL, -1 = SHORT`)
* score value
* rounded moving average values
This allows integration into discretionary or systematic workflows without alert noise.
---
## How This Indicator Should Be Used
✔ As a **trade filter**
✔ To avoid trading in unfavorable conditions
✔ To align discretionary entries with market context
---
## What This Indicator Is NOT
✘ Not a buy/sell signal
✘ Not a prediction model
✘ Not a replacement for risk management
---
## Credits and License
**Publisher:** SmartInVisions GmbH
**Concept & Design:** Reiner Ernst
**Implementation & Iterative Development:** SmartInVisions GmbH + ChatGPT (OpenAI)
**License:** Mozilla Public License 2.0 (MPL-2.0)
---
## Disclaimer
This script is provided for educational and research purposes only.
It does not constitute financial advice. Trading involves risk.
---
BTC Accum/Dist BUY SELL PRO(ZeeShan)BTC Accum/Dist BUY SELL PRO is a volume-based indicator designed for Bitcoin. It uses Accumulation/Distribution with EMA cross and trend slope to highlight smart-money buying and selling zones, showing clear BUY/SELL arrows, trend background, and alerts.
StO Price Action - Panel US Economy DataShort Summary
- Displays selected us economic data as a time series graph
- Economic indicator name shown in the upper-right corner
- Designed as a lightweight fundamental context overlay
Full Description
Overview
- Plots economic macro data as a continuous graph
- Combines visual trend context with clear textual identification
Supported Economic Data
- CPI – Consumer Price Index
- CIR – Core Inflation Rate (YoY)
- IRYY – Inflation Rate (YoY)
- IJC – Initial Jobless Claims
- JC4W – Jobless Claims (4-Week Average)
- NFP – Nonfarm Payrolls
- UR – Unemployment Rate
Graph Behavior
- Selected economic series is rendered as a line graph
- Graph color is user-configurable
Label Display
- Full descriptive name of the selected indicator
- Fixed position in the upper-right corner
Usage
- Helps identify macro trends alongside price action
- Useful for bias alignment on higher timeframes
- Works well with Trend-following Systems or higher-timeframe structure analysis
Notes
- Economic data is informational and non-predictive
- Not a signal or timing tool
- Best used as contextual background not standalone input
Previous Day Range MarkerThis indicator highlights the high and low of the last confirmed candle on the current timeframe and optionally displays the range of the previous trading day (Daily) on lower timeframes.
It also calculates and shows the candle range in percent, helping traders quickly assess volatility and higher-timeframe context.
All levels are plotted forward into the future and can be individually enabled or disabled.
Dealer Control Index (DCI) Oscillator BreakoutsOverview
The Dealer Control Index (DCI) is a structural oscillator designed to measure market stability based on the relationship between price and key institutional "hedging levels" (Gamma Flip). Unlike momentum-based oscillators like RSI, the DCI focuses on Dealer Gamma Exposure—the point where market makers shift from supporting price (Long Gamma) to accelerating moves (Short Gamma).
How to Use
This indicator requires a Manual Anchor (Flip Level) to function with high precision. Users should identify the current institutional Gamma Flip level for their specific ticker and input it into the script settings.
Positive Score (+25 to +100): Price is above the Flip Level. Dealers are in a "Long Gamma" position, typically resulting in lower volatility and "dip-buying" behavior.
Neutral Zone (-75 to +25): The "Transition Zone." Price is fluctuating near the hedge-rebalancing point. Expect "choppy" price action.
The Gamma Trap (-75 to -100): Price has snapped significantly below the Flip Level. Dealers are now "Short Gamma" and may be forced to sell into further price drops to hedge their books, potentially creating a "Waterfall" effect.
Key Features
Volatility Normalized: Uses ATR-based normalization to ensure the -100 to +100 scale is consistent across different asset classes (e.g., comparing SPY to NVDA).
Sigmoid Smoothing: Employs a sigmoid curve to filter out "market noise" and provide a clear visual of when the regime shift is actually occurring.
Visual Regimes: Color-coded zones (Green/Red) provide instant feedback on the current dealer hedging bias.
Session VWAP Cumulative BiasThe Session VWAP Cumulative Bias indicator is designed to differentiate between "choppy" price action and true "institutional" trend days. Unlike standard VWAP indicators that only show where price is now, this tool tracks the cumulative sentiment of the entire session.
Core Functions:
Cumulative Z-Score Logic: It calculates the distance between price and VWAP (in Standard Deviations) and sums it up over the course of the day. This reveals the "weight" of the market bias—the longer price stays pinned away from the VWAP, the more extreme the histogram becomes.
Scale Protection: It includes a "Capping" mechanism that prevents morning gaps or low-volume outliers from distorting the scale, ensuring the histogram remains readable from open to close.
Momentum vs. Regime Toggles: Users can switch between VWAP Slope (measuring the speed of the average's movement) and Cumulative Bias (measuring total session dominance).
Visual price Overlay: It automatically colors the price candles and plots a session-anchored VWAP line on the main chart, providing a clear visual of when price is "fair" versus "overextended."
How to read it:
Trend Confirmation: A steadily growing "mountain" in the histogram confirms an institutional trend day where dips are being bought (or rips sold).
Mean Reversion: When price hits a new high but the Cumulative Histogram begins to round off or diverge, it signals that the "elastic band" is stretched and price is likely to return to the orange VWAP line.
Regime Shifts: A cross of the zero-line on the histogram indicates a total shift in session control from buyers to sellers (or vice versa).
AHR999 Index (Renewed)AHR999 Indicator
The AHR999 Indicator is created by a Weibo user named ahr999. It assists Bitcoin investors in making investment decisions based on a timing strategy. This indicator implies the short-term returns of Bitcoin accumulation and the deviation of Bitcoin price from its expected valuation.
When the AHR999 index is < 0.45, it indicates a buying opportunity at a low price.
When the AHR999 index is between 0.45 and 1.2, it is suitable for regular investment.
When the AHR999 index is > 1.2, it suggests that the coin price is relatively high and not suitable for trading.
In the long term, Bitcoin price exhibits a positive correlation with block height. By utilizing the advantage of regular investment, users can control their short-term investment costs, keeping them mostly below the Bitcoin price.
ICT 7/8/9am lines NY session + 7.30/8.30/9.30 linesThis script show the 7, 8, 9 AM NY session lines, together with the 7.30, 8.30 and 9.30AM lines, like ICT teaches in the 2024 Mentorship, lesson 2.
Feel free to use it!
Smart Scalper Pro Template + VWAP
📌 Author
Garry Evans
Independent system developer focused on:
Risk-first automation
Market structure & liquidity behavior
Discipline, consistency, and capital preservation
“The edge isn’t the market — it’s the man who survives it.”
⚙️ Risk Management & Position Sizing
The script is built around capital protection, not signal frequency.
Risk logic includes:
Fixed or dynamic risk per trade
Market-adaptive position sizing
Session-based trade limits
Daily trade caps and auto-lockout protection
Volatility-aware sizing (futures & crypto)
⚠️ Profit is pursued only after risk is controlled.
📊 Track Record
Backtested across multiple market environments
Forward-tested and actively used by the author
Real-account trades are logged where platform rules allow
Results vary by market, timeframe, and user-defined risk settings.
🌍 Supported Markets
Designed to work across all liquid markets, including:
Stocks
Crypto (spot & futures)
Options (signal-based framework)
Futures (indices, metals, crypto futures)
The system adapts to volatility and structure — it is not market-specific.
⚖️ Leverage
Leverage is not required
If used, leverage is fully user-controlled
Risk logic scales exposure conservatively
No martingale.
No revenge sizing.
No over-exposure logic.
🧪 Backtesting
✔ Yes
Strategy logic has been backtested
Filters reduce chop, noise, and forced trades
Focus on drawdown control over curve-fitting
🛠 Support
✔ Yes
Direct author support
Ongoing improvements and updates
Feature refinement based on real usage and feedback
👥 Community
✔ Yes
Private user access
High-quality feedback environment
No public signal spam or hype-driven chat rooms
⏳ Trial Period
✔ Yes
Limited trial access available
Designed for evaluation only
Trial users do not receive full feature access
🚫 Who This Script Is NOT For
This system is not for:
Traders looking for guaranteed profits
Users expecting copy-paste “signal calls”
Over-leveraged gamblers
Those unwilling to follow risk rules
Anyone seeking overnight results
This is a discipline and automation tool, not a shortcut.
🧠 Final Positioning
This is not a signal service.
This is a risk-controlled execution framework designed to:
Enforce discipline
Reduce emotional trading
Protect capital during bad market conditions
Scale responsibly during favorable ones
Auto Fib Prev-Week Only for [4H+ Swing]Maps the previous week Fib levels:
Captures real supply & demand.
Defines where price was accepted or rejected.
Creates levels that current price must respect.
This indicator locks those levels in place and extends them forward.
What the levels represent:
- Previous Week High / Low
- Major boundaries. Breaks require momentum.
- 50% Level
- Balance point. Chop and indecision are common here.
- 61.8% Levels (Bull & Bear)
- Primary mean-reversion zones.
- Most reliable reaction levels.
- 78.6% Levels
- Last defense before trend failure or expansion.
- Extensions (1.214 → 2.618 / negatives)
- Exhaustion and target zones.
Working....
Dashboard (bottom-right)
- Nearest Sup / Res – Closest actionable level
- On Level? – Price is currently reacting at a level
- UpBreak% / DnBreak% – Probability of breaking vs rejecting
- Bias – Market posture (UP / DOWN / NEUTRAL)
- Tol – Sensitivity used for level detection
BLUF: Maps last week’s structure forward to identify high-probability reaction zones and whether price is more likely to revert or break.
Squeeze Indicator Squeeze Indicator is a volatility-focused indicator designed to identify periods of compression and the early transition into expansion.
It measures Bollinger Band Width (BBW) using a 20-period Bollinger Band to quantify how tightly price is coiling, then smooths BBW with a 16-period SMA and a faster 8-period EMA to distinguish structural compression from short-term changes in volatility.
The BBW itself is displayed as a subtle grey filled area to emphasize relative contraction and expansion, while a squeeze condition is highlighted whenever BBW falls below both its SMA and EMA, signaling an environment where volatility is suppressed and a directional move is more likely to follow.
Crossovers of the EMA above or below the SMA provide early warnings of volatility expansion or renewed compression, making the indicator especially useful for timing breakouts, anticipating regime shifts from range to trend, and managing options strategies that depend on changes in volatility rather than price direction.






















