OPEN-SOURCE SCRIPT
VXN Stochastic Momentum Index with double EMA smoothing

This indicator is based on other open source scripts. It's designed for trading Nasdaq futures (NQ and MNQ). It uses the Stochastic Momentum Index (SMI) with double EMA smoothing to measure price momentum relative to the high-low range, combined with the VXN index (CBOE Nasdaq Volatility Index) to filter signals via background color.
SMI: Measures the distance of the price from the midpoint of the high-low range, double-smoothed with EMAs, and scaled to oscillate between -100 and +100. Overbought (+40) and oversold (-40) levels, with extreme max/min levels (+75/-75), help identify potential reversals.
Signals: Bullish signals occur on SMI crossing above the signal line, breaking above the oversold level (-40), or crossing above zero, especially when the VXN background is green (VXN 1-period EMA < 200-period SMA). Bearish signals occur on SMI crossing below the signal line, breaking below the overbought level (+40), or crossing below zero, when the background is red (VXN EMA > SMA).
VXN Filter: When enabled, the background is green (bullish) when VXN EMA < SMA, and red (bearish) when EMA > SMA. Alternatively, zero-line crossovers can set the background (green for SMI > 0, red for SMI < 0).
Usage: Apply this indicator to a Nasdaq futures chart in TradingView’s indicator pane (not overlayed). Use SMI crossovers, overbought/oversold breakouts, or zero-line crossovers for trade signals, confirmed by VXN background (green for long, red for short). Adjust parameters for sensitivity.
Note: Ensure VXN data is available in TradingView to avoid fallback to chart’s close price, which may skew sentiment. Use the debug option to verify VXN data.
SMI: Measures the distance of the price from the midpoint of the high-low range, double-smoothed with EMAs, and scaled to oscillate between -100 and +100. Overbought (+40) and oversold (-40) levels, with extreme max/min levels (+75/-75), help identify potential reversals.
Signals: Bullish signals occur on SMI crossing above the signal line, breaking above the oversold level (-40), or crossing above zero, especially when the VXN background is green (VXN 1-period EMA < 200-period SMA). Bearish signals occur on SMI crossing below the signal line, breaking below the overbought level (+40), or crossing below zero, when the background is red (VXN EMA > SMA).
VXN Filter: When enabled, the background is green (bullish) when VXN EMA < SMA, and red (bearish) when EMA > SMA. Alternatively, zero-line crossovers can set the background (green for SMI > 0, red for SMI < 0).
Usage: Apply this indicator to a Nasdaq futures chart in TradingView’s indicator pane (not overlayed). Use SMI crossovers, overbought/oversold breakouts, or zero-line crossovers for trade signals, confirmed by VXN background (green for long, red for short). Adjust parameters for sensitivity.
Note: Ensure VXN data is available in TradingView to avoid fallback to chart’s close price, which may skew sentiment. Use the debug option to verify VXN data.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。