OPEN-SOURCE SCRIPT
已更新 EMA6 or SMA6 Touch Alert

This script monitors the market and notifies you whenever the price touches either the 6-period EMA or the 6-period SMA.
It helps identify potential pullbacks, reaction points, or entry zones, as price interaction with these moving averages often signals short-term market shifts.
What the script does:
Calculates the EMA 6 and SMA 6
Detects if price touches either moving average within the candle
Plots both lines on the chart for visibility
Allows you to set alerts to receive automatic notifications
Best suited for:
Scalping
Day Trading
Pullback Entries
Short-term trend reactions
It helps identify potential pullbacks, reaction points, or entry zones, as price interaction with these moving averages often signals short-term market shifts.
What the script does:
Calculates the EMA 6 and SMA 6
Detects if price touches either moving average within the candle
Plots both lines on the chart for visibility
Allows you to set alerts to receive automatic notifications
Best suited for:
Scalping
Day Trading
Pullback Entries
Short-term trend reactions
發行說明
This Pine Script for TradingView is designed to help traders catch important short-term market touches on moving averages. It monitors both EMA (Exponential Moving Average) and SMA (Simple Moving Average) with fully customizable periods.Whether you are scalping, day trading, or monitoring pullbacks, this script notifies you when the price touches your selected EMA or SMA, giving you a timely opportunity to analyze or enter trades.
Key Features:
Customizable EMA & SMA lengths – adjust the periods to your trading strategy.
Alerts once per candle – avoids multiple alerts from the same price action.
Live or Close alert option – trigger alerts immediately when price touches, or wait until the candle closes for confirmation.
Pause alerts toggle – easily enable or disable alerts without removing the script.
Visual plots – EMA (red) and SMA (blue) displayed on the chart for quick reference.
This script is ideal for traders who want precise alerts on short-term movements while maintaining flexibility and control over notifications.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。