Quantum Mean Reversion Oscillator[Pineify]Quantum Mean Reversion Oscillator - Statistical Z-Score Based Trading Signals
The Quantum Mean Reversion Oscillator (QMR) is a statistically-driven momentum indicator designed to identify high-probability mean reversion opportunities in any market. Built on the foundation of Z-score analysis, this oscillator measures how far price has deviated from its statistical mean, expressed in standard deviations. When price stretches too far from equilibrium, it tends to snap back—this indicator captures those precise moments.
Key Features
Z-Score based oscillator measuring price deviation from dynamic mean
Adaptive EMA-based mean calculation for responsive trend detection
Customizable standard deviation multiplier for volatility adjustment
Built-in smoothing to filter market noise and reduce false signals
Visual gradient glow effect showing momentum intensity
Clear overbought/oversold threshold levels at +2.0 and -2.0
Automatic buy and sell signal generation on mean reversion events
Pre-configured alert conditions for automated trading workflows
How It Works
The indicator employs a three-step calculation process rooted in statistical analysis:
Dynamic Mean Calculation: Rather than using a simple moving average, the oscillator uses an Exponential Moving Average (EMA) as the basis. This makes the mean more responsive to recent price action while still maintaining statistical validity.
Z-Score Computation: The core of this indicator is the Z-score formula: (Price - Mean) / Standard Deviation. This transforms raw price data into a normalized scale where values represent how many standard deviations price has moved from its mean. A reading of +2.0 means price is two standard deviations above average—a statistically significant extreme.
Noise Reduction: The raw Z-score is smoothed using a Simple Moving Average to eliminate whipsaws and provide cleaner, more actionable signals.
Trading Ideas and Insights
Mean reversion is one of the most fundamental concepts in quantitative trading. Markets tend to oscillate around fair value, and extreme deviations often precede reversals. The QMR Oscillator quantifies this behavior:
When the oscillator exceeds +2.0, price is statistically overbought—approximately 95% of price action occurs below this level under normal distribution
When the oscillator drops below -2.0, price is statistically oversold—a zone where buying pressure typically emerges
The crossback signals (crossing back inside from extremes) indicate the reversion has begun, providing entry timing
This approach works particularly well in ranging markets and can identify exhaustion points in trending markets where pullbacks are likely.
How Multiple Indicators Work Together
The QMR Oscillator integrates three complementary statistical concepts into a unified framework:
EMA for Mean: Provides a responsive baseline that adapts to changing market conditions faster than traditional SMA, ensuring the "fair value" reference point stays relevant.
Standard Deviation for Volatility: Automatically adjusts the oscillator's sensitivity based on current market volatility. During high volatility, larger price moves are required to reach extreme readings, preventing false signals.
SMA Smoothing: Applied as a final filter to remove noise without introducing significant lag, balancing responsiveness with reliability.
These three components work synergistically—the EMA tracks the trend, standard deviation normalizes for volatility, and smoothing ensures signal quality.
Unique Aspects
Statistical Foundation: Unlike arbitrary oscillator boundaries, the +/-2.0 levels have statistical meaning—representing approximately 2 standard deviations from the mean
Visual Gradient System: The glow effect intensifies as price moves further from equilibrium, providing intuitive visual feedback on momentum strength
Adaptive Sensitivity: The deviation multiplier allows traders to adjust how extreme price must move before triggering signals, accommodating different trading styles and market conditions
How to Use
Add the indicator to your chart and observe the oscillator's position relative to the zero line and threshold levels
Look for buy signals (B markers) when the oscillator crosses back above -2.0 from oversold territory
Look for sell signals (S markers) when the oscillator crosses back below +2.0 from overbought territory
Use the gradient glow intensity to gauge momentum strength—brighter colors indicate more extreme conditions
Set up alerts using the built-in alert conditions for automated notifications
Customization
Mean Lookback (default: 20): Controls the EMA period for mean calculation. Shorter periods increase sensitivity; longer periods provide smoother readings
Deviation Multiplier (default: 2.0): Adjusts how many standard deviations define the bands. Higher values require more extreme moves for signals
Smoothing (default: 3): Controls noise filtering. Increase for smoother signals in choppy markets
Bullish/Bearish Glow Colors: Customize the visual appearance to match your chart theme
Show Reversion Signals: Toggle buy/sell markers on or off
Conclusion
The Quantum Mean Reversion Oscillator provides traders with a statistically rigorous tool for identifying mean reversion opportunities. By combining Z-score analysis with adaptive volatility measurement and intelligent smoothing, it offers a systematic approach to finding high-probability reversal points. Whether used as a standalone indicator or as confirmation for other analysis methods, the QMR Oscillator brings quantitative precision to mean reversion trading strategies.
Indicateurs et stratégies
Current & Previous Candle H/LA visual tool that shows you the High and Low prices of:
The CURRENT candle (bar) being formed.
The PREVIOUS candle (the one that just closed).
1. Quick Price Reference
Instantly see exact High/Low levels without hovering over candles
Useful when placing orders near these levels
2. Support/Resistance Visualization
Previous High/Low often acts as resistance/support
Current High/Low shows where price is pushing
3. Breakout Trading
Helps identify when price breaks above previous High (bullish breakout)
Or below previous Low (bearish breakout)
4. Risk Management
Set stop-losses below previous Low or above previous High
Place take-profits near current High/Low extensions
[Saga Trading] Moving Average ProThis open-source indicator provides trend and market structure context using multiple moving averages.
It allows traders to visualize several moving averages simultaneously, with configurable calculation methods (EMA, SMA, or RMA), in order to better assess trend alignment, momentum, and structural bias.
Common references such as the 50-period and 200-period averages are included because they are widely observed by market participants. Crossovers between these averages (often referred to as golden or death crosses) are displayed as structural information only and should not be interpreted as trading signals.
The purpose of this tool is to help traders understand market structure and trend context, not to generate entries or exits.
This indicator is intended for educational and analytical purposes and should be used alongside price action and broader market analysis.
Session Liquidity Trading PlanAmateurs trade on emotion. Professionals trade with a plan.
The Session Liquidity Trading Plan is a professional pre-trade checklist designed to help traders approach the market with structure, discipline, and consistency.
This tool acts as a decision-support panel, allowing you to manually confirm key liquidity-based conditions before executing a trade. Each confirmed condition contributes to a weighted trade score, giving you an instant view of setup quality.
Instead of chasing the market, this panel encourages patience and rule-based execution — two traits consistently found among profitable traders.
🔑 Key Features
• Clean top-right trading panel
• Manual confirmation checklist for maximum flexibility
• Weighted Trade Score (0–100) for setup grading
• Built for liquidity-based and session-focused traders
• Promotes disciplined, high-quality trade selection
• Works across all instruments and timeframes
📊 Checklist Includes:
✔ Asia High/Low Sweep
✔ 5/15 Minute Market Shift
✔ OTE Retracement
✔ Targeting Buy/Sell Side Liquidity
When all conditions align, traders gain confidence in the strength of their setup.
Precision Market Entropy Heatmap [LuxAlgo]The Precision Market Entropy Heatmap indicator provides a high-resolution visualization of volume distribution and market activity within specific anchor intervals using intrabar data.
By utilizing lower timeframe (LTF) precision, it maps out where the most significant trading activity occurred, allowing traders to identify institutional interest zones and "fair value" areas through a dynamic heat-mapped profile.
🔶 USAGE
The indicator segments the chart into blocks based on the selected Anchor Interval. Within each block, a vertical distribution of volume is calculated using the Intrabar Precision setting to ensure the heatmap accurately reflects market participation at specific price levels.
Heatmap Blocks : Brighter colors represent higher volume concentrations (high entropy). These areas often act as significant support or resistance zones where the market has previously found "fair value" or high liquidity.
Identifying Institutional Interest : High-volume "bright" nodes represent price levels where heavy institutional participation occurred. These nodes act as powerful magnets or barriers for future price action.
Navigating Liquidity Voids : Darker areas indicate low volume nodes (low entropy). Price often "slips" through these gaps quickly. Traders can use these zones to anticipate fast-moving price action or set targets beyond the void.
Trend Direction via POC : Observe the slope and shifts of the Developing POC polyline. An ascending POC confirms bullish value migration, while a descending one suggests bearish value migration.
Mean Reversion : Significant price deviations from the largest high-volume node, when the POC remains static, can signal that the market is overextended and likely to return to "fair value."
Breakout Validation : Use the blocks to identify compression zones. A breakout is more reliable when the POC shifts into the new range, confirming that the move is backed by volume and accepted by the market.
POC Extensions : Dashed lines extend the session's final POC. These are dynamically colored based on their relationship to the current price: Green if the POC is below the current price (potential support) and Red if above (potential resistance).
🔶 DETAILS
Unlike standard Volume Profiles that look at fixed ranges, this script focuses on "Entropy" by visualizing the density of distribution across a user-defined grid.
By requesting security data from lower timeframes, it provides a much more granular view of price action than what is visible on the current chart timeframe alone.
The indicator uses a gradient-based coloring system to distinguish between low-activity areas and high-volume nodes, making it easier to spot "Liquidity Voids" (darker areas) and "High Volume Nodes" (brighter areas).
🔶 SETTINGS
🔹 Heatmap Settings
Anchor Interval : Sets the timeframe that defines each heatmap block (e.g., "D" for Daily blocks).
Intrabar Precision : Determines the lower timeframe used to calculate the volume distribution. Lower values (like "1m") provide higher precision but are limited by available historical data.
Number of Rows : Controls the vertical price resolution of the heatmap grid. Higher values create a more detailed but computationally heavier profile.
🔹 Style Settings
Heatmap Intensity : A three-color gradient selector that defines the color transition from low to high volume areas.
Heatmap Transparency : Adjusts the visibility of the heatmap blocks on the chart.
POC Extension (Bull/Bear) : Sets the colors for the dashed POC lines based on whether they are currently below (Bull) or above (Bear) the market price.
Show Developing POC : Toggles the visibility of the real-time POC polyline.
Auto : When enabled, the developing POC color automatically syncs with your chart theme's foreground color.
🔹 Display Settings
Max Sessions to Show : Limits the number of historical heatmap blocks rendered on the chart to maintain performance.
Extend POCs to Current Bar : When enabled, historical POC lines will extend to the far right of the chart until they are replaced by newer sessions.
Volatility Visualizer Percentiles (VIXFix, ATR, VIX)Summary
A volatility regime dashboard for liquid instruments that converts three volatility lenses into 0 to 100 percentile ranks versus the last 252 closed daily bars. It is built to answer one question: is volatility unusually low or unusually high relative to the last year . Use it to adjust position sizing, stop width, and trade selectivity. It is not a directional signal.
Scope and intent
Markets : US indices and index ETFs, index futures, large cap equities, liquid crypto proxies, and other symbols where daily volatility regimes matter
Timeframes : best on Daily. It can be applied on other chart timeframes, but the reference window remains 252 closed daily bars
Default demo : SPX on Daily
Purpose : provide a simple, testable volatility context layer that you can plug into any daily system as a risk filter or risk scaler
What makes it original and useful
Most “volatility tools” show raw ATR or a single volatility index. This script standardizes three distinct sources into the same unit (percentile), so you can compare them and combine them without guessing thresholds.
Unique fusion : internal realized volatility (ATR%), internal stress proxy (VIXFix), and external implied volatility (input VIX symbol) expressed in the same 0 to 100 scale
Practical outcome : the table gives a regime read and an action posture, so the output is directly usable for risk decisions
Testable : all components are visible and thresholdable; you can backtest rules like “only trade when composite is between 30 and 75”
Portable : percentiles remove the need to hardcode market specific “ATR is high” numbers across different symbols
Method overview in plain language
Base measures
VIXFix : a price based fear proxy derived from the instrument’s own daily behavior (using the relationship between recent high closes and current lows)
ATR% : daily ATR normalized by daily close, expressed as a percentage for cross symbol comparability
External VIX : a user selected volatility index or proxy pulled via input symbol (default CBOE:VIX)
Normalization to percentiles
For each metric, the script stores the last 252 closed daily values
It then computes where the most recent closed daily value sits inside that history as a percentile from 0 to 100
Tie handling is configurable (Midrank, StrictLess, LessOrEqual) to define how repeated values are ranked
Fusion rule
Composite percentile is the simple average of the available percentiles (VIXFix, ATR%, VIX)
If one component is missing (for example the external symbol is unavailable), the composite averages the remaining components
How to use it on Daily
This tool is most effective as a risk regime layer on top of an existing strategy. Use the Composite row as the primary dial, and the individual components as confirmation.
Recommended operating zones
0–20 Very Low : quiet regime. Tight stops often survive, but breakouts can underperform. Favor mean reversion or require stronger breakout confirmation.
20–40 Low : constructive for many systems. Use baseline sizing and baseline stops.
40–60 Mid : neutral. Run your base playbook.
60–80 High : volatility expansion. Reduce size and widen stops, or trade only higher quality setups.
80–100 Very High : stress regime. Smallest size, widest stops, and skip marginal setups. Gap risk and slippage risk are higher.
How to interpret disagreements
If ATR% is high but VIX is mid , realized vol is elevated but the market is not pricing extreme fear. Treat as a caution zone, not panic.
If VIX is high but ATR% is mid , implied vol is elevated ahead of potential events. Expect expansion risk even if realized vol has not moved yet.
If all three are high , treat it as a full stress regime and enforce strict risk limits.
What you will see on the chart
A compact table with one row per metric and optional composite
For each row: last closed daily value, 252D percentile, a progress bar, and an action posture
Optional stats: min, median, max for the 252D window (useful for sanity checks, adds CPU)
Table fields quick guide
Last closed daily : the value used for ranking, taken from the last fully closed daily bar
252D percentile : where the current reading ranks versus the last 252 closed daily readings
Bar : quick visual map of percentile from 0 to 100
Action : risk posture suggestion tied to the percentile bucket
Inputs with guidance
Core
Window (closed daily bars) : default 252. Higher values make the regime slower and more structural. Lower values make it more reactive.
VIX
VIX symbol : default CBOE:VIX. You can replace it with another implied volatility proxy appropriate for your market.
VIXFix
VIXFix lookback : typical range 21/22. Smaller reacts faster, larger smooths regimes.
ATR
ATR length : typical range 10–21 on Daily
ATR as % of close : recommended on for comparability across symbols and long history
UI
Show composite volatility score : recommended on. Best single dial.
Show action guide : recommended on if you want direct posture cues.
Show min, median, max : optional. Useful for diagnostics, higher CPU.
Table position : place it where it does not cover price.
Usage recipes
Daily trend following overlay
Trade your trend system normally when Composite is between 25 and 75
If Composite is above 75, reduce size and widen stops, and require stronger trend confirmation
Daily mean reversion overlay
Focus on Composite below 40
Avoid Composite above 80 where gaps and cascading moves reduce mean reversion reliability
Daily risk parity style scaling
Use Composite percentile as a coarse risk throttle: higher percentile equals lower exposure
Example posture: 0–40 normal exposure, 40–80 reduced exposure, above 80 minimal exposure
Alerts
This script is intentionally a dashboard and does not emit buy or sell signals. If you want alerts, create them from percentile thresholds in your own fork. For conservative workflows, trigger alerts on bar close.
// Example alert conditions (add to your fork if desired)
high_vol = comp_pct > 80
low_vol = comp_pct < 20
Honest limitations and failure modes
This is not a directional predictor. Volatility can rise in both bull and bear markets.
Percentiles are relative to the last 252 closed daily bars. A “high percentile” is high versus recent history, not an absolute guarantee of future movement.
Implied volatility (VIX) can move ahead of realized volatility (ATR%). Treat divergence as information, not a signal.
Very high volatility regimes can include gap risk and slippage risk that are not visible in indicator values alone.
Legal
Education and research only. Not investment advice. You are responsible for your decisions. Test on historical data and in simulation before any live use.
Momentum - MOM🎯 Overview
This is an advanced Momentum - MOM indicator that measures absolute price change over time, combined with dynamic moving average filtering. Unlike basic MOM implementations, this version features gradient momentum zones, multiple color themes, and a clear signal dashboard for precise price momentum identification.
🧩 Core Components
1. ⚙️ Technical Foundation
📊 Primary Calculation: Uses TradingView's built-in ta.mom() function which calculates absolute price difference between current price and price N periods ago
📈 Dual Analysis Components:
MOM Line: Absolute price change oscillator (unbounded range based on price)
MA Filter: Customizable moving average acting as momentum baseline
Momentum Zones: Gradient fills for strong positive and negative momentum extremes
⚡ Absolute Change Measurement: Unique ability to quantify the actual price movement in points/currency units
2. 🎛️ Configuration Parameters
📏 MOM Length: Default 14 periods (standard momentum setting)
🔄 MA Filter Settings:
Length: Customizable (default 365 periods)
Type: 6 options available (EMA, SMA, RMA, WMA, VWMA, HMA)
🎨 Color Themes: 5 visual schemes consistent with your indicator suite:
Classic, Modern, Robust, Accented, Monochrome
📊 Signal Interpretation:
🟢 BULLISH: MOM > MA Filter (price momentum above baseline)
🔴 BEARISH: MOM < MA Filter (price momentum below baseline)
🚀 STRONG BULLISH: (extreme positive momentum)
📉 STRONG BEARISH: (extreme negative momentum)
3. 🎨 Visual Elements
🚨 Gradient Zones:
Strong Bullish zone : Green gradient intensifying toward higher values
Strong Bearish zone : Red gradient intensifying toward lower values
📋 Dashboard Display: Top-right status indicator showing "⬆️ Bullish" or "⬇️ Bearish"
📊 Dynamic Coloring: MOM line changes color based on position relative to MA
⚡ Midline Reference: Subtle 50-level reference line for scale orientation
⚡ Trading Applications
📈 Primary Uses:
🎯 Absolute Momentum Measurement:
MOM > MA = Bullish price momentum
MOM < MA = Bearish price momentum
MOM = 0 = No net price change over period
💪 Momentum Strength in Price Terms:
Shows actual points/currency gained or lost
Useful for position sizing and risk management
More intuitive than percentages for some traders
🚨 Extreme Momentum Signals:
Extreme Bullish: (major price appreciation)
Extreme Bearish: (major price depreciation)
📊 Zone Analysis:
🟢 Strong Bullish Zone :
Green gradient fills
Indicates substantial price gains over the period
Often signals strong trend continuation or potential exhaustion
🔴 Strong Bearish Zone :
Red gradient fills
Indicates substantial price losses over the period
Often signals strong downtrend or potential reversal
🟡 Equilibrium: Yellow MA line acts as momentum baseline filter
🎨 Customization Options
👁️ Display Features:
📊 Dual Components: Always shows both MOM line and MA filter
🎨 Gradient Visualization: Automatic fill for extreme momentum conditions
📋 Status Dashboard: Clear bullish/bearish momentum indication
📈 Customizable MA: Choose from 6 different moving average types
📏 Wide Dynamic Range: ±15,000 levels accommodate various asset price ranges
🎨 Visual Themes: (Consistent suite)
🎨 Classic: Green/Red (traditional momentum colors)
🚀 Modern: Cyan/Purple (contemporary)
💪 Robust: Amber/Deep Purple (high contrast)
🌈 Accented: Purple/Magenta (vibrant)
⚫⚪ Monochrome: Light Gray/Dark Gray (minimalist)
🔔 Alert System
🟢 LONG Alert: Triggers when MOM crosses above MA
🔴 SHORT Alert: Triggers when MOM crosses below MA
📧 Format: Includes ticker symbol for tracking
⚡ Key Advantages
✅ Strengths:
🎯 Price-Based Analysis: Measures actual price movement in understandable units
💪 Absolute Value Interpretation: Shows exact points gained/lost over period
👁️ Clear Trend Momentum: MA filter separates noise from meaningful momentum
🔄 Flexible Across Assets: Works equally well with stocks, crypto, forex, etc.
📊 Professional Dashboard: Immediate momentum status recognition
📊 Optimal Settings:
⚡ Short-term Trading: MOM Length 10-14, MA Length 20-50
📊 Medium-term Trading: MOM Length 14-20, MA Length 50-100
📈 Long-term Trading: MOM Length 20-30, MA Length 100-365
🏆 Unique Features:
🎯 Absolute Price Measurement: Shows exact price change, not percentages
📊 Extreme Thresholds: ±15,000 levels for major momentum identification
🎨 Consistent Design: Matches your indicator family aesthetics
📋 Momentum Dashboard: Quick visual confirmation of price momentum
🔧 Direct Price Analysis: No conversion needed - shows actual market movement
🔄 Trading Strategies
1. Price Momentum Strategy:
Go LONG when MOM crosses above MA with positive values
Go SHORT when MOM crosses below MA with negative values
Strong signals when MA crossover aligns with extreme zones
2. Momentum Divergence:
Price makes higher high, MOM makes lower high → Bearish divergence (momentum weakening)
Price makes lower low, MOM makes higher low → Bullish divergence (selling pressure decreasing)
3. Trend Strength Assessment:
Large positive MOM values = Strong uptrend momentum
Large negative MOM values = Strong downtrend momentum
MOM near zero = Consolidation or trend change
📈 Performance Tips
Asset-Specific Thresholds: Adjust ±15,000 levels based on typical price ranges
Zero Line Significance: MOM crossing zero often precedes trend changes
Extreme Readings: Very high/low MOM values may indicate exhaustion moves
Multiple Timeframes: Compare MOM values across timeframes for confirmation
Combine with Volume: Add volume analysis to confirm momentum moves
This enhanced Momentum indicator provides professional-grade price-based momentum analysis with intuitive visualization, allowing traders to measure exact price movements, identify momentum trends in absolute terms, and filter signals through the customizable moving average for precise momentum-based trading decisions! 📊📈
Borna High/Low📌 Borna High/Low
Borna High/Low is a clean and precise indicator that automatically plots the Asian session High and Low levels on GER40 (DAX) directly on the price chart.
It is designed for traders who use the Asian range as a liquidity zone and as a key reference for Frankfurt and London open trading strategies.
🔍 What this indicator does
Automatically calculates Asia High and Asia Low
Draws levels directly on the price chart (overlay)
Optional line extension to the right or both sides
Optional mid-line between High and Low
Session-end labels for clear visual reference
Stable plotting that does not shift when zooming
⏰ Session Settings
Default Asian session: 00:00 – 07:00
Fully customizable time window (e.g. 00:30 – 07:00)
Timezone support (recommended: Europe/Berlin for GER40)
⚙️ Customization
Line style: Solid / Dashed / Dotted
Line width
Extend mode: Right / Both / None
Toggle mid-line
Toggle session labels
📈 How to use
Use Asia High / Low as:
Liquidity targets
Range boundaries for London breakouts
Premium / Discount reference levels
Ideal for scalping and intraday trading on GER40
Rate of Change - ROC🎯 Overview
This is an advanced Rate of Change - ROC indicator that measures percentage price movement over time, combined with dynamic moving average filtering. Unlike basic ROC implementations, this version features gradient momentum zones, multiple color themes, and a clear signal dashboard for precise momentum velocity identification.
🧩 Core Components
1. ⚙️ Technical Foundation
📊 Primary Calculation: Uses TradingView's built-in ta.roc() function which calculates percentage change between current price and price N periods ago
📈 Dual Analysis Components:
ROC Line: Percentage change oscillator
MA Filter: Customizable moving average acting as momentum trend line
Momentum Zones: Gradient fills for strong positive and strong negative momentum
⚡ Velocity Measurement: Unique ability to quantify the speed of price movement as a percentage
2. 🎛️ Configuration Parameters
📏 ROC Length: Default 35 periods (optimized for momentum detection)
🔄 MA Filter Settings:
Length: Customizable (default 365 periods)
Type: 6 options available (EMA, SMA, RMA, WMA, VWMA, HMA)
🎨 Color Themes: 5 visual schemes consistent with your indicator suite:
Classic, Modern, Robust, Accented, Monochrome
📊 Signal Interpretation:
🟢 BULLISH: ROC > MA Filter (momentum accelerating upward)
🔴 BEARISH: ROC < MA Filter (momentum accelerating downward)
🚀 STRONG BULLISH: ROC > 40% (extreme positive momentum)
📉 STRONG BEARISH: ROC < -20% (extreme negative momentum)
3. 🎨 Visual Elements
🚨 Gradient Zones:
Strong Bullish zone : Green gradient intensifying toward higher percentages
Strong Bearish zone : Red gradient intensifying toward lower percentages
📋 Dashboard Display: Top-right status indicator showing "⬆️ Bullish" or "⬇️ Bearish"
📊 Dynamic Coloring: ROC line changes color based on position relative to MA
⚡ Zero Line Reference: Natural equilibrium at 0% change
⚡ Trading Applications
📈 Primary Uses:
🎯 Momentum Velocity Measurement:
ROC > MA = Accelerating bullish momentum
ROC < MA = Accelerating bearish momentum
💪 Momentum Strength Quantification:
Higher positive percentages = Stronger uptrend acceleration
Lower negative percentages = Stronger downtrend acceleration
Measures rate of change rather than just direction
🚨 Extreme Momentum Signals:
Strong Bullish: (rapid price appreciation)
Strong Bearish: (rapid price depreciation)
📊 Zone Analysis:
🟢 Strong Bullish Zone :
Green gradient fills
Indicates rapid price acceleration upward
Often precedes consolidation or pullback
🔴 Strong Bearish Zone :
Red gradient fills
Indicates rapid price acceleration downward
Often precedes bounce or reversal
🟡 Equilibrium: Yellow MA line acts as momentum trend filter
🎨 Customization Options
👁️ Display Features:
📊 Dual Components: Always shows both ROC line and MA filter
🎨 Gradient Visualization: Automatic fill for extreme momentum conditions
📋 Status Dashboard: Clear bullish/bearish momentum acceleration indication
📈 Customizable MA: Choose from 6 different moving average types
📏 Adjustable Thresholds: 40% and -20% levels optimized for ROC analysis
🎨 Visual Themes: (Consistent suite)
🎨 Classic: Green/Red (traditional momentum colors)
🚀 Modern: Cyan/Purple (contemporary)
💪 Robust: Amber/Deep Purple (high contrast)
🌈 Accented: Purple/Magenta (vibrant)
⚫⚪ Monochrome: Light Gray/Dark Gray (minimalist)
🔔 Alert System
🟢 LONG Alert: Triggers when ROC crosses above MA
🔴 SHORT Alert: Triggers when ROC crosses below MA
📧 Format: Includes ticker symbol for tracking
⚡ Key Advantages
✅ Strengths:
🎯 Velocity-Based Analysis: Measures speed of price movement, not just direction
💪 Percentage-Based: Provides intuitive understanding of momentum strength
👁️ Trend Acceleration Identification: MA filter shows when momentum is accelerating/decelerating
🔄 Flexible Timeframes: 35-period default optimized for momentum detection
📊 Professional Dashboard: Immediate momentum acceleration status
📊 Optimal Settings:
⚡ Short-term Momentum: ROC Length 10-20, MA Length 20-50
📊 Medium-term Momentum: ROC Length 20-35, MA Length 50-100
📈 Long-term Momentum: ROC Length 35-50, MA Length 100-365
🏆 Unique Features:
🎯 Percentage-Based Measurement: Shows exact rate of price change
📊 Asymmetric Thresholds: 40% bullish / -20% bearish (reflects typical market asymmetry)
🎨 Consistent Design: Matches your indicator family aesthetics
📋 Momentum Dashboard: Quick visual confirmation of acceleration/deceleration
🔧 Speed Analysis: Focuses on velocity rather than just position
🔄 Trading Strategies
1. Momentum Acceleration Strategy:
Go LONG when ROC crosses above MA with ROC > 0%
Go SHORT when ROC crosses below MA with ROC < 0%
Strong signals when crossing occurs in extreme zones
2. Velocity Divergence:
Price makes higher high, ROC makes lower high → Momentum divergence (trend weakening)
Price makes lower low, ROC makes higher low → Momentum divergence (downtrend losing steam)
3. Trend Acceleration Detection:
Rising ROC above MA = Uptrend accelerating
Falling ROC below MA = Downtrend accelerating
Flat ROC near MA = Trend consolidation
📈 Performance Tips
Context Matters: High ROC during strong trends is normal, during ranges may signal exhaustion
Zero Line Cross: ROC crossing 0% often signals trend change
Extreme Readings: ROC > 40% often precedes consolidation, ROC < -20% often precedes bounce
Timeframe Alignment: Use consistent periods across charts for comparable readings
Confirmation: Combine with price structure and volume for highest probability trades
This enhanced ROC indicator provides professional-grade momentum velocity analysis with intuitive visualization, allowing traders to quantify the speed of price movements, identify acceleration/deceleration phases, and filter signals through the customizable moving average for precise momentum-based trading decisions! 📊⚡
Money Flow Index - MFI🎯 Overview
This is an advanced Money Flow Index - MFI indicator that combines volume-weighted momentum analysis with dynamic moving average filtering. Unlike basic MFI implementations, this version features gradient overbought/oversold zones, multiple color themes, and a clear signal dashboard for precise money flow identification.
🧩 Core Components
1. ⚙️ Technical Foundation
📊 Primary Calculation: Uses TradingView's built-in ta.mfi() function which incorporates both price and volume data
📈 Dual Analysis Components:
MFI Line: Volume-weighted momentum oscillator
MA Filter: Customizable moving average acting as dynamic signal line
Threshold Zones: Gradient fills for overbought and oversold conditions
⚡ Volume Integration: Unique ability to combine price action with trading volume for more reliable signals
2. 🎛️ Configuration Parameters
📏 MFI Length: Default 14 periods (standard setting)
🔄 MA Filter Settings:
Length: Customizable (default 365 periods)
Type: 6 options available (EMA, SMA, RMA, WMA, VWMA, HMA)
🎨 Color Themes: 5 visual schemes consistent with your indicator suite:
Classic, Modern, Robust, Accented, Monochrome
📊 Signal Interpretation:
🟢 BULLISH: MFI > MA Filter (money flow above trend)
🔴 BEARISH: MFI < MA Filter (money flow below trend)
⚠️ OVERBOUGHT: MFI > 80 (potential reversal zone)
⚠️ OVERSOLD: MFI < 20 (potential reversal zone)
3. 🎨 Visual Elements
🚨 Gradient Zones:
Overbought zone : Red gradient intensifying toward 100
Oversold zone : Green gradient intensifying toward 0
📋 Dashboard Display: Top-right status indicator showing "⬆️ Bullish" or "⬇️ Bearish"
📊 Dynamic Coloring: MFI line changes color based on position relative to MA
⚡ Trading Applications
📈 Primary Uses:
🎯 Money Flow Direction:
MFI > MA = Bullish money flow regime
MFI < MA = Bearish money flow regime
💪 Trend Strength with Volume Confirmation:
MFI considers both price movement AND volume
Higher volume moves have more significance
Validates price trends with volume support
🚨 Extreme Zone Signals:
Overbought: MFI > 80 (potential sell opportunity)
Oversold: MFI < 20 (potential buy opportunity)
📊 Zone Analysis:
🔴 Overbought Zone :
Red gradient fills
Indicates excessive buying pressure
Watch for bearish reversals
🟢 Oversold Zone :
Green gradient fills
Indicates excessive selling pressure
Watch for bullish reversals
🟡 Equilibrium: Yellow MA line acts as volume-weighted trend filter
🎨 Customization Options
👁️ Display Features:
📊 Dual Components: Always shows both MFI line and MA filter
🎨 Gradient Visualization: Automatic fill for overbought/oversold conditions
📋 Status Dashboard: Clear bullish/bearish money flow indication
📈 Customizable MA: Choose from 6 different moving average types
🎨 Visual Themes: (Consistent suite)
🎨 Classic: Green/Red (traditional volume-weighted colors)
🚀 Modern: Cyan/Purple (contemporary)
💪 Robust: Amber/Deep Purple (high contrast)
🌈 Accented: Purple/Magenta (vibrant)
⚫⚪ Monochrome: Light Gray/Dark Gray (minimalist)
🔔 Alert System
🟢 LONG Alert: Triggers when MFI crosses above MA
🔴 SHORT Alert: Triggers when MFI crosses below MA
📧 Format: Includes ticker symbol for tracking
⚡ Key Advantages
✅ Strengths:
🎯 Volume-Weighted Accuracy: Combines price and volume for more reliable signals
💪 Overbought/Oversold Filter: Built-in 80/20 thresholds with gradient visualization
👁️ Clear Trend Identification: MA filter separates noise from meaningful money flow
🔄 Flexible Configuration: Multiple MA types for different trading styles
📊 Professional Dashboard: Immediate money flow status recognition
📊 Optimal Settings:
⚡ Short-term Trading: MFI Length 10-14, MA Length 20-50
📊 Medium-term Trading: MFI Length 14-20, MA Length 50-100
📈 Long-term Trading: MFI Length 20-30, MA Length 100-365
🏆 Unique Features:
🎯 Volume Integration: The only oscillator in your suite that includes volume data
📊 Gradient Thresholds: Visual intensity shows proximity to extremes
🎨 Consistent Design: Matches your indicator family aesthetics
📋 Money Flow Dashboard: Quick visual confirmation of volume trends
🔧 Dual Analysis: Combines oscillator with dynamic trend filter
🔄 Trading Strategies
1. Basic Money Flow Strategy:
Go LONG when MFI crosses above MA from oversold
Go SHORT when MFI crosses below MA from overbought
Exit when opposite extreme is reached
2. Divergence Detection:
Price makes higher high, MFI makes lower high → Bearish divergence (selling pressure weakening)
Price makes lower low, MFI makes higher low → Bullish divergence (buying pressure increasing)
3. Volume Confirmation:
Strong trend + rising MFI = High conviction move
Weak trend + declining MFI = Potential reversal
📈 Performance Tips
Volume Matters: MFI is most effective in markets with consistent volume
Extreme Zones: levels often act as support/resistance for the indicator
Divergence Signals: More reliable than simple overbought/oversold readings
Trend Alignment: MFI above MA in uptrend, below MA in downtrend
Confirmation: Combine with price action at key support/resistance levels
This enhanced MFI indicator provides professional-grade volume-weighted analysis with intuitive visualization, allowing traders to identify money flow trends, spot potential reversals at extremes, and filter signals through the customizable moving average for higher accuracy trading decisions! 📊💰
Chande Momentum Oscillator - CMO🎯 Overview
This is a sophisticated Chande Momentum Oscillator indicator that combines traditional momentum analysis with dynamic moving average filtering. Unlike basic CMO implementations, this version features gradient visualization, multiple color themes, and a clear signal dashboard for precise momentum identification.
🧩 Core Components
1. ⚙️ Technical Foundation
📊 Primary Calculation: Uses TradingView's built-in ta.cmo() function with customizable source and period length
📈 Dual Analysis Components:
CMO Line: Pure momentum oscillator ranging from -100 to +100
MA Filter: Customizable moving average that acts as dynamic signal line
Gradient Zones: Visual fill between CMO and MA showing momentum intensity
⚡ Dynamic Comparison: Creates clear bullish/bearish signals based on CMO vs MA position
2. 🎛️ Configuration Parameters
📏 CMO Length: Default 14 periods (standard momentum setting)
🔄 MA Filter Settings:
Length: Customizable (default 365 periods)
Type: 6 options available (EMA, SMA, RMA, WMA, VWMA, HMA)
🎨 Color Themes: 5 visual schemes consistent with your indicator suite:
Classic, Modern, Robust, Accented, Monochrome
📊 Signal Interpretation:
🟢 BULLISH: CMO > MA Filter (momentum above trend)
🔴 BEARISH: CMO < MA Filter (momentum below trend)
3. 🎨 Visual Elements
🚨 Gradient Zones:
Upper zone (CMO > MA): Green gradient showing bullish momentum intensity
Lower zone (CMO < MA): Red gradient showing bearish momentum intensity
📋 Dashboard Display: Top-right status indicator showing "⬆️ Bullish" or "⬇️ Bearish"
📊 Dynamic Coloring: CMO line changes color based on position relative to MA
⚡ Trading Applications
📈 Primary Uses:
🎯 Momentum Direction Identification:
CMO > MA = Bullish momentum regime
CMO < MA = Bearish momentum regime
💪 Momentum Strength Assessment:
CMO > +50 = Strong bullish momentum
CMO < -50 = Strong bearish momentum
Between -50 and +50 = Moderate momentum
🚨 Crossover Signals:
Bull Signal: CMO crosses above MA
Bear Signal: CMO crosses below MA
📊 Zone Analysis:
🟢 Bullish Zones:
Light to dark green gradient as CMO rises
Strongest color at highest CMO values
🔴 Bearish Zones:
Light to dark red gradient as CMO falls
Strongest color at lowest CMO values
🟡 Equilibrium: Yellow MA line acts as dynamic pivot
🎨 Customization Options
👁️ Display Features:
📊 Dual Components: Always shows both CMO line and MA filter
🎨 Gradient Visualization: Automatic fill between lines showing momentum intensity
📋 Status Dashboard: Clear bullish/bearish indication
📈 Customizable MA: Choose from 6 different moving average types
🎨 Visual Themes: (Consistent suite)
🎨 Classic: Green/Red (traditional momentum colors)
🚀 Modern: Cyan/Purple (contemporary)
💪 Robust: Amber/Deep Purple (high contrast)
🌈 Accented: Purple/Magenta (vibrant)
⚫⚪ Monochrome: Light Gray/Dark Gray (minimalist)
🔔 Alert System
🟢 LONG Alert: Triggers when CMO crosses above MA
🔴 SHORT Alert: Triggers when CMO crosses below MA
📧 Format: Includes ticker symbol for tracking
⚡ Key Advantages
✅ Strengths:
🎯 Clear Momentum Signals: Direct comparison between CMO and MA provides unambiguous entries/exits
💪 Trend Filter: MA acts as dynamic support/resistance for momentum
👁️ Visual Clarity: Gradient zones show momentum intensity at a glance
🔄 Flexible Configuration: Multiple MA types for different trading styles
📊 Professional Dashboard: Immediate status recognition
📊 Optimal Settings:
⚡ Short-term Trading: CMO Length 9-14, MA Length 20-50
📊 Medium-term Trading: CMO Length 14-20, MA Length 50-100
📈 Long-term Trading: CMO Length 20-30, MA Length 100-365
🏆 Unique Features:
🎯 Gradient Visualization: Color intensity reflects momentum strength
📊 MA Filter Flexibility: 6 different moving average types
🎨 Consistent Design: Matches your indicator family aesthetics
📋 Status Dashboard: Quick visual confirmation of regime
🔧 Dual Analysis: Combines momentum oscillator with trend filter
🔄 Trading Strategies
1. Basic Momentum Strategy:
Go LONG when CMO crosses above MA
Go SHORT when CMO crosses below MA
Use extreme readings (>+80 or <-80) for overbought/oversold conditions
2. Momentum Strength Strategy:
Strong bullish: CMO > MA AND CMO > +50
Strong bearish: CMO < MA AND CMO < -50
Weak signals: Between -50 and +50
3. Divergence Detection:
Price makes higher high, CMO makes lower high → Bearish divergence
Price makes lower low, CMO makes higher low → Bullish divergence
📈 Performance Tips
Combine with Trend: Use in trending markets (avoid ranging periods)
Confirmation: Wait for candle close after MA crossover
Extreme Readings: +80/-80 often precede reversals
MA Selection: EMA for responsiveness, SMA for smoothness
Multiple Timeframes: Check higher timeframe CMO alignment
This enhanced CMO indicator provides professional-grade momentum analysis with intuitive visualization, allowing traders to quickly identify momentum regimes and strength while filtering out market noise through the customizable moving average filter! 📊🎯
Prop Firms No-Trade News (NFP/CPI/FOMC) - 30m WarningProp Firms No-Trade News (NFP / CPI / FOMC) — 30m Warning
This indicator is designed for traders operating under **prop firm rules**, where trading during high-impact economic news is restricted or prohibited.
It highlights **no-trade windows** around the most critical U.S. macroeconomic events and helps you stay compliant, disciplined, and risk-aware.
Covered High-Impact Events
* **Non-Farm Payrolls (NFP)**
→ Automatically calculated (1st Friday of each month at 08:30 ET)
* **Consumer Price Index (CPI)**
→ Manually configurable
* **FOMC Rate Decision / Policy Statement**
→ Manually configurable
How It Works
* **30-minute warning alert** before each event
* **No-trade window shading** on the chart
* **Optional labels** for:
* Upcoming no-trade period
* Exact news release moment
* **Customizable buffers**:
* Minutes before the event
* Minutes after the event
Alerts Included
* 30-minute pre-news warning
* No-trade window start
* No-trade window end
* News release time
All alerts can be used for **manual trading discipline** or automated workflows.
Who This Is For
* Prop firm traders (evaluation or funded)
* Futures and index traders
* Traders who want **rule-based protection against emotional or impulsive trading during news**
Notes
* News times are based on **U.S. Eastern Time (ET)**
* CPI and FOMC dates must be updated manually according to the official economic calendar
* This tool does **not execute trades** — it enforces awareness and discipline
Stochastic Momentum Index - SMI🎯 Overview
This is a Stochastic Momentum Index (SMI) indicator that combines stochastic momentum with moving average smoothing to identify trend direction and momentum strength in financial markets. The SMI measures where the current price closes relative to the midpoint of its recent trading range, providing enhanced sensitivity to price momentum.
🧩 Core Components
1. ⚙️ Technical Foundation
📊 Primary Calculation: Uses TradingView's built-in ta.stoch() function
📈 Range-Based: Compares closing price to high-low range over specified period
🎯 Scale: Oscillates between 0-100 with 50 as neutral midpoint
2. 🎛️ Configuration Parameters
📏 SMI Length: Default 101 periods (long-term smoothing)
📊 Source Price: Customizable (default = Close)
📈 MA Length: 30-period moving average applied to SMI
🔄 MA Type: 6 options (EMA, SMA, RMA, WMA, VWMA, HMA)
🎨 Color Themes: 5 visual schemes (Classic, Modern, Robust, Accented, Monochrome)
📈 Signal Interpretation:
🟢 BULLISH: SMI > 50 (price closing in upper half of range)
🔴 BEARISH: SMI < 50 (price closing in lower half of range)
🎯 Neutral Zone: Around 50 indicates balanced momentum
👁️ Visual Features
📈 Signal Line (MA):
Yellow moving average of SMI
Smooths momentum for clearer trend identification
🎯 Reference Lines:
50-level midpoint (white dashed line)
0-100 scale boundaries
🎨 Fill Zones:
🟢 Upper Zone : Bullish momentum area
🔴 Lower Zone : Bearish momentum area
Gradient fills enhance visual clarity
📋 Dashboard Display:
Content: "⬆️ Bullish" or "⬇️ Bearish" indicator
Purpose: Quick market bias assessment
⚡ Trading Applications
📈 Primary Uses:
🎯 Trend Identification
SMI > 50 = Uptrend momentum
SMI < 50 = Downtrend momentum
📊 Momentum Strength
Values near 100 = Strong bullish momentum
Values near 0 = Strong bearish momentum
Values around 50 = Neutral/consolidation
🔄 Mean Reversion
Extreme readings (near 0 or 100) may indicate overbought/oversold conditions
⏰ Timeframe Compatibility:
📅 Long-term: 101-period default suits swing/position trading
📊 Medium-term: Adjust lengths for daily/weekly analysis
⚡ Short-term: Reduce periods for intraday trading
🎨 Customization Options
🔄 Moving Average Types:
📉 EMA: Exponential - responsive to recent changes
📊 SMA: Simple - equal weight to all periods
📈 RMA: Relative - TradingView's special moving average
⚖️ WMA: Weighted - emphasizes recent data
💎 VWMA: Volume-weighted - incorporates volume
🚀 HMA: Hull - reduces lag significantly
🎨 Visual Themes:
🎨 Classic: Green/Red (traditional trading colors)
🚀 Modern: Cyan/Purple (modern aesthetic)
💪 Robust: Amber/Deep Purple (high contrast)
🌈 Accented: Purple/Magenta (vibrant)
⚫⚪ Monochrome: Light Gray/Dark Gray (minimalist)
🔔 Alert System
🟢 LONG Alert: Triggers when SMI crosses above 50
🔴 SHORT Alert: Triggers when SMI crosses below 50
📧 Format: Includes ticker symbol for easy identification
⚡ Key Advantages
✅ Strengths:
🎯 Clear Signals: Simple >50/<50 threshold for easy interpretation
📊 Range-Bound: Always oscillates 0-100 (no divergence issues)
👁️ Visual Clarity: Color-coded zones make analysis intuitive
🔄 Customizable: Multiple MA types and visual themes
📱 Professional: Clean, organized display suitable for all traders
Multi-Session Volume Profile Suite [MarkitTick]💡 This indicator provides a sophisticated, institutional-grade Volume Profile analysis suite that renders multiple temporal profiles simultaneously. It is designed for traders utilizing Auction Market Theory who require a holistic view of where value is being established across Daily, Weekly, and Monthly timeframes, alongside custom intraday sessions. By bypassing standard built-in functions in favor of a custom array-based calculation engine, this tool offers granular control over Value Area logic, Point of Control (POC) migration, and multi-timeframe confluence detection.
✨ Originality and Utility
Standard Volume Profile tools often limit traders to a single timeframe or the visible range of the chart. This creates a fragmented view of the market, where a trader might see the daily value but miss the context of the weekly or monthly auction.
This script solves that problem by layering three distinct higher-timeframe profiles (Daily, Weekly, Monthly) plus three customizable intraday session profiles onto a single chart.
● Key Differentiators
Confluence Detection Engine: The script mathematically calculates when the Points of Control (POC) of different timeframes overlap (e.g., Daily POC inside Weekly POC). It explicitly highlights these high-probability zones with specific labels (e.g., "TRIPLE CONFLUENCE"), automating the search for key support/resistance levels.
POC Migration Tracking: Unlike static profiles, this tool tracks the "Shift" of the POC. It visualizes whether value is migrating higher (▲), lower (▼), or remaining neutral (=) compared to the previous period, providing immediate insight into the trend's acceptance.
Synthetic Chart Protection: The script includes logic to detect and prevent usage on non-standard chart types like Heikin Ashi or Renko, ensuring that the volume data processed is accurate and not subject to the repainting often found in synthetic OHLC variations.
🔬 Methodology and Concepts
The core engine relies on a custom implementation of the Volume Profile formula using dynamic arrays. It does not simply pull pre-calculated data but processes the tick volume of the underlying asset relative to price action.
• Volumetric Binning
The script divides the price range of a specific period (e.g., a Day) into a user-defined number of "rows" (bins). As price trades within a specific bin, the corresponding volume is accumulated.
Point of Control (POC): The bin with the highest accumulated volume is identified as the POC. This represents the "Fair Value" or the mode of the distribution for that period.
Value Area (VA): The script calculates the total volume of the profile and then identifies the range surrounding the POC that contains a specific percentage (default 70%) of that volume. It uses a dual-scanning algorithm that expands upwards or downwards from the POC based on which adjacent row has higher volume, mimicking the auction process of testing prices.
• Exact-Anchor Pivots
Simultaneously, the script tracks "Exact-Anchor" pivots. Unlike standard pivots that settle at the close, these track the absolute High and Low of the period (Daily/Weekly/Monthly) in real-time and extend them until a new period begins.
🎨 Visual Guide
The indicator uses a color-coded hierarchy to distinguish between timeframes. Understanding this visual language is critical for interpreting the data.
● Profile Hierarchy (Default Theme)
Daily Profile (Yellow/Gold): Represents the immediate, short-term auction.
Solid Line: Daily POC.
Dotted Line: Daily Value Area High (VAH) and Low (VAL).
Weekly Profile (Blue): Represents the intermediate auction. A solid Blue line indicates the Weekly POC.
Monthly Profile (Purple): Represents the macro auction. A solid Purple line indicates the Monthly POC.
● Labels and Symbols
Right-Side Labels: At the end of profile lines, text labels display the exact price of the POC.
Shift Arrows (▲ / ▼): Located inside the POC label, these arrows indicate the direction the POC has moved relative to the previous period's POC. An Up arrow (▲) suggests buyers are accepting higher prices.
Confluence Labels: If enabled, a text box appears near price action stating "POC CONFLUENCE" or "TRIPLE CONFLUENCE" when the POCs of different timeframes align within a tight margin.
Block Symbol (⬛): A small block icon may appear above bars to denote the center of a specific session's time window.
● Pivot Lines
Orange Lines: Previous Daily High (PDH) and Low (PDL).
Green Dashed Lines: Previous Weekly High (PWH) and Low (PWL).
Red Dotted Lines: Previous Monthly High (PMH) and Low (PML).
White Dashed Line: New York Midnight Open price (if enabled).
📖 How to Use
This suite is designed for "Contextual Trading." It answers the question: Where are we relative to value?
• Trend Acceptance
Observe the Shift Arrows on the POC labels. In a healthy uptrend, you should see a sequence of Daily and Weekly profiles with (▲) arrows, indicating that the market is validating higher prices as fair value. If price rises but the POC remains lower or shifts down, it may indicate a "weak high" or a potential reversal (divergence between price and value).
• Support and Resistance
The POC lines act as high-probability support and resistance. Price returning to a Weekly (Blue) or Monthly (Purple) POC often results in a reaction, as these are areas of significant historical agreement between buyers and sellers.
• The Confluence Play
Pay special attention when the "Confluence" label appears. When a Daily POC aligns with a Weekly or Monthly POC, that specific price level possesses reinforced structural importance. A rejection from such a level is a strong signal; a breakout through such a level often leads to an explosive move as value transitions rapidly.
⚙️ Inputs and Settings
The script is highly customizable via the settings menu.
● General Settings
Row Resolution: Determines the granularity of the profile. Higher numbers (e.g., 100) create smoother, more detailed profiles but use more calculation resources.
Value Area %: Default is 70.0, representing the standard deviation of value.
Show POC Shift: Toggles the (▲/▼) comparison logic.
● Profile Scope
Show Daily/Weekly/Monthly: Checkboxes to individually enable or disable specific timeframe profiles.
Session Lookback: Controls how many historical days/weeks the profiles are kept on the chart.
● Pivots (PDH/PMH/NYM)
Show Pivots: Enables the High/Low lines for previous periods.
Show NY Midnight: Specifically toggles the opening price of the New York session (00:00 EST).
● Alerts
Approach Distance: Sets the sensitivity (in ticks) for alerts when price nears a key POC level.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
This indicator is grounded in Auction Market Theory (AMT) and statistical distribution analysis.
• The Market as a Mechanism
AMT postulates that the primary purpose of the market is to facilitate trade. Price advertises opportunity, while Time regulates the opportunity. Volume is the validation of that price. When the market spends significant time and transacts significant volume at a specific level, it establishes "Value."
• Gaussian Distribution and Central Limit Theorem
A Volume Profile is essentially a histogram of volume over price, often resembling a Gaussian (Normal) Distribution or "Bell Curve" when the market is balanced.
POC (Mode): The peak of the curve. Mathematically, this is the mode of the dataset—the price occurring with the highest frequency (volume).
Value Area (Standard Deviation): In a normal distribution, approximately 68.2% of data points fall within one standard deviation of the mean. This script defaults to a 70% Value Area to approximate this statistical boundary. Prices outside this area are considered statistically significant anomalies or "imbalanced."
• Confluence and Probability
The "Confluence" feature leverages the intersection of independent datasets. If the mode (POC) of a short-term distribution (Daily) aligns with the mode of a long-term distribution (Weekly), the probability of that price representing "True Value" increases exponentially. This aligns with statistical principles where overlapping data clusters suggest a stronger underlying signal amidst market noise.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion.
VWMA SuperTrend | RakoQuantVWMA SuperTrend | RakoQuant is a volume-weighted trend regime system built from first principles using a VWMA equilibrium baseline and a classic ATR volatility envelope, engineered for clean directional state detection, systematic backtesting, and portfolio-ready regime filtering.
This script is part of the RakoQuant protected research line, combining institutional-grade visuals, persistent regime logic, and a full indicator-native performance table normally reserved for strategies.
Core Concept
This indicator answers one key question:
Is price trending above a volume-weighted equilibrium (bull regime), trending below it (bear regime), or transitioning between states?
Unlike standard SuperTrend variants that anchor to price averages with no volume context, this version anchors trend structure to VWMA, meaning:
* High-volume candles have higher influence
* Regime shifts reflect real participation
* Trend containment becomes more structurally valid in crypto and high-variance markets
How It Works
1. VWMA Equilibrium Baseline (Participation-Weighted Mean)
The core baseline is:
VWMA(Source, Length)
This produces a regime anchor that reflects where price is being accepted with volume, not just where price traded.
The default implementation uses High as the source to align regime structure with aggressive buying pressure during expansions.
2. ATR Volatility Envelope (SuperTrend Bands)
Volatility is defined through ATR, forming upper/lower containment bands around the VWMA mean:
* Upper Band = VWMA + Factor × ATR
* Lower Band = VWMA − Factor × ATR
A trailing-band SuperTrend engine ensures the active band persists until a flip condition occurs, creating a true state model rather than candle-to-candle noise.
3. Intraday Signal Smoothing (Anti-Chop Filter)
To reduce whipsaw on lower timeframes, the script includes an optional smoothing module:
* VWMA baseline smoothing (EMA)
* ATR smoothing (EMA)
Enabled only in Intraday Mode, preserving clean swing behavior while improving lower timeframe stability.
4. Persistent Regime State + Flip Events
The indicator maintains a persistent state:
* Bull Regime: trend band flips bullish (green state)
* Bear Regime: trend band flips bearish (red state)
Flip events are exposed through:
* Alerts
* Optional BUY / SELL labels
* Backtest table engine
RQ Visual Engine (UniStrat Palettes)
This protected release includes the full RQ Visual Engine with premium palette support:
✅ Classic
✅ Alpha
✅ Desert
✅ Premium
✅ Navy
✅ Warm
✅ Toxic
✅ Neo
✅ Matrix
All line colors, fills, candle painting, and dashboard styling inherit the selected palette automatically.
♛ RQ Custom Metrics (Indicator Backtest)
The defining feature of this protected script is the built-in:
♛ RQ Custom Metrics Engine
A full indicator-native backtest system that outputs performance statistics without converting to a strategy.
The dashboard reports:
* Equity Max Drawdown
* Intra-Trade Max Drawdown
* Profit Factor
* % Profitable
* Sharpe Ratio
* Sortino Ratio
* Omega Ratio Ω
* Half Kelly Exposure
* Total Trades
* Net Profit %
Displayed inside the signature table:
𝓑𝓪𝓬𝓴𝓽𝓮𝓼𝓽 𝓜𝓮𝓽𝓻𝓲𝓬𝓼
This allows systematic evaluation before building a full execution model.
How To Use
✅ Trend regime confirmation tool
✅ Directional filter for RSPS / UniStrat systems
✅ Volume-weighted SuperTrend containment model
✅ Works best on 4H–1D for swing structures, and 15m–1H with Intraday smoothing enabled
Recommended workflow:
* Only trade long when regime is bullish
* Defensive/cash when regime flips bearish
* Combine with breakout or momentum execution confluences
Screenshot Placement
📸 Example chart / screenshot:
Relative Strength Index - RSI🎯 Overview
This is an enhanced Relative Strength Index (RSI) indicator for TradingView that combines traditional RSI analysis with a moving average overlay to generate more reliable trading signals ⚡
🧩 Core Components
1. ⚙️ Indicator Settings
2. 🎛️ Input Parameters
A. 🎨 Color Settings:
5 different color themes: 🎨 Classic, 🚀 Modern, 💪 Robust, 🌈 Accented, ⚫⚪ Monochrome
Each theme provides distinct bullish/bearish color pairs
B. 📊 RSI Configuration:
📏 Length: Default 14 periods
📈 Source: Default close price (customizable)
📊 RSI MA Length: Default 365 periods
🔄 RSI MA Type: 6 options (EMA, SMA, RMA, WMA, VWMA, HMA)
C. 📢 Signal Display:
✅ Toggle for Bull/Bear crossover signals
📋 Table display showing current market bias
3. 🧮 Technical Calculations
A. 📈 RSI Calculation:
Standard RSI formula using ta.rsi()
Configurable source and period length
B. 📊 RSI Moving Average:
Customizable MA type applied to the RSI values
Serves as a dynamic signal line
Default 365-period EMA smooths long-term trends
C. 🔔 Signal Detection:
🟢 isBull_RSI: RSI > RSI_MA (bullish condition)
🔴 isBear_RSI: RSI < RSI_MA (bearish condition)
🟢 Bull: Crossover signal (RSI crosses above MA)
🔴 Bear: Crossunder signal (RSI crosses below MA)
4. 👁️ Visual Elements
A. 📉 Main Plots:
📊 RSI Line: Thick line (width 3) colored conditionally based on position relative to its MA
📈 RSI MA Line: Yellow line showing the smoothed RSI
🎯 50-Level Line: Dashed white reference line
B. 🎨 Fill Areas:
🟢 Overbought Zone : Filled between RSI and MA
🔴 Oversold Zone : Filled between RSI and MA
Colors vary based on selected theme
C. 🌈 Background Highlights:
Subtle background coloring on bullish/bearish crossover signals
D. 📋 Table Display:
Shows "⬆️ Bullish" or "⬇️ Bearish" with appropriate coloring
5. 🔔 Alert System
🟢 LONG Alert: Triggers when RSI > RSI_MA
🔴 SHORT Alert: Triggers when RSI < RSI_MA
Includes ticker symbol in alert message
🏁 Trading Logic
🎯 Primary Signals:
🟢 Bullish Setup:
📈 RSI crosses above its moving average
📊 RSI remains above MA (continuous bullish condition)
🎨 Visual: Green/theme bull colors, bullish fill areas
🔴 Bearish Setup:
📉 RSI crosses below its moving average
📊 RSI remains below MA (continuous bearish condition)
🎨 Visual: Red/theme bear colors, bearish fill areas
✨ Key Features:
📊 Trend Filter: The RSI MA (365-period) acts as a long-term trend filter
⚡ Momentum + Trend: Combines momentum (RSI) with trend (MA) for higher probability signals
👁️ Visual Clarity: Color-coded elements make market state immediately apparent
🛠️ Customizability: Multiple MA types and color schemes adapt to different trading styles
💻 Code Structure
The script is well-organized with clear sections:
🔧 MA function definition
⚙️ Input settings
🧮 Calculations
🎨 Color definitions
📊 Plotting
📋 Table display
🔔 Alert conditions
🎯 Best Use Cases
📈 Trend Following: In trending markets, signals align with the overall direction
🔄 Mean Reversion: In ranging markets, oversold/overbought fills indicate potential reversals
⏰ Multi-Timeframe Analysis: Works well on daily/weekly charts for long-term positioning
✅ Signal Confirmation: Can be combined with other indicators for entry/exit confirmation
🏆 Unique Advantages
🎯 Reduced Whipsaws: Long MA period (365) filters out noise
👁️ Clear Visual Hierarchy: Multiple visual layers convey information efficiently
💼 Professional Presentation: Clean, organized display suitable for sharing
🛠️ Flexible Configuration: Adaptable to different assets and timeframes
Adaptive Momentum SuperTrend | RakoQuantAdaptive Momentum SuperTrend | RakoQuant is a volatility-based trend regime system enhanced with a momentum-adaptive sensitivity engine, designed to capture clean transitions while dynamically adjusting responsiveness based on market strength. Built within the RakoQuant protected research line, it combines a robust Median True Range SuperTrend core, institutional trend logic, adaptive momentum modulation, and premium signal clarity across all market environments.
Core Concept
This indicator answers one question:
Is the market in a directional regime with expanding momentum, or weakening into volatility-driven chop?
Unlike standard SuperTrend tools that apply a fixed volatility factor at all times, Adaptive Momentum SuperTrend adapts band sensitivity depending on whether momentum is accelerating or fading—while keeping behavior bounded inside a controlled multiplier range.
How It Works
1) Median SuperTrend Engine (Robust Core)
The foundation is the RakoQuant Median SuperTrend architecture:
* Median Baseline reduces noise versus conventional smoothing
* Median True Range (MTR) suppresses wick distortion versus ATR
* Bands are formed as:
* Upper = Baseline + Factor × MTR
* Lower = Baseline − Factor × MTR
Trend direction persists using classic trailing-band SuperTrend logic, producing a structural regime model (state-based, not a one-bar signal).
2) Adaptive Momentum Sensitivity Layer
Momentum can be computed using:
* ROC (Rate of Change) or RSI (Relative Strength Index)
Momentum strength is normalized into a 0 → 1 intensity score:
* Strong momentum → tighter sensitivity (faster regime capture)
* Weak momentum → wider sensitivity (whipsaw suppression)
The effective SuperTrend factor becomes adaptive:
EffectiveFactor = BaseFactor × MomentumMultiplier
…with the multiplier clamped inside a predefined range for risk-controlled behavior.
3) Momentum Intensity Visual Engine
A protected RakoQuant visualization layer scales trend-band opacity with momentum strength:
* Strong expansion = solid active band
* Weak momentum = faded regime signal
Result: not all flips are equal—strength is visible structurally.
4) Optional Institutional Filters
Two optional confirmation modules are included:
Momentum Confirmation
* Bull flips require bullish momentum
* Bear flips require bearish momentum
MA Stack Filter (EMA Stack)
* Bull only when Fast EMA > Slow EMA
* Bear only when Fast EMA < Slow EMA
These filters make the tool suitable for:
* RSPS directional bias systems
* Portfolio regime classification
* Institutional trend-following frameworks
5) Strong Flip Tier Alerts
Signals support tiered quality:
* Standard flip alerts
* Strong flip alerts when momentum strength exceeds a threshold
This provides a higher-confidence regime transition model for swing execution and exposure scaling.
How To Use
* ✅ Trend regime overlay
* ✅ Momentum-confirmed SuperTrend flips
* ✅ Adaptive volatility trend filter
* ✅ Portfolio directional bias engine
Best use cases:
* 4H–1D swing systems
* Trend continuation frameworks
* Regime-based exposure scaling
Suggested workflow:
* Long bias only when bull regime + momentum expanding
* Defensive/cash when regime flips bearish
* Combine with execution tools (breakout/mean-reversion) for entries
Screenshot Placement
📸 Example chart / screenshot
MultiTF EMA OverlayIndicator overlay with optimal EMAs across multiple timeframes (15m, 30m, 1h, 4h) that can be enabled or disabled using flags.
EMA stands for Exponential Moving Average.
DCA TPO Density AuditorDCA TPO Density Auditor
Overview
The DCA TPO Density Auditor is a versatile Market Profile-inspired indicator that visualizes time-at-price density across user-defined sessions (daily, weekly, or monthly). It approximates traditional TPO (Time Price Opportunity) profiles by mapping price zones where the market spent the most time, helping traders identify key support, resistance, and value areas.
The indicator draws density maps using colored boxes, highlights the Point of Control (POC), and provides a real-time structural density score at the current price.
This tool is for day traders and swing traders looking to understand market auction dynamics, spot imbalances, and make informed decisions based on time-based structures rather than just volume or price action.
Key Features
- Session Profiles: Builds dynamic profiles for the current session and up to 5 historical ones, aligned to session ends for easy historical analysis.
- Density Visualization: Divides the session's high-low range into customizable zones (default 50) and counts bar touches to approximate TPO density. High-density areas appear darker for quick identification.
- Bullish/Bearish Coloring: Zones below the POC are colored green (bullish support), above are red (bearish resistance), and the POC is neutral gray, with transparency gradients reflecting density strength.
- Structural Density Score: A live label displays the density percentage at the current price (green for strong >70%, red for weak), quantifying level reliability.
- Customization: Adjust session timeframe, zone granularity, historical count, and colors to suit various assets and trading styles.
How It Works
The indicator detects new sessions based on the selected timeframe (e.g., daily) and accumulates TPO counts by tracking how often price bars interact with each zone. At session end, it stores the profile for historical display. The POC is calculated as the zone with the maximum TPO count, and colors are applied relative to it. Drawings update on the last bar for real-time visibility.
Note : This is an approximation of full TPO charts (no letter rendering due to platform limits) and focuses on time spent at price levels.
Inputs Explanation
- Session Timeframe: Choose "D" (daily), "W" (weekly), or "M" (monthly) to define profile periods.
- Price Grid Density: Number of zones (steps) in the profile; higher values provide finer detail but may increase computation.
- Number of Historical Profiles: Display up to this many past sessions for context (default 5).
- Bullish/Bearish/Neutral Colors: Customize the hues for density zones to match your chart theme.
Usage Instructions
1. Add the indicator to your chart (works best on intraday timeframes like 5m-1h for day trading).
2. Select your session timeframe and adjust zones/history as needed.
3. Interpret the map: Buy near dense green supports (high score), sell at red resistances. Use historical profiles to confirm trends or ranges.
4. Combine with other tools like volume profiles or candlestick patterns for confirmation.
Important Notes
- This indicator is for educational and analytical purposes only and does not constitute financial advice. Past performance is not indicative of future results. Always conduct your own analysis and manage risk appropriately.
- Performance may vary by asset and timeframe; test thoroughly in replay mode.
If you find this useful, feel free to rate or comment with feedback. Happy trading!
ALMA SD Bands | RakoQuantALMA SD Bands | RakoQuant is a volatility-regime band system built from first principles using an institutional smoothing framework: an ALMA baseline combined with ALMA-smoothed standard deviation width, designed for clean trend containment and controlled regime classification.
This tool is part of the RakoQuant protected research line, focusing on minimal noise, persistent state logic, and volatility-aware market structure rather than traditional reactive Bollinger-style band behavior.
Core Concept
This indicator answers one key structural question:
Is price operating inside a stable volatility regime, or transitioning into a new directional band expansion phase?
Unlike classical deviation band systems that fluctuate aggressively candle-to-candle, ALMA SD Bands introduce:
* Ultra-smooth baseline structure
* Smoothed volatility width
* Persistent directional regime logic
* Deadband-based flip stabilization
The result is a clean institutional containment model rather than noisy retail band plotting.
How It Works
1. ALMA Baseline (Institutional Mean Structure)
The centerline of the system is computed using:
Arnaud Legoux Moving Average (ALMA)
ALMA provides:
* Reduced lag compared to EMA
* Superior smoothness compared to SMA
* Stable regime structure across crypto volatility
This baseline acts as the equilibrium axis of the band system.
2. Standard Deviation Volatility Width (Smoothed)
Band width is driven by volatility, measured through standard deviation, with two selectable modes:
* Price Standard Deviation
* Return Standard Deviation (log-return volatility)
Rather than using raw deviation directly, volatility is passed through a second ALMA smoothing layer:
Smoothed Volatility = ALMA(StdDev)
This eliminates the jitter and band shaking that defines most Bollinger-type systems.
3. Adaptive Containment Bands
Final bands are constructed as:
* Upper Band = ALMA Basis + Multiplier × Smoothed Volatility
* Lower Band = ALMA Basis − Multiplier × Smoothed Volatility
Unlike traditional ±2σ envelopes, the multiplier is intentionally adjustable and tuned for regime containment rather than extreme tagging.
4. Deadband Regime Engine (Persistent State Logic)
A defining feature of this protected release is its regime persistence model.
Instead of flipping trend bias instantly, the script applies a volatility-scaled deadband buffer:
* Bull regime activates only above Basis + Deadband
* Bear regime activates only below Basis − Deadband
This removes micro-flips and produces a true structural regime state:
* Bullish containment (green)
* Bearish containment (red)
* Neutral transition zone suppression
Regime state persists until a confirmed boundary transition occurs.
Visual Engine
ALMA SD Bands follows the RakoQuant minimal institutional plotting standard:
* Active volatility bands only
* Smooth containment fill
* Optional candle painting by regime bias
* Ultra-clean overlays suitable for confluence stacking
This indicator is designed as a structural layer, not a clutter generator.
How To Use
✅ Volatility containment framework
✅ Trend regime bias overlay
✅ Expansion / contraction classifier
✅ Portfolio directional filter (RSPS compatible)
Recommended workflow:
* Trade long only during bullish regime containment
* Defensive during bearish containment
* Watch for regime flips as volatility transition events
* Combine with momentum triggers for execution
Best environments:
* 4H–1D swing trend structure
* Volatility breakout classification
* Institutional band containment systems
Screenshot Placement
📸 Example chart / screenshot:
WMA MAD Trend | RakoQuantWMA MAD Trend | RakoQuant is a robust volatility-regime trend system built on Weighted Moving Average structure and Median Absolute Deviation dispersion, engineered to produce clean directional states while suppressing wick-driven noise and unstable ATR distortions.
This tool belongs to the RakoQuant protected research line, combining a smooth WMA baseline, statistically robust volatility envelopes (MAD bands), SuperTrend-style regime logic, and a strength-aware visualization layer designed for consistent performance across trending, mean-reverting, and mixed market environments.
Core Concept
This indicator answers one fundamental question:
Is price holding a statistically meaningful deviation from its WMA baseline, or reverting back into range?
Unlike classic SuperTrend variants that rely on ATR (highly sensitive to spikes and wicks), WMA MAD Trend uses Median Absolute Deviation as its volatility engine — a robust dispersion measure that remains stable in the presence of outliers.
How It Works
1) WMA Baseline (Directional Structure)
At its core, the indicator defines the market’s structural center using a Weighted Moving Average:
* WMA Baseline tracks directional bias with smoother, trend-weighted responsiveness
* The baseline can optionally be smoothed further in intraday mode to reduce micro-chop
This provides a stable anchor for dispersion-based regime classification.
2) MAD Volatility Engine (Robust Dispersion Core)
Instead of ATR, volatility is measured via Median Absolute Deviation (MAD) around the baseline:
* Compute absolute deviation:
|Close − Baseline|
* Take rolling median of deviation over madLen
* Optional normalization scales MAD toward a stdev-like measure (via constant factor)
This makes volatility estimation:
* Outlier-resistant
* Wick-resistant
* Regime-stable during abnormal price spikes
3) MAD Bands + SuperTrend Trailing Logic (Regime State Model)
Bands are built as:
* Upper Band = Baseline + Factor × MAD
* Lower Band = Baseline − Factor × MAD
Then classic SuperTrend-style trailing constraints are applied so the active band persists until a true regime break occurs.
That produces a state engine:
* Bull regime when price breaks above the trailing upper logic (transition into trend-up state)
* Bear regime when price breaks below the trailing lower logic (transition into trend-down state)
This behaves like a structural market regime model, not a reactive oscillator.
4) Strength Engine (Deviation-Based Intensity)
A defining layer of this tool is the MAD Z-score intensity system:
* Compute Z-score:
z = |Close − Baseline| / MAD
* Map into a 0 → 1 strength scale
Interpretation:
* Low deviation = weak regime confidence (likely chop / mean reversion)
* High deviation = strong regime confidence (trend expansion)
5) Intensity Visual Engine (Signal Clarity Layer)
WMA MAD Trend includes a protected visual engine that scales opacity with strength:
* Strong expansion = solid trend band
* Weak deviation = faded band
This gives immediate clarity:
Not all flips are equal — strength is displayed structurally.
6) Optional Institutional Filters
Two optional confirmation modules allow institutional-grade filtering:
Baseline Confirmation
* Bull flips only accepted if price is above baseline
* Bear flips only accepted if price is below baseline
EMA Stack Filter
* Bull only when Fast EMA > Slow EMA
* Bear only when Fast EMA < Slow EMA
These modules make the tool suitable for:
* Directional portfolio bias frameworks (RSPS)
* Regime classification overlays
* Trend confirmation filters for execution systems
7) Strong Flip Tier Alerts
Signal quality is tiered:
* Standard flip alerts
* Strong flip alerts only when deviation strength exceeds a threshold
This produces a higher-confidence regime transition model for swing positioning and exposure scaling.
How To Use
✅ Trend regime overlay
✅ Wick-resistant volatility trend filter
✅ MAD-based deviation strength engine
✅ Directional bias tool for portfolio systems
Best use cases:
* 1H–1D trend frameworks
* Regime filters for signal stacking
* Chop suppression in volatile markets
Suggested workflow:
* Bull bias when the regime is bullish and strength is rising
* Reduce risk / defensive when strength fades or a bearish flip occurs
* Pair with execution tools (breakout/mean-reversion entries) for timing
Screenshot Placement
📸 Example chart / screenshot: snapshot
MS TRADING (STRATEGY)This indicator is designed to help traders identify market trend, key support & resistance levels, and high-probability trade zones.
It combines moving averages and price structure to provide clear visual signals directly on the chart.
This tool can be used for scalping, intraday, and swing trading across Forex, Crypto, and Indices.
⚠️ Disclaimer: This indicator is for educational purposes only and should not be considered financial advice. Always use proper risk management.
Gartley + RSI Div + CDC ActionZone Alert//@version=5
indicator("Gartley + RSI Div + CDC ActionZone Alert", overlay=true)
// --- 1. CDC Action Zone Logic ---
ema12 = ta.ema(close, 12)
ema26 = ta.ema(close, 26)
isBlue = close > ema12 and ema12 < ema26
isGreen = ema12 > ema26
cdcSignal = isBlue or isGreen
// --- 2. RSI Bullish Divergence Logic ---
rsiVal = ta.rsi(close, 14)
lbR = 5 // Lookback Left
rbR = 5 // Lookback Right
minLow = ta.pivotlow(rsiVal, lbR, rbR)
isDiv = false
if not na(minLow)
prevLow = ta.valuewhen(not na(minLow), minLow , 0)
prevPrice = ta.valuewhen(not na(minLow), low , 0)
if rsiVal > prevLow and low < prevPrice
isDiv := true
// --- 3. Gartley Approximation (D-Point Focus) ---
// ส่วนนี้ใช้ ZigZag พื้นฐานเพื่อหาจุดกลับตัว (Simplified for Alert)
sz = input.int(10, "ZigZag Sensitivity")
ph = ta.pivothigh(high, sz, sz)
pl = ta.pivotlow(low, sz, sz)
// เงื่อนไขรวม (Combo Strategy)
// ราคาอยู่ที่จุดต่ำสุดใหม่ (Potential D) + RSI ขัดแย้ง + CDC เริ่มเปลี่ยนสี
buyAlert = isDiv and cdcSignal and not na(pl)
// --- การแสดงผลบนกราฟ ---
plotshape(buyAlert, title="Gartley-CDC Buy", style=shape.labelup, location=location.belowbar, color=color.green, text="BUY SETUP", textcolor=color.white, size=size.small)
// วาดเส้น EMA สำหรับ CDC
plot(ema12, color=color.red, linewidth=1)
plot(ema26, color=color.blue, linewidth=1)
// --- ระบบการแจ้งเตือน (Alerts) ---
if buyAlert
alert("SPA Style Setup Found: Gartley D-Point + RSI Div + CDC Signal!", alert.freq_once_per_bar)






















