Cryptocurrency Dual-System Color-Changing Moving AveragesCryptocurrency Dual-System Color-Changing Moving Averages: Advanced Multi-Timeframe Trend Analysis
Innovative Core Concept
Our indicator introduces a revolutionary approach to trend analysis by integrating dual moving average systems with intelligent visual feedback mechanisms. Unlike traditional moving average indicators that simply display lines or basic crossovers, our system provides dynamic, multi-dimensional trend intelligence through three key innovations:
Dual Independent Moving Average Systems - Two complete 7-period moving average systems operate simultaneously, offering independent trend confirmation while maintaining visual harmony through unified color coding.
Intelligent Color-Changing Algorithm - Each moving average dynamically changes color based on its individual trend strength, creating a visual heatmap of momentum across different timeframes.
Holistic Market State Visualization - The entire candlestick chart changes color based on overall trend alignment, providing immediate visual confirmation of market regimes.
Comprehensive Functionality and Implementation
What It Does
This indicator performs multi-timeframe trend analysis across 14 moving averages (7 for each system), calculating individual trend strength for each line and determining overall market alignment to provide clear visual signals for different market conditions.
How It Works
Primary Trend Strength Calculation:
For each moving average, the indicator calculates a proprietary trend strength value by analyzing the net directional movement over a user-defined lookback period. This quantifies whether the moving average is consistently rising, falling, or consolidating.
Color Coding Logic:
Blue: Moving average shows strong upward momentum (trend strength exceeds positive threshold)
Orange: Moving average shows strong downward momentum (trend strength falls below negative threshold)
Gray: Moving average shows neutral/consolidating behavior
Market Regime Detection:
The system analyzes the alignment of three key moving averages (short-term, medium-term, and long-term) from the Main MA System to determine the overall market state:
Bullish Alignment: Short-term MA > Medium-term MA > Long-term MA (candlesticks turn blue)
Bearish Alignment: Short-term MA < Medium-term MA < Long-term MA (candlesticks turn orange)
Consolidation: No clear alignment pattern (candlesticks turn white)
Implementation Methodology
Our approach combines several established technical analysis concepts with unique enhancements:
Multiple Timeframe Analysis (MTFA) - We simultaneously analyze 7 different time periods (21, 55, 89, 144, 200, 450, 800) to capture trend dynamics across short, medium, and long time horizons.
Trend Strength Quantification - Instead of relying on simple crossovers, we calculate a proprietary trend strength metric that measures both direction and momentum consistency.
Visual Pattern Recognition Enhancement - By color-coding both the moving averages and the price bars, we leverage human visual processing capabilities to quickly identify market states and potential reversals.
Dual Confirmation System - The two independent moving average systems (Main System and EMA System) provide layered confirmation, reducing false signals and increasing reliability.
Practical Application and Usage Guidelines
Setup and Configuration
Main Moving Average System:
Configure your preferred moving average type (SMA, EMA, WMA, or HMA) and select which of the 7 periods to display. Each period can be individually enabled or disabled based on your analysis needs.
EMA System Configuration:
The secondary EMA system provides additional trend confirmation. Adjust its transparency to visually distinguish it from the Main System while maintaining chart clarity.
Trend Sensitivity Adjustment:
The "Trend Strength Threshold" parameter allows fine-tuning of color change sensitivity. Lower values make the indicator more responsive to minor trends, while higher values require stronger momentum for color changes.
Strategic Trading Applications
1. Trend Identification and Confirmation Strategy
Bullish Confirmation: Look for predominantly blue moving averages across multiple timeframes accompanied by blue candlesticks
Bearish Confirmation: Look for predominantly orange moving averages across multiple timeframes accompanied by orange candlesticks
Trend Weakness Detection: Watch for moving averages changing from blue to gray/orange or from orange to gray/blue
2. Multi-Timeframe Alignment Trading
High-Probability Entries: Enter positions when all three key timeframes (short, medium, long) align in the same direction
Exit Signals: Consider reducing positions when timeframes begin to diverge or when candlestick color changes to white (consolidation)
3. Support and Resistance Identification
Moving averages serve as dynamic support/resistance levels
Color changes at these levels indicate whether support/resistance is strengthening or weakening
4. Market Regime Adaptation
Trend-Following Mode: During blue/orange candlestick periods, employ trend-following strategies
Range-Trading Mode: During white candlestick periods, employ range-bound or mean-reversion strategies
Core Philosophical Framework and Calculation Logic
Underlying Technical Analysis Principles
Our indicator is built upon the principle that trends exist simultaneously across multiple timeframes, and the convergence or divergence of these timeframes provides valuable information about trend strength and potential reversals.
Calculation Methodology
Trend Strength Formula:
For each moving average, we calculate:
Sum of upward movements over the lookback period
Sum of downward movements over the lookback period
Net directional bias as a normalized value between -1 and +1
This approach provides a more nuanced understanding of trend momentum compared to simple directional analysis.
Threshold-Based Classification:
Values above the positive threshold indicate sustainable upward momentum
Values below the negative threshold indicate sustainable downward momentum
Values within the threshold range indicate consolidation or weak trends
Why This Approach Is Effective
Early Warning System: Color changes in individual moving averages often precede overall market regime changes, providing early reversal signals.
Noise Reduction: By requiring alignment across multiple timeframes for candlestick coloring, we filter out false signals common in single-timeframe analysis.
Visual Processing Efficiency: The color-coded system allows rapid interpretation of complex multi-timeframe information, reducing cognitive load during fast market conditions.
Adaptability: Configurable parameters allow adjustment for different market conditions (high volatility vs. low volatility) and trading styles (scalping vs. position trading).
This indicator is particularly valuable for cryptocurrency trading due to the market's characteristic high volatility and strong trend tendencies. By providing clear visual cues about trend strength and alignment across multiple timeframes, it helps traders remain aligned with the dominant market direction while avoiding periods of choppy, directionless price action.
The system's dual-layer confirmation (moving average colors + candlestick colors) creates a robust framework for identifying high-probability trading opportunities while maintaining flexibility to adapt to changing market conditions.
Padrões gráficos
ICT SMT [Pro] (fadi)Smart Money Technique (SMT) is a powerful tool used to identify institutional accumulation or distribution. It occurs when one asset makes a lower low (or higher high) while a correlated asset fails to do so, making a higher low (or lower high) instead. This divergence shows strong buying or selling pressure on the asset that failed to break its level.
While SMT is a high-probability confluence, tracking it manually is a distraction. It forces you to take your focus away from price action to constantly monitor highs and lows across two or more different charts.
ICT SMT automates this entire process , identifying the "crack in correlation" in real-time so you can stay focused on your trade execution, and draws the SMT levels right on your chart.
Core Functionality & Logic
✅ Intelligent Symbols Matching
When you load a chart, ICT SMT will look for the best matching symbols by parsing your current chart to understand its asset type and exchange. It will then run propriety logic to match contract size and exchange, if needed.
It intelligently recognizes contract sizes. If you are viewing NQ, it automatically compares it against ES. If you switch to MNQ (Micro), it instantly adapts to compare against MES (Micro).
And if you are trading Forex or Crypto for example, accuracy in SMT is often ruined by comparing data from different liquidity providers. ICT SMT automatically identifies your current chart's provider and reuses that same exchange for the target asset whenever possible (e.g., OANDA to OANDA). This ensures the divergence is based on synchronized price feeds, eliminating "fake" signals caused by exchange price gaps.
Global Mapping: This system works across all asset classes. While it provides optimized defaults, traders have full control via a flexible mapping system to pair any symbol or override the defaults as needed.
✅ Live SMT Detection
ICT SMT evaluates price action as the current candle develops. An SMT is identified the moment one asset breaks its logical level while the other fails to do so, providing real-time feedback before the candle even closes.
Depth Sensitivity: Users can select the depth of analysis via a dropdown menu (Small, Medium, or Large) to define how the engine builds its logical levels.
✅ Session-Specific Filtering
To ensure the highest probability setups, ICT SMT uses time-based logic to enable or disable the calculation engine. You can configure up to four custom trading sessions (e.g., London, NY AM, NY PM). SMTs are only processed within these windows, keeping the chart clean and optimized for peak performance.
✅Alert Engine
Stay informed of market shifts without needing to hover over the screen. The script includes a professional alert suite:
• SMT Detected (Intra-Candle): Triggers the moment a divergence begins forming in real-time.
• SMT Confirmed: Triggers once the candle closes, validating that the divergence held through the completion of the interval.
How it Works
Add the indicator to your chart
Make sure the assets you trade are on the list, modify it if needed
You are done! Trade and navigate your charts as usual
When a new symbol is loaded, the indicator identifies the symbol type and exchange
Performs a lookup to find matching pairs in the mapping list
Based on the type, automatically adjusts the matching pairs to match the exchange and size for data consistency.
As new candles are formed, the indicator builds a list of the best logical levels to compare from each symbol and compares the two in real-time to identify the divergence.
Settings & Configurations
✅ General Settings
Show no more than - Limits the number of active SMT labels visible on the chart at once to prevent visual clutter.
Type of SMT to show - Choose between Bullish SMT, Bearish SMT, or \'Both\' to filter the signals based on your current market bias.
Lookback depth - Determines the lookback period for our proprietary pivot logic. Higher values analyze a longer history; lower values prioritize the most recent institutional movements.
Show 2 Candles SMT - When enabled, the indicator looks for SMT divergences occurring within a tight 2-candle window, ideal for high-speed \'Intra-Candle\' scalping setups.
Detect one SMT per pivot - Ensures that each logical swing high or low only generates a single signal, preventing duplicate labels on the same price move.
Delete irrelevant SMT - Automatically removes SMT labels if price moves past the pivot point, keeping your chart focused only on valid, tradeable confluences.
✅ Display Settings
Link - Customizes the appearance of the line connecting the two assets\' price points. Adjust the color and thickness to match your chart theme.
Label - Toggles the SMT text labels. You can adjust the color, size, and transparency to ensure the signals are visible but not distracting.
✅ Session
Sessions 1 to 4 - Defines a specific trading window. Enable to filter SMT detection within your chosen times to minimize market noise.
✅ Alerts
Alert on real-time SMT (Noisy) - Triggers the moment a divergence is detected in real-time. This provides an early warning during the formation of a wick, but may disappear if price action recovers before the candle closes
Alert on confirmed SMT - Triggers only after the candle closes. This ensures the SMT is locked in and validated by the final price, eliminating temporary signals.
✅ Pairing
Pairs - This is the Global Mapping engine. By default, it automatically detects your chart (e.g., NQ to ES). Use these fields to manually override or add specific pairs (e.g., DXY or specific Crypto exchanges). Invert: "Flips the price calculation for the secondary symbol. This is essential when comparing positively correlated assets against negatively correlated ones, such as EURUSD vs. DXY.
🔥 Usage Methodology
In ICT theory, SMT is a powerful confluence, not a standalone signal. It is important to note that Traders should not rely on SMT alone for entries. This tool is designed to support existing trade ideas, such as confirming a daily bias, a Fair Value Gap (FVG), or a run on liquidity. It acts as a "confirmation of intent" within your broader trading framework.
Disclaimer: Trading involves significant risk. ICT SMT is a technical analysis tool and does not constitute financial advice or a guarantee of profit.
XABCD Harmonics [theUltimator5]This indicator automatically identifies common harmonic reversal structures (XABCD) directly on the chart using a pivot engine designed for real-world price action, with customizable entry, stop loss, and target points.
Visual Effects:
Point labels (X, A, B, C, D)
Ratio labels (leg-to-leg Fibonacci relationships)
A structured trade plan overlay: Entry, Stop, Target 1, Target 2 with dynamic horizontal levels that terminate when price touches them (including gap crosses)
It also supports forming pattern projections (XABC → projected D) so you can see likely completion zones before D is confirmed.
You can select between two distinct methods of pivot detection:
ATR Pivots - Average True Range (ATR) pivots use volatility to decide when a swing is “real.” Instead of waiting for a fixed number of bars, the pivot triggers when price reverses by a meaningful distance relative to current volatility.
Standard Pivots - Standard pivots behave more like a classic pivot/zigzag approach: they focus on structural highs/lows over a rolling window and register pivots when direction changes.
Your harmonic results depend heavily on pivot quality. ATR pivots are more effective in volatile and fast moving markets, while standard pivots are most effective at catching the more obvious highs and lows. Each method has strengths and weaknesses, and it is suggested that you test both to determine which best fits your trading style.
Pattern Length: Short vs Long (Sensitivity & scale)
Pattern Length controls how sensitive the pivot engine is, which changes the scale of patterns you’ll detect:
Short
More sensitive swing identification
More frequent patterns, tighter structures
Better for intraday or scalping-style harmonic setups
Long
More conservative swings
Fewer but larger patterns, cleaner legs
Better for higher timeframe swing/position setups
Harmonic Patterns
There are several hard coded harmonic patterns that this indicator identifies and plots. Each can be manually enabled or disabled.
Supported patterns are:
Butterfly, Gartley, Bat, Crab, Cypher, Shark, AB=CD, and 3-drives
All patterns are evaluated from five points: X → A → B → C → D.
Butterfly
AB/XA ≈ 0.786
BC/AB = 0.382 → 0.886
CD/BC = 1.618 → 2.618
AD/XA = 1.27 → 1.618
Gartley
AB/XA ≈ 0.618
BC/AB = 0.382 → 0.886
CD/BC = 1.272 → 1.618
AD/XA targets 0.786 (classic Gartley completion)
Bat
AB/XA = 0.382 → 0.50
BC/AB = 0.382 → 0.886
CD/BC = 1.618 → 2.618
AD/XA targets 0.886 (classic Bat completion)
Crab
AB/XA = 0.382 → 0.618
BC/AB = 0.382 → 0.886
CD/BC = 2.618 → 3.618
AD/XA targets 1.618 (deep/extreme completion)
Cypher
AB/XA = 0.382 → 0.618
BC/AB = 1.13 → 1.414
CD/BC = 1.272 → 1.618
AD/XA targets 0.786
Shark
AB/XA = 1.13 → 1.618
BC/AB = 1.618 → 2.618
CD/BC = 1.618 → 2.24
AD/XA = 0.886 → 1.13
Plus a structural rule: D must extend beyond X
(Rare pattern - no current examples)
AB=CD
AB/XA = 0.382 → 0.886 (structure filter)
BC/AB = 0.382 → 0.886
CD/AB = 0.90 → 1.10 (equality tolerance)
3-Drives
AB/XA = 0.618 → 0.786
BC/AB = 0.618 → 0.786
CD/BC = 1.27 → 1.618
Note: Some patterns are much more rare to see than other patterns due to their tight constraints. You will see a lot more AB=CD (off by default) and 3-drives patterns than anything else. This is normal. If you see too many of one pattern, you can turn it off to "de-clutter" your chart.
There are multiple labels that can be toggled on or off.
Pattern Names - (what the indicator is actually showing) are displayed below (bullish) or above (bearish) the chart pattern
Ratio Labels -
When ratio labels are enabled, the indicator prints these relationships on the chart:
XB label = AB / XA
AC label = BC / AB
BD label = CD / BC
For AB=CD, BD shows CD / AB (equality check)
XD label = AD / XA
These are computed from vertical price distance (absolute price moves), so they remain consistent regardless of time spacing.
Point Labels - These are the XABCD labels that appear on all patterns.
Custom Patterns
If you don't see a harmonic pattern that you are used to tracking, or want to try out a new harmonic ratio, you can create a custom pattern. The custom pattern uses user-defined harmonic rules for each segment.
XB Min/Max → AB/XA allowable range
AC Min/Max → BC/AB allowable range
BD Min/Max → CD/BC allowable range
XD Min/Max → AD/XA allowable range
Plus a Custom Pattern Name for labeling
You can make the pattern as crazy as you want, or keep it in line with existing theory.
When a pattern is currently forming, you can enable Show Harmonic Projections.
Showing harmonic projections uses XABC points that have already plotted and project forwards the "D" point to the ideal spot for the forming pattern.
When “Show Harmonic Projections” is OFF, the indicator only prints patterns when Point D is confirmed and structure rules validate direction:
When “Show Harmonic Projections” is ON, the indicator uses the most recent XABC structure to forwards project D.
This is meant to show “where D would be” if the structure finishes cleanly.
Trade Plan Overlay: Entry, Stop, Target 1, Target 2
Once a confirmed pattern completes at D, the indicator computes levels from the pattern’s total vertical range:
Pattern Range
The indicator defines pattern range as:
Highest price among X/A/B/C/D
minus
Lowest price among X/A/B/C/D
Level logic (bullish vs bearish)
All levels are calculated as a multiplier × pattern range offset from Point D:
Bullish
Entry is plotted above D
Stop is plotted below D
Targets are plotted above Entry
Bearish
Entry is plotted below D
Stop is plotted above D
Targets are plotted below Entry
You can fully customize entry, stop, T1, and T2 to meet your personal trading style and risk appetite.
Dynamic Level Lines (terminate-on-touch)
A core feature of this script is that Entry/SL/T1/T2 lines are not infinite.
Each horizontal level:
Extends forward from the pattern (up to your Max Number of Bars setting)
Terminates automatically when price touches it or crosses over it
Each line has outcome labels, which terminate with a check (✓) or and X (✗)
Each level receives a status label:
Entry ✓ when entry is touched
T1 ✓ / T2 ✓ when targets are achieved before a stop-out
T1 ✗ / T2 ✗ when price stops out before reaching the target
SL ✓ when the stop is actually hit
This creates a clean “story” on the chart: you can visually audit whether patterns historically reached targets or failed.
If a price move happens too quickly after a confirmed pattern and skips the entry point and first target within the same bar, the labels all turn orange and identify the pattern as a skipped pattern. If this occurs, the pattern is likely either too short to provide a wide enough range, or extreme volatility immediately preceded the pattern, giving insufficient reaction time.
Display Settings
Max extension length for Entry/Stop/Targets
Bullish/Bearish color theming
Optional historical plotting (so you can review past occurrences)
Info Table
A compact table (position configurable) displays:
Pivot Type (ATR vs Standard)
Pattern Length (Short vs Long)
Active Pattern (If there is an active pattern trading opportunity)
Alerts
The script supports alerts for:
New pattern detected
Entry touched
Stop touched
T1 touched
T2 touched
These alerts are designed to trigger at the moment the level is first interacted with (including gaps), so you can automate notifications without babysitting.
Practical tips
If you’re seeing too many patterns: switch to Long length or Standard Pivots
If you’re seeing too few patterns: switch to Short length or ATR Pivots
Use Projections when you want early warning / “PRZ watch zones”
Use the dynamic level lines for quick historical validation (targets vs failures)
Disclaimer
This indicator is a pattern-recognition and visualization tool. It does not predict the future and should not be used as financial advice. Always confirm with context (trend, structure, liquidity, higher timeframe levels, risk management).
T-Theory - by: Terry LaundryThis script is brought to you, via inspiration by trader Marty Schwarz. His book titled Pit Bull is widely available - for free on PDF. He credits Terry Laundry with the T-Theory, also available for free on look-up.
Here is a description provided on Gemini AI. T-Theory, developed by Terry Laundry, is a technical analysis methodology based on the principle of Time Symmetry. It posits that the market spends an equal amount of time building up energy (the "Magic T") as it does releasing that energy in a trending move.
Here is an objective summary of its core mechanics:
1. The Principle of Symmetry
The central law of T-Theory is that the duration of a market's "cash buildup" phase (the left side of the T) will be matched by the duration of the "run" phase (the right side of the T).
The Center Post: This represents the peak of a market's internal strength or momentum.
The Left Wing: The time from a previous low to the center post.
The Right Wing: The projected time from the center post to the end of the new trend.
2. Time over Price
Unlike many technical indicators that focus on price targets, T-Theory is almost entirely focused on time targets. It suggests that once a "T" is identified, the trend will persist until the time symmetry is exhausted, regardless of how high or low the price goes during that window.
3. Magic T's and Sub-T's
The theory operates on a hierarchical basis:
Grand Macro T's: These define long-term secular trends and can span years.
Minor T's: These represent shorter-term bursts of momentum within a larger trend.
The Law of Proportion: Larger horizontal wings (more time spent consolidating) necessitate larger vertical posts (more significant momentum shifts), creating a visual hierarchy on the chart.
4. Identification via Oscillators
While you requested the script focus on price action, Laundry originally identified these "buildup" phases using the McClellan Oscillator. He looked for periods where the oscillator showed "strength" (buildup) followed by a "breakout" from a trendline on the oscillator itself, which marked the center post of the T.
Key Visual Characteristics
Non-Intersection: In a clean T-Theory setup, the horizontal "wings" represent time spans and should ideally sit above or below the price action to clearly define the period of the trade without being obscured by daily volatility.
The Center Post Gap: The vertical post should be near the price data to show the point of origin for the momentum, but it requires enough "room" to remain distinct.
Time LineUse it to mark out start times, using it personally to mark 8am starting zone but I'm sure you may have other uses
HoneG_CCIv19HoneG_CCIv19
This is a signal tool capable of both counter-trend and trend-following trading. Apply it to 1-minute charts.
For trend-following, it features a rapid-fire mode. When conditions align, rapid-fire mode activates, and two indicators signaling the rapid-fire timing will turn ON/OFF in sync with price extension moments.
逆張りも順張りも出来るサインツールです。1分足チャートに適用してください。
順張りには連打モードがあり、条件が揃うと連打モードが発動し、連打タイミングを知らせる二か所の表示が、価格が伸びるタイミングに合わせてON/OFFします。
Pro Structure: Precision MSS/BOS & Extended FVG1. Precision Structure Mapping (BOS & MSS) Unlike standard ZigZag indicators that just connect pivots, this script visualizes the exact "Break" point:
MSS (Market Structure Shift): Displayed as a Thick Solid Line. This signals a potential trend reversal (e.g., breaking a Lower High in a downtrend).
BOS (Break of Structure): Displayed as a Thin Dashed Line. This signals trend continuation in the current direction.
Visual Logic: The lines originate exactly from the Swing Pivot and terminate exactly at the candle that closes beyond that pivot, providing instant visual confirmation of the break.
2. Trend-Filtered Fair Value Gaps (FVG) To reduce "Analysis Paralysis," this indicator uses an active trend filter:
Bullish Trend: Only Bullish FVGs (Green) are highlighted. Bearish FVGs are hidden to prevent counter-trend confusion.
Bearish Trend: Only Bearish FVGs (Red) are highlighted.
Extended Zones: FVG boxes are automatically projected forward (default: 5 candles) to help identify immediate entry zones before price returns to them.
3. Clean Aesthetics The chart remains minimal. Labels are non-intrusive, and color coding is strictly defined (Green for Bullish structure/FVGs, Red for Bearish structure/FVGs), allowing for rapid decision-making.
Settings
Swing Detection Length: Customize the sensitivity of the structure (lower for scalping, higher for macro trends).
FVG Extension: Control how far into the future the FVG boxes are drawn.
Visuals: Fully customizable colors and label options.
This tool is intended to assist in identifying high-probability structural points and aligned entry zones.
SWING STRATEGY (YALGOS ENGINE)System Overview: SWING STRATEGY (YALGOS ENGINE)
1. What does the system do? This is a smart Trend Following system designed for Swing Trading (medium-term) or Day Trading (intraday). Its unique feature is that it functions as an Independent Simulator: Although it is technically an "Indicator" (and not an official TradingView "Strategy"), it manages an internal trading log, calculates Profit/Loss, and displays a real-time performance table directly on your screen.
2. How does the "Engine" work? (The Logic) The heart of the system is an Adaptive SuperTrend algorithm. Unlike a standard SuperTrend that uses fixed settings, this system "senses" the market and adjusts dynamically:
Volatility Detection: It constantly monitors how volatile the market is (using ATR relative to price).
Automatic Adjustment:
High Volatility ("Stormy Market"): The system widens the Stop Loss line (the trend line) to avoid being stopped out by random market noise.
Low Volatility ("Calm Market"): The system tightens the Stop Loss line to catch the trend early and maximize profit.
3. How are decisions made?
Long Entry (Buy): When the price crosses the trend line upward (the line turns Green).
Short Entry (Sell): When the price crosses the trend line downward (the line turns Red) — only if Short is enabled in the settings.
Exit: When the trend reverses, or when the price touches the trend line (which acts as a Trailing Stop).
4. Visual Features (What you see)
Performance Dashboard: A table displayed on the chart showing the number of trades, the Win Rate, and the Net Profit for the selected time range (e.g., "Last 3 Months").
Result Lines: The system draws a line connecting the entry point to the exit point.
Green/Blue Dotted Line: The trade ended in profit.
Orange Dotted Line: The trade ended in a loss.
Chart Labels: Clear BUY and SELL labels, and a small X marker if the trade was closed due to a Stop Loss hit.
Summary This system essentially "dances" with the market: it gives the price room to breathe when the market is wild, and keeps a tight leash when the market is calm, all while providing you with a transparent snapshot of its historical performance.
Renko Top 2 Picker### **1s Renko Momentum Scanner (HMA Zero-Lag Edition)**
This custom TradingView indicator is engineered specifically for high-frequency Renko traders. It solves the critical problem of identifying which major currency pair has the liquidity and directional inertia to sustain a fixed-brick Renko trend on a 1-second chart.
Because TradingView cannot screen 1-second data directly, this script acts as a "bridge," analyzing 1-minute and 5-minute flow metrics to probability-score the likely performance of a 1-second chart.
---
### **Core Logic & Assumptions**
1. **The "Engine" (HMA 300):**
* **Logic:** The script uses a Hull Moving Average (HMA) with a length of 300 to smooth the scoring output.
* **Why:** On a 1-second chart, 300 bars equals 5 minutes of data. The HMA provides a "Zero-Lag" response, reacting instantly to new breakouts while ignoring the split-second noise that causes standard scanners to flicker.
2. **The "Minute Reset" Solution:**
* **Problem:** Standard scripts fail on 1s charts because metrics like "Current Volume" reset to zero at the start of every new minute (e.g., at 10:05:00), causing signals to crash.
* **Solution:** This script calculates momentum using a "Rolling Window" anchored to the *previous* minute's close and volume. This ensures the signal remains stable and tradable across the :59 to :00 second boundary.
3. **Renko-Specific Scoring:**
* **Displacement > Direction:** The script prioritizes *how far* price is moving (Displacement %) over simple direction. Renko bricks require physical distance to form; without displacement, you pay spread costs for a flat chart.
* **Liquidity Gating:** It ignores pairs with low relative volume. A 1-second Renko chart requires high institutional flow to form clean bricks without gapping.
---
### **Indicator Inputs**
* **Refresh Display (Seconds):**
* *Default: 5*
* Controls how often the text on your screen updates. Set this to 5 or 10 seconds to prevent the text from "dancing," allowing you to read the recommendation clearly.
* **Score Smoothing (HMA):**
* *Default: 300*
* The "Memory" of the scanner.
* **300:** Represents a 5-minute lookback. Recommended for most 1s scalping to identify established trends.
* **120:** Represents a 2-minute lookback. Use this only if you want to catch breakouts aggressively and accept more false signals.
* **Table Position:**
* *Default: Bottom Right*
* Choose where the scanner panel appears on your chart to avoid covering your Renko price action.
* **Major Pairs:**
* *Defaults: EURUSD, GBPUSD, USDJPY, USDCHF, AUDUSD, USDCAD, NZDUSD*
* These fields are pre-filled with the standard "FX:" prefix. **Crucial:** If your broker uses suffixes (e.g., "EURUSD.pro" or "EURUSDm"), you must update these inputs to match your broker's specific symbol format, or the scanner will return "N/A".
---
### **How to Interpret the Output**
The panel displays a **Primary** and **Secondary** recommendation.
* **Green Background:** The pair has a "Strong" score (> 4.0). This indicates high probability conditions for 1s Renko trend following.
* **Gray Background:** The pair is the "best of the bunch," but overall market momentum is weak. Exercise caution, as the 1s chart may be choppy.
Smart Floors & Ceilings [RSI + Volume] - MarcDuckMarks floors and ceilings based off of RSI and Volume
Sessions Moving Fib + ES SMT Divergence This indicator automatically tracks the high and low of the Asia, London, and New York trading sessions and draws a dynamic (moving) Fibonacci range for each session.
The Fibonacci levels update in real time as the session develops and then extend forward once the session ends, giving clear intraday reaction zones.
In addition, the indicator detects SMT-style divergences on ES (S&P 500 futures) by comparing price structure against another correlated market (default NQ).
This helps identify institutional divergence, where one market makes a higher high or lower low while the other fails — often signaling potential reversals or continuation traps.
This tool is designed for intraday futures traders, especially those trading ICT / SMT concepts, session-based liquidity, and market structure.
The Charlie Method - EnhancedThe Charlie Method is a precision-engineered 15-minute confirmation tool built for disciplined traders who wait for price to come to them.
It identifies only true bullish and bearish engulfing candles, visually marking them at the moment of confirmation and delivering immediate alerts.
No repainting. No noise. No distractions.
This method is best applied at key levels, liquidity zones, and session extremes, where confirmation matters most.
Trade less. Confirm more. Execute with intent.
Ingenuity Crazy Strategy Advance CloseThis indicator is designed to keep your trading simple and repeatable. By default, it is optimized for XAUUSD, during Tokyo session, on the 5-minute chart. The indicator automatically marks a tradable range and waits for price to break and confirm a direction. Once the signal appears, it’s as straightforward as buy or sell—no extra analysis or overthinking required.
After the first entry is taken, the indicator continues to monitor price. When price reaches a specific pip distance, it will automatically signal a second trade using the same risk, allowing you to scale into momentum without increasing complexity. The goal is to remove hesitation and reduce emotional decision-making, while still giving you structured trade opportunities.
This system is not meant to be over-tweaked. The logic is built to give clean entries as long as you’re using the correct session, pair, and settings.
🔧 Default Setup:
• Pair: XAUUSD
• Session: Tokyo
• Timeframe: M5 (5-minute)
⚠️ Important:
The default settings are only optimized for XAUUSD. To trade other pairs or timeframes and get the most consistent results, you must use the correct settings.
FVG (Visual) - Last N Bars + Delete 5 Bars After NEW TouchThis indicator shows the latest FVG visually and also indicates what type of FVG it is.
Al Sat Alpha Hunter System [MTF + Risk Manager]çok güzel yerlerden al sat komutu çıkıyor ve bunu size ücretsiz vermek istedim sizde faydalanın
Order Blocks & Breaker Blocks Destek DirencOrder Blocks & Breaker Blocks Destek Direnc Al Sat Bölgeleri
4H Synced Direction Divergence Alert US100 US500 US30Overview
This script monitors three index symbols on a 4-hour (4H) basis and triggers an alert only when their last completed 4H candles are time-synchronized and their directions diverge (i.e., not all close in the same direction).
What it does
Compares the 4H candle direction (UP / DOWN / FLAT) across:
US100 (reference clock)
US500
US30
Sends an alert on the confirmed close of the 4H candle (not mid-candle).
Includes a detailed alert message showing:
the 4H close time
direction for each symbol
open, close, and the close-open delta
How it works (high level)
Reference clock (sync anchor):
The script uses Symbol 1 as the timing reference for 4H candle boundaries.
Strict bar synchronization:
It validates that all three symbols share the same 4H time_close before comparing directions.
If any symbol is missing that specific 4H bar (gap) or doesn’t align to the same close timestamp, no alert is triggered.
No repaint / no lookahead:
Data is requested without looking ahead, so the comparison is based on completed candles only.
Duplicate protection:
The script remembers the last fired 4H close time and prevents repeated alerts caused by recalculation.
How to use
Add the script to a clean chart.
Set your preferred symbols in the inputs (default: US100 / US500 / US30).
Create an alert:
Condition: select this script
Choose “Any alert() function call” (required, because the script uses alert() for detailed messages)
When a synchronized 4H close occurs and directions diverge, you will receive a detailed notification.
Inputs
Comparison TF: default 240 (4H)
Symbol 1 (Reference clock): default CAPITALCOM:US100
Symbol 2: default CAPITALCOM:US500
Symbol 3: default CAPITALCOM:US30
Timezone for alert message: controls only the displayed timestamp in the alert text
Notes / limitations
This script is designed for cross-symbol candle comparison, so alignment matters. If your symbols have different trading sessions, gaps, or data availability, the script may intentionally skip alerts when candles are not perfectly synchronized.
The script is an informational alert tool and is not a trading signal by itself. Always confirm context, liquidity, and market conditions.
[codapro] Elite Momentum & Smart Money Detector
Elite Momentum & Smart Money Detector
Overview
The Elite Detector is a non-repainting indicator that merges Smart Money Concepts, Adaptive Volatility-Based Momentum, and Multi-Timeframe Trend Confluence to identify high-probability trade setups. This tool helps confirm institutional intent and market pressure before triggering actionable signals.
Core Systems
Smart Money Concepts (SMC)
• Highlights institutional order blocks
• Detects equal highs/lows as liquidity zones
• Automatically cleans up outdated zones for clarity
Adaptive Momentum Engine
• Momentum calculated with volatility-adjusted smoothing
• Normalized scale from -100 to +100
• Candle coloring reflects trend strength dynamically
Squeeze Detection System
• Flags volatility contraction zones using Bollinger and Keltner channels
• Background shading highlights compression zones
• Histogram shows directional breakout pressure
Multi-Timeframe Trend Validation
• Aligns signals with higher timeframe momentum
• Built-in logic auto-selects appropriate HTF per chart
• Reduces false signals and improves timing
Signal Logic
Buy Signal appears when:
Momentum crosses from negative to positive
Squeeze condition is active
Higher timeframe confirms bullish trend
Sell Signal appears when:
Momentum crosses from positive to negative
Squeeze condition is active
Higher timeframe confirms bearish trend
All signals are non-repainting and appear only once all conditions are met.
Visual Dashboard (Top-Right Corner)
Displays real-time confirmation across five categories:
Momentum: Current trend direction and strength
Squeeze: Indicates if volatility is compressed
HTF Trend: Confirms higher-timeframe alignment
Volatility: Current volatility phase (low, normal, or high)
Signal Status: Buy, Sell, or Neutral (Wait)
Chart Visuals
Candle Colors:
• Bright green/red = Strong momentum
• Faded green/red = Weak momentum
Background Colors:
• Orange = Squeeze is active
• Clear = Normal market activity
Boxes:
• Green = Bullish order blocks
• Red = Bearish order blocks
Dashed Lines:
• Red = Equal highs (liquidity zones above)
• Green = Equal lows (liquidity zones below)
Alert Conditions
Includes three prebuilt alerts for automation and webhook systems:
Elite Buy Signal
Elite Sell Signal
Squeeze Activation
These alerts allow users to respond to market shifts in real time or integrate with automated trading workflows.
Best Practices
Wait for Confluence: Confirm all three systems (momentum, squeeze, HTF trend) before entering
Watch Order Blocks: Institutional zones often act as support/resistance
Monitor Liquidity Zones: Be cautious of stop hunts near equal highs/lows
Use Dashboard Cues: Let the HUD validate your setup
Always Use Risk Management: This tool increases probability, not certainty
Example Setup:
1. Squeeze background appears
2. Buy signal triangle confirms
3. Dashboard shows: Momentum strong up, Squeeze on, HTF trend up
4. Price bounces off green order block
→ High-probability long entry
Why It Works
This tool leverages multiple uncorrelated concepts to filter low-quality trades and highlight setups with real institutional backing:
Order Blocks and Liquidity Zones track smart money footprints
Volatility-adjusted Momentum captures real energy shifts
Multi-Timeframe Confluence confirms trades in the broader context
Non-repainting signals ensure reliability
Final Note
The Elite Detector is designed to show you:
Where smart money is positioned,
When the market is coiling for a move,
and Which direction is supported by momentum and trend.
Use it as your high-probability entry engine — across any market or timeframe.
Disclaimer
This tool was created using the CodaPro Pine Script architecture engine — designed to produce robust trading overlays, educational visuals, and automation-ready alerts. It is provided strictly for educational purposes and does not constitute financial advice. Always backtest and demo before applying to real capital.
KJ Sessions : Asia/London/US + OverlapKJ Sessions : Asia/London/US + Overlap.
times are set as per dubai time.
Price action-based monitoring indicatorsPrice action-based indicators, EMA20, support, resistance, and candlestick charts.
ALL-IN ZONE X (EMA + BB + Swing + TP Panel)ALL-IN ZONE X is a technical analysis indicator designed to help traders identify high-probability trade zones using a combination of trend, volatility, and price structure.
This indicator integrates:
Exponential Moving Averages (EMA) for trend direction
Bollinger Bands (BB) to visualize volatility and price expansion
Swing structure detection to highlight potential market turning points
A Take Profit (TP) panel to assist with structured trade planning
ALL-IN ZONE X is intended for discretionary trading and educational purposes only.
It does not generate automated buy or sell orders and should be used as a confluence tool alongside proper risk management and market analysis.
Disclaimer:
This indicator does not provide financial advice. Trading involves risk, and past performance does not guarantee future results.
QVAND MASTER Channels QVAND MASTER Channels — Close Only Trend Channels (Multi Window)
QVAND MASTER Channels plots multiple sloping price channels designed to show trend structure using closing prices only. Wicks are intentionally ignored so the channels reflect where price was actually accepted, instead of expanding from brief spikes.
What this indicator plots
• 3 primary channels built from rolling windows of 12 / 6 / 3 months (defaults).
• On 15m and 30m charts only, it automatically adds 2 shorter channels (2 / 1 month) to show nearer-term structure.
• Each channel includes a top/bottom boundary, optional midline, optional fill, and optional right extension.
How it works
For each selected window:
1. The script identifies the start of the window (by calendar months back) and the current bar.
2. It creates a baseline as a straight line connecting:
• the close at the window start, and
• the latest close.
3. It then measures the maximum and minimum deviation of closing prices from that baseline throughout the window.
4. The channel boundaries are built as:
• Top = baseline + max close deviation
• Bottom = baseline + min close deviation
• Midline = midpoint between top and bottom
This produces channels that adapt as new data arrives while staying anchored to close behavior rather than wick noise.
What makes it different
• Close only construction (no wicks): avoids spike-driven channel expansion.
• Baseline + deviation envelope: width comes from real close dispersion around the baseline, not generic bands.
• Multi window view: long/mid/short structure on one chart, with extra local channels on 15m/30m.
Customization
You can adjust: master timeframe, each window length (months), colors, line width, fill opacity, midline on/off, right extension on/off, and whether the 15m/30m extra channels are shown.
Performance note
This is a heavier script due to historical scanning across multiple windows. On some symbols/timeframes it may take ~20–25 seconds to load/paint.
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! 📈






















