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.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.