OPEN-SOURCE SCRIPT

Dual Timeframe Stochastic Momentum Index w/buy sell signals

Cập nhật
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.
Phát hành các Ghi chú
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.
Phát hành các Ghi chú
Corrected the SMI crossover alert conditions so alerts only trigger when higher timeframe conditions are met
Phát hành các Ghi chú
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).
Phát hành các Ghi chú
fixed background shading
multitimeframeStochastic Oscillator

Mã nguồn mở

Theo tinh thần TradingView thực sự, tác giả của tập lệnh này đã xuất bản dưới dạng nguồn mở để các nhà giao dịch có thể hiểu và xác minh. Chúc mừng tác giả! Bạn có thể sử dụng miễn phí. Tuy nhiên, bạn cần sử dụng lại mã này theo Quy tắc nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?

Thông báo miễn trừ trách nhiệm