OPEN-SOURCE SCRIPT

Dual Timeframe Stochastic Momentum Index w/buy sell signals

已更新
This indicator combines momentum analysis across two timeframes to identify high-probability trading opportunities. It plots the Stochastic Momentum Index (SMI) for both the chart timeframe and a higher timeframe (default 10 minutes) to help traders align with the broader market trend.
Key Features

Displays SMI and its EMA for both timeframes
Background shading indicates favorable trading conditions
Signal dots mark potential entry points
Customizable parameters for fine-tuning

Signals Explained
Bullish Signals (Green Dots)

Appear when the chart timeframe SMI crosses above its EMA
Only trigger during periods when the higher timeframe shows:

SMI is above its EMA (increasing momentum)
SMI is between -40 and +40 (not overbought/oversold)



Bearish Signals (Red Dots)

Appear when the chart timeframe SMI crosses below its EMA
Only trigger during periods when the higher timeframe shows:

SMI is below its EMA (decreasing momentum)
SMI is between -40 and +40 (not overbought/oversold)



Settings

%K Length: Lookback period for SMI calculation (default: 10)
%D Length: Smoothing period for primary calculation (default: 3)
EMA Length: Smoothing period for signal line (default: 3)
Alternative Timeframe: Higher timeframe for trend analysis (default: 10 minutes)

Best Practices

Use higher timeframe signals to determine market bias
Wait for signal dots in the chart timeframe for entry timing
Avoid trades when higher timeframe SMI is in extreme zones (above 40 or below -40)
Consider additional confirmation from price action or other indicators

Note: This indicator combines trend and momentum analysis but should be used as part of a complete trading strategy that includes proper risk management.
版本注释
Updated script to include alert conditions for the following:

Alert for Bullish Neutral Zone: Triggers when the higher timeframe SMI is above its EMA and within the neutral zone (-40 to +40).
Alert for Bearish Neutral Zone: Triggers when the higher timeframe SMI is below its EMA and within the neutral zone (-40 to +40).
Alerts for Crossovers: Triggers when the SMI crosses above or below its EMA.
版本注释
Corrected the SMI crossover alert conditions so alerts only trigger when higher timeframe conditions are met
版本注释
Bullish Crossover Alert: Triggered when:

The current SMI crosses above its EMA.
The higher timeframe shows SMI is above its EMA and in the neutral zone (-40 to +40).
Bearish Crossover Alert: Triggered when:

The current SMI crosses below its EMA.
The higher timeframe shows SMI is below its EMA and in the neutral zone (-40 to +40).
版本注释
fixed background shading
multitimeframeStochastic Oscillator

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明