已更新
Smart Fear & Greed Index Pro [MarkitTick]

💡 The Smart Fear & Greed Index Pro [MarkitTick] is an advanced, multi-dimensional oscillator designed to quantify market sentiment by dynamically analyzing ten distinct pillars of price action, volume, and volatility. Unlike static sentiment indicators, this tool employs an adaptive weighting algorithm that adjusts the influence of each metric in real-time based on its statistical stability and correlation with price movements.
This is the professional version of the free indicator Smart Fear & Greed Index [MarkitTick]
✨ Originality and Utility
Standard sentiment oscillators often rely on fixed lookback periods and static weights, causing them to lag or generate false signals during regime changes. This indicator solves that problem through a highly original "Adaptive Weighting" mechanism. By continuously measuring how well each underlying metric correlates with the current price action, the script promotes the most relevant data points while suppressing noisy or lagging indicators.
Furthermore, the script features a built-in Auto-Inversion protocol. If a typically counter-cyclical metric begins to exhibit persistent negative correlation beyond a specific threshold, the indicator automatically inverts its output to maintain alignment with the broader cyclical trend. This makes it an exceptionally robust tool for traders who need a responsive, context-aware gauge of market extremes across different timeframes.
🔬 Methodology and Concepts
The core of this indicator is built upon a robust statistical framework that processes ten individual market metrics before synthesizing them into a single index.
● Normalization and Outlier Management
Raw data from disparate sources (like volume imbalances and log returns) cannot be simply added together. The script utilizes Winsorization to cap extreme outliers (three standard deviations from the mean) and applies a Percentile Rank function alongside Z-Scores to normalize all data points into a standardized 0 to 100 scale.
● The Ten Pillars of Analysis
🎨 Visual Guide
The indicator is plotted on a separate pane below the main chart and consists of several highly intuitive visual components.

● The Fear & Greed Line
The primary index is plotted as a thick, color-changing line that oscillates between 0 and 100.

● The Signal Line
A solid white line serves as a smoothed signal line (configurable as SMA, EMA, or WMA). This line helps identify shifts in momentum when the main FGI line crosses over or under it.
● Background Zones and Thresholds
📖 How to Use
Traders can utilize this indicator to identify potential exhaustion points and cyclical reversals.
● Identifying Extremes
When the indicator reaches Extreme Greed (red zone), it suggests the market may be overextended and due for a correction or consolidation. Conversely, readings in Extreme Fear (green zone) often indicate capitulation and potential accumulation zones.
● Crossover Signals
Watch for the primary color-coded line crossing the white signal line. A cross downward from the Extreme Greed zone suggests fading momentum, while a cross upward from the Extreme Fear zone suggests buying pressure is returning.
● Divergences
Look for discrepancies between price action and the indicator. If the price makes a higher high, but the Fear & Greed index makes a lower high, it signals waning participation in the trend.

● Market Signal Dynamics
A crossover between the main indicator line and the signal line acts as an early warning that the market momentum might be shifting. However, the true direction of the overall trend is determined by the centerline (the 50-level). The trend is considered bullish as long as the indicator remains above the centerline, and bearish when it stays below it.
⚙️ Inputs and Settings
The script is highly customizable, catering to both novice and advanced users.
● Timeframe Configuration
● Manual Overrides
Users can manually adjust the periods for every single metric, including Volatility, Momentum, Volume Spikes, and Range Expansion.
● Adaptive & Smoothing Settings
🔍 Deconstruction of the Underlying Scientific and Academic Framework
This indicator is heavily rooted in quantitative behavioral finance and robust statistical modeling. By utilizing Winsorization, the mathematical model actively limits the influence of spurious market anomalies (such as flash crashes or fat-finger errors) that typically skew standard deviation calculations.
The normalization process employs a Sigmoid-like transformation via Z-Scores, ensuring that the disparate units of the underlying metrics (e.g., absolute volume vs. percentage returns) are mapped to a uniform distribution curve. Furthermore, the "Adaptive Weighting" incorporates principles of dynamic factor modeling. By measuring the Pearson correlation coefficient between the rate of change of the individual metrics and the underlying asset's price, the algorithm dynamically penalizes metrics that exhibit high variance or zero correlation (noise) while rewarding those that exhibit stable, predictive variance (signal).
🔓 vs 🔒 Smart Fear & Greed Index (Pro vs. Free)
The technical breakdown of the differences between the Standard and Pro versions of the Smart Fear & Greed Index scripts.
The Pro version is a heavily advanced, statistically normalized algorithmic tool, whereas the Standard version acts as a lightweight, object-oriented foundational gauge.
● Metric Depth & Calculation Engine
• Pro Version Analyzes the market using 10 advanced independent metrics. These include Volatility, Momentum, Volume Spikes, Volume Imbalance, Range Expansion, Price Position, Accumulation/Distribution, Velocity, Distance From Mean, and the Elliott Wave Oscillator (EWO).
• Standard Version Relies on a simplified core of 4 foundational metrics: Momentum (RSI), Volatility (ATR), Volume (Relative SMA), and Price Position (Stochastic).
● Weighting & Adaptation Logic
• Pro Version Features a highly sophisticated Adaptive Weighting System. Instead of equal weighting, it dynamically adjusts the importance of each metric in real-time based on Volatility, Correlation, or a Hybrid of both. It also includes an "Auto-Invert" mechanism that flips counter-cyclical metrics if their correlation shifts heavily.
• Standard Version Uses a static, Equal-Weighting System, where all 4 metrics contribute exactly 25% to the final composite score.
● Timeframe Auto-Configuration
• Pro Version Includes an intelligent Timeframe Detection engine. If enabled, it automatically reads the chart's timeframe (e.g., Daily or Weekly) and dynamically assigns optimized lookback periods for every single metric to prevent lagging or false signals.
• Standard Version Operates strictly on manual inputs. The user sets a single global lookback period that governs all internal metrics uniformly.
● Mathematical Normalization
• Pro Version Utilizes advanced institutional mathematics, including Winsorization (to remove extreme outliers) and Z-Score based Percentile Ranking. This ensures the data is flawlessly smoothed and normalized between 0 to 100 regardless of extreme market conditions.
• Standard Version Uses a standard Minimum/Maximum normalization formula ((src - l) / div * 100) to keep the metrics constrained within the 0 to 100 range.
● Code Architecture
• Pro Version Employs an optimized procedural structure using persistent variables (var) and deep custom helper functions to handle the massive calculation load and arrays efficiently.
• Standard Version Built with a modern, modular Object-Oriented Programming (OOP) approach, utilizing Pine Script v6 User-Defined Types (UDTs) and stateful Methods (QuantEngine).
⚠️ 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.
This is the professional version of the free indicator Smart Fear & Greed Index [MarkitTick]
✨ Originality and Utility
Standard sentiment oscillators often rely on fixed lookback periods and static weights, causing them to lag or generate false signals during regime changes. This indicator solves that problem through a highly original "Adaptive Weighting" mechanism. By continuously measuring how well each underlying metric correlates with the current price action, the script promotes the most relevant data points while suppressing noisy or lagging indicators.
Furthermore, the script features a built-in Auto-Inversion protocol. If a typically counter-cyclical metric begins to exhibit persistent negative correlation beyond a specific threshold, the indicator automatically inverts its output to maintain alignment with the broader cyclical trend. This makes it an exceptionally robust tool for traders who need a responsive, context-aware gauge of market extremes across different timeframes.
🔬 Methodology and Concepts
The core of this indicator is built upon a robust statistical framework that processes ten individual market metrics before synthesizing them into a single index.
● Normalization and Outlier Management
Raw data from disparate sources (like volume imbalances and log returns) cannot be simply added together. The script utilizes Winsorization to cap extreme outliers (three standard deviations from the mean) and applies a Percentile Rank function alongside Z-Scores to normalize all data points into a standardized 0 to 100 scale.
● The Ten Pillars of Analysis
- Volatility: Combines Average True Range (ATR) and standard deviations of logarithmic returns.
- Momentum: Measures the velocity of price changes using a Relative Strength Index (RSI) foundation.
- Volume Spikes: Compares current volume against a smoothed average, weighted by the direction of the candle.
- Volume Imbalance: Analyzes the ratio of cumulative up-volume versus down-volume.
- Range Expansion: Evaluates the current high-low range against its historical average.
- Price Position: A Donchian-style calculation determining where the current close sits within a historical high-low range.
- Accumulation/Distribution: Tracks directional volume flow.
- Velocity: Calculates the absolute percentage rate of price change.
- Distance From Mean: Measures the percentage deviation of the current price from a Simple Moving Average.
- Elliott Wave Oscillator (EWO): Measures the distance between a fast and slow moving average to detect wave structure momentum.
🎨 Visual Guide
The indicator is plotted on a separate pane below the main chart and consists of several highly intuitive visual components.
● The Fear & Greed Line
The primary index is plotted as a thick, color-changing line that oscillates between 0 and 100.
- Deep Red: Extreme Greed (Values 70 and above).
- Orange: High Greed (Values between 60 and 69).
- Yellow/Gold: Neutral to Mild Sentiment (Values between 40 and 59).
- Dark Green: High Fear (Values between 30 and 39).
- Bright Lime Green: Extreme Fear (Values below 30).
● The Signal Line
A solid white line serves as a smoothed signal line (configurable as SMA, EMA, or WMA). This line helps identify shifts in momentum when the main FGI line crosses over or under it.
● Background Zones and Thresholds
- Dashed/Dotted Lines: A gray dashed line marks the neutral 50 level. Red and green dotted lines mark the user-defined Extreme Greed and Extreme Fear thresholds.
- Dynamic Backgrounds: When the index enters Extreme Greed, the background of the indicator pane tints red. When it enters Extreme Fear, it tints green.
📖 How to Use
Traders can utilize this indicator to identify potential exhaustion points and cyclical reversals.
● Identifying Extremes
When the indicator reaches Extreme Greed (red zone), it suggests the market may be overextended and due for a correction or consolidation. Conversely, readings in Extreme Fear (green zone) often indicate capitulation and potential accumulation zones.
● Crossover Signals
Watch for the primary color-coded line crossing the white signal line. A cross downward from the Extreme Greed zone suggests fading momentum, while a cross upward from the Extreme Fear zone suggests buying pressure is returning.
● Divergences
Look for discrepancies between price action and the indicator. If the price makes a higher high, but the Fear & Greed index makes a lower high, it signals waning participation in the trend.
● Market Signal Dynamics
A crossover between the main indicator line and the signal line acts as an early warning that the market momentum might be shifting. However, the true direction of the overall trend is determined by the centerline (the 50-level). The trend is considered bullish as long as the indicator remains above the centerline, and bearish when it stays below it.
⚙️ Inputs and Settings
The script is highly customizable, catering to both novice and advanced users.
● Timeframe Configuration
- Enable Automatic Timeframe Configuration: When active, the script automatically adjusts all lookback periods (e.g., changing from 21 periods to 52 periods) based on whether you are viewing a Daily or Weekly chart.
● Manual Overrides
Users can manually adjust the periods for every single metric, including Volatility, Momentum, Volume Spikes, and Range Expansion.
● Adaptive & Smoothing Settings
- Adaptation Method: Choose between Volatility-Based, Correlation-Based, or a Hybrid approach for how the script assigns weights to its internal metrics.
- Z-Score Factor: Adjust the sensitivity of the statistical normalization.
- Smoothing Type: Change the moving average type (EMA, SMA, WMA) used for the final index output and the signal line.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
This indicator is heavily rooted in quantitative behavioral finance and robust statistical modeling. By utilizing Winsorization, the mathematical model actively limits the influence of spurious market anomalies (such as flash crashes or fat-finger errors) that typically skew standard deviation calculations.
The normalization process employs a Sigmoid-like transformation via Z-Scores, ensuring that the disparate units of the underlying metrics (e.g., absolute volume vs. percentage returns) are mapped to a uniform distribution curve. Furthermore, the "Adaptive Weighting" incorporates principles of dynamic factor modeling. By measuring the Pearson correlation coefficient between the rate of change of the individual metrics and the underlying asset's price, the algorithm dynamically penalizes metrics that exhibit high variance or zero correlation (noise) while rewarding those that exhibit stable, predictive variance (signal).
🔓 vs 🔒 Smart Fear & Greed Index (Pro vs. Free)
The technical breakdown of the differences between the Standard and Pro versions of the Smart Fear & Greed Index scripts.
The Pro version is a heavily advanced, statistically normalized algorithmic tool, whereas the Standard version acts as a lightweight, object-oriented foundational gauge.
● Metric Depth & Calculation Engine
• Pro Version Analyzes the market using 10 advanced independent metrics. These include Volatility, Momentum, Volume Spikes, Volume Imbalance, Range Expansion, Price Position, Accumulation/Distribution, Velocity, Distance From Mean, and the Elliott Wave Oscillator (EWO).
• Standard Version Relies on a simplified core of 4 foundational metrics: Momentum (RSI), Volatility (ATR), Volume (Relative SMA), and Price Position (Stochastic).
● Weighting & Adaptation Logic
• Pro Version Features a highly sophisticated Adaptive Weighting System. Instead of equal weighting, it dynamically adjusts the importance of each metric in real-time based on Volatility, Correlation, or a Hybrid of both. It also includes an "Auto-Invert" mechanism that flips counter-cyclical metrics if their correlation shifts heavily.
• Standard Version Uses a static, Equal-Weighting System, where all 4 metrics contribute exactly 25% to the final composite score.
● Timeframe Auto-Configuration
• Pro Version Includes an intelligent Timeframe Detection engine. If enabled, it automatically reads the chart's timeframe (e.g., Daily or Weekly) and dynamically assigns optimized lookback periods for every single metric to prevent lagging or false signals.
• Standard Version Operates strictly on manual inputs. The user sets a single global lookback period that governs all internal metrics uniformly.
● Mathematical Normalization
• Pro Version Utilizes advanced institutional mathematics, including Winsorization (to remove extreme outliers) and Z-Score based Percentile Ranking. This ensures the data is flawlessly smoothed and normalized between 0 to 100 regardless of extreme market conditions.
• Standard Version Uses a standard Minimum/Maximum normalization formula ((src - l) / div * 100) to keep the metrics constrained within the 0 to 100 range.
● Code Architecture
• Pro Version Employs an optimized procedural structure using persistent variables (var) and deep custom helper functions to handle the massive calculation load and arrays efficiently.
• Standard Version Built with a modern, modular Object-Oriented Programming (OOP) approach, utilizing Pine Script v6 User-Defined Types (UDTs) and stateful Methods (QuantEngine).
⚠️ 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.
發行說明
Standard: Pine Script v6 · JSON · 3Commas / PineConnector / TradersPost發行說明
● Stability & Automation Update- Fixed a repainting warning that was showing on the indicator
- Fixed a compile error that was preventing alerts from loading
- Improved webhook payload accuracy and compatibility with 3Commas, PineConnector, and TradersPost
- Added customizable action labels (buy / sell / close long / close short) for automation bots
- General stability and performance improvements
發行說明
Optimizing indicator performance and execution speed發行說明
Optimized the script code to improve performance.Added a dashboard.
Implemented an alert system.
發行說明
Smart Fear & Greed Index Pro — Update SummaryTrue Divergence Confirmation
Divergence signals are now validated as genuine divergences before anything is published. In the previous build, the divergence conditions driving alerts could trigger from a qualifying swing point alone, even when price and the index were not actually diverging. Chart lines, labels and alerts are now all driven by one single confirmed verdict, so what you see plotted and what fires as an alert are always the same event. Both regular and hidden divergences are covered, in both directions.
- Eliminates divergence alerts that had no corresponding line or label on the chart
- Alert count drops sharply while signal quality rises — every notification is a real divergence
- Bullish, bearish, regular and hidden variants all share the same confirmation standard
Non-Repainting Divergence Engine
Swing point detection now excludes the currently forming bar entirely. Divergences are evaluated only on settled data and are anchored to the exact bar where the swing actually printed, so a divergence that appears on your chart stays exactly where it appeared. Historical study and live trading now show identical behaviour.
- No more divergence lines or labels appearing and vanishing as the live bar develops
- Backtesting and replay results match live performance
- Signals are anchored to their true origin bar rather than drifting
Alert Toggles Now Fully Wired
The individual alert switches in the Alerts panel now genuinely control which conditions are permitted to fire. Previously these toggles were present but did not gate the underlying alert conditions. You can now silence any signal category you are not trading and receive only the notifications relevant to your strategy.
Zone Colouring Follows Your Own Thresholds
The index line colour, the background zone shading and the dashboard Zone reading are now all derived from the Fear and Greed thresholds you configure, instead of fixed internal boundaries. If you tighten or widen your extremes to suit a particular instrument or timeframe, the entire visual zone map adjusts with you and stays perfectly aligned with the plotted threshold lines.
How to Use
- The index line colour and the dashboard Zone row now describe the same regime, always consistent with your configured extreme levels
- The intermediate Greed and Fear shades sit between your extreme levels and the neutral midpoint, so a widened threshold produces a correspondingly wider transition band
- If you narrow your extremes, expect zone changes and background shading to occur more frequently — this is the indicator tracking your chosen sensitivity, not a change in the underlying reading
Refinements
- Swing detection now inspects the complete confirmation window, closing a gap where one bar adjacent to a candidate swing was previously overlooked — marginally stricter and more reliable pivots
- Comprehensive numerical safeguards added throughout the index calculation, so gapped sessions, illiquid symbols, zero-volume bars and unusual price data no longer produce distorted or blank readings
- Missing data is now handled explicitly rather than being absorbed silently, preventing invalid values from propagating into the composite score
- Every length setting across the Momentum, Volume, Volatility, Adaptive Engine and Divergence groups now carries defined minimum and maximum bounds, preventing configurations that could stall or break the script
- Smoothing and signal-line construction hardened against invalid period settings
- Dashboard now renders once on the most recent bar rather than on every historical bar, delivering a noticeably faster load and lighter chart footprint
- Internal calculation efficiency improvements across the index plot, dashboard bars and zone evaluation, reducing overall processing load without altering output
Summary
This release focuses squarely on signal integrity. Divergences are now confirmed, non-repainting and consistent between chart and alerts; the alert panel behaves as designed; and the entire zone framework respects your own threshold configuration. Combined with broad numerical hardening and a lighter dashboard, this is the most dependable version of Smart Fear & Greed Index Pro to date.
可在付費空間使用
此指標僅對MarkitTick訂閱用戶開放。加入訂閱即可訪問此腳本及MarkitTick的其他腳本。
💡 Proprietary indicators. Original research. Built by analysts who trade.
📢 Free Telegram: t.me/MarkitTick_Updates
👑 Premium: markittick.com
📢 Free Telegram: t.me/MarkitTick_Updates
👑 Premium: markittick.com
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
可在付費空間使用
此指標僅對MarkitTick訂閱用戶開放。加入訂閱即可訪問此腳本及MarkitTick的其他腳本。
💡 Proprietary indicators. Original research. Built by analysts who trade.
📢 Free Telegram: t.me/MarkitTick_Updates
👑 Premium: markittick.com
📢 Free Telegram: t.me/MarkitTick_Updates
👑 Premium: markittick.com
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。