OPEN-SOURCE SCRIPT
SMA+Volume Buy Alerts

Overview
This lightweight indicator combines trend and momentum filters to pinpoint high-conviction, oversold entries on ETFs or stocks. It plots your choice of two SMAs (default 100- & 200-day) and a 20-day volume moving average, then only flags a “BUY” when price crosses below an SMA and daily volume exceeds its average.
Use it to capture institutional-strength reversals without alert noise, and receive a single, clear signal exactly when market participants step in.
Key Features
Dual SMA Trend Lines (100/200-day by default)
Volume Filter (20-day avg): only overshoots on above-average volume signal
One-Shot Buy Markers: triangles appear beneath the precise bar that crosses under your SMA on high volume
Alert Conditions: “Buy 100 SMA + High Vol” and “Buy 200 SMA + High Vol” ready for desktop, mobile, or webhooks
Show/Hide Toggle for your SMA lines
100% Pine v6, optimized for speed and compatibility
Inputs
Short SMA Length (default 100)
Long SMA Length (default 200)
Volume MA Length (default 20)
Show SMA Lines toggle
How to Use
Add to Chart: Copy & paste this script into TradingView’s Pine editor, then Save & Add to Chart.
Configure Inputs: Adjust SMA and volume-MA lengths to your trading style.
Create Alerts:
Open “Create Alert,” select the “SMA-VOL-BUY” indicator.
Choose “Buy 100 SMA + High Vol” or “Buy 200 SMA + High Vol.”
Set trigger to “Once Per Bar Close.”
Trade with Confidence: Only the most significant, high-volume overshoots get flagged—no spam, just high-quality setups.
Best Practices
Frame Alignment: Combine daily signals with a weekly SMA trend filter for multi-timeframe confirmation.
Volume Context: Ensure that “high” volume truly represents above-average activity in your chosen security.
Risk Management: Use the signal bar’s low as your stop, and size positions to match your risk tolerance.
Review & Iterate: Tweak SMA or volume lengths to suit fast-moving sectors (e.g. 50/100 SMAs) or slower large-caps.
This lightweight indicator combines trend and momentum filters to pinpoint high-conviction, oversold entries on ETFs or stocks. It plots your choice of two SMAs (default 100- & 200-day) and a 20-day volume moving average, then only flags a “BUY” when price crosses below an SMA and daily volume exceeds its average.
Use it to capture institutional-strength reversals without alert noise, and receive a single, clear signal exactly when market participants step in.
Key Features
Dual SMA Trend Lines (100/200-day by default)
Volume Filter (20-day avg): only overshoots on above-average volume signal
One-Shot Buy Markers: triangles appear beneath the precise bar that crosses under your SMA on high volume
Alert Conditions: “Buy 100 SMA + High Vol” and “Buy 200 SMA + High Vol” ready for desktop, mobile, or webhooks
Show/Hide Toggle for your SMA lines
100% Pine v6, optimized for speed and compatibility
Inputs
Short SMA Length (default 100)
Long SMA Length (default 200)
Volume MA Length (default 20)
Show SMA Lines toggle
How to Use
Add to Chart: Copy & paste this script into TradingView’s Pine editor, then Save & Add to Chart.
Configure Inputs: Adjust SMA and volume-MA lengths to your trading style.
Create Alerts:
Open “Create Alert,” select the “SMA-VOL-BUY” indicator.
Choose “Buy 100 SMA + High Vol” or “Buy 200 SMA + High Vol.”
Set trigger to “Once Per Bar Close.”
Trade with Confidence: Only the most significant, high-volume overshoots get flagged—no spam, just high-quality setups.
Best Practices
Frame Alignment: Combine daily signals with a weekly SMA trend filter for multi-timeframe confirmation.
Volume Context: Ensure that “high” volume truly represents above-average activity in your chosen security.
Risk Management: Use the signal bar’s low as your stop, and size positions to match your risk tolerance.
Review & Iterate: Tweak SMA or volume lengths to suit fast-moving sectors (e.g. 50/100 SMAs) or slower large-caps.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。