OPEN-SOURCE SCRIPT
YB Academy SNR

The YB Academy SNR indicator is a complete swing-based Support & Resistance mapping tool with powerful built-in entry/exit signals. Designed for traders who want to identify high-probability reaction zones and get real-time alerts for the best buy and sell opportunities, this script helps you trade with structure, confidence, and discipline—on any time frame.
How It Works
1. Automatic Support & Resistance Detection
The indicator automatically scans for major swing highs and swing lows on your chart using a sensitivity parameter.
Every time a new swing high/low forms, a horizontal SNR line is drawn at that price level.
Both support and resistance lines automatically extend to the right of your chart, providing a persistent map of key levels for future entries and exits.
You can control how many recent zones are shown (max_snrs), keeping your chart clean and focused.
2. Smart Buy/Sell Signal Generation
Buy signals (“YB Buy”): Trigger when price touches or bounces off a support line, with trend/momentum/freshness filters:
Price is above the EMA50 (trend filter)
MACD is bullish (momentum)
RSI confirms no overbought
Sell signals (“YB Sell”): Trigger when price hits resistance, with strict confirmation:
Price is below EMA50
MACD is bearish
RSI not oversold
Both signals are shown as clear up/down triangle arrows directly on your chart.
3. Powerful Alerts
Never miss a trade: Real-time alerts fire as soon as a valid buy or sell condition appears.
Use with TradingView app, web, or SMS for 24/7 notification—no chart-watching needed.
4. Fully Customizable
Change sensitivity for tighter/looser SNR mapping.
Control the look and feel: colors for SNR, signals, number of zones, extension distance.
Works on any market: gold, forex, indices, crypto, stocks.
5. Clean Visuals, Zero Clutter
SNR lines are automatically managed—older zones are removed as new ones appear.
Only the latest/best buy/sell signals are shown, so you can act quickly and decisively.
Perfect For:
Scalpers, Day Traders, Swing Traders
Anyone who wants to trade using clean price action levels, NOT lagging indicators
Traders looking for rule-based, mechanical entries and exits
What Makes This Unique?
Precision: Uses swing structure, not arbitrary pivots or moving averages, for SNR.
Multi-Filter Entries: Combines trend, momentum, and overbought/oversold logic for high-probability signals.
Alerts & Automation: Built-in, with no need for manual chart watching.
Simple to Use: Add to any TradingView chart, adjust settings, and go.
Upgrade your trading with the YB Academy SNR!
Get alerted to the real opportunities—right at the key price zones, with all the discipline of a professional.
How It Works
1. Automatic Support & Resistance Detection
The indicator automatically scans for major swing highs and swing lows on your chart using a sensitivity parameter.
Every time a new swing high/low forms, a horizontal SNR line is drawn at that price level.
Both support and resistance lines automatically extend to the right of your chart, providing a persistent map of key levels for future entries and exits.
You can control how many recent zones are shown (max_snrs), keeping your chart clean and focused.
2. Smart Buy/Sell Signal Generation
Buy signals (“YB Buy”): Trigger when price touches or bounces off a support line, with trend/momentum/freshness filters:
Price is above the EMA50 (trend filter)
MACD is bullish (momentum)
RSI confirms no overbought
Sell signals (“YB Sell”): Trigger when price hits resistance, with strict confirmation:
Price is below EMA50
MACD is bearish
RSI not oversold
Both signals are shown as clear up/down triangle arrows directly on your chart.
3. Powerful Alerts
Never miss a trade: Real-time alerts fire as soon as a valid buy or sell condition appears.
Use with TradingView app, web, or SMS for 24/7 notification—no chart-watching needed.
4. Fully Customizable
Change sensitivity for tighter/looser SNR mapping.
Control the look and feel: colors for SNR, signals, number of zones, extension distance.
Works on any market: gold, forex, indices, crypto, stocks.
5. Clean Visuals, Zero Clutter
SNR lines are automatically managed—older zones are removed as new ones appear.
Only the latest/best buy/sell signals are shown, so you can act quickly and decisively.
Perfect For:
Scalpers, Day Traders, Swing Traders
Anyone who wants to trade using clean price action levels, NOT lagging indicators
Traders looking for rule-based, mechanical entries and exits
What Makes This Unique?
Precision: Uses swing structure, not arbitrary pivots or moving averages, for SNR.
Multi-Filter Entries: Combines trend, momentum, and overbought/oversold logic for high-probability signals.
Alerts & Automation: Built-in, with no need for manual chart watching.
Simple to Use: Add to any TradingView chart, adjust settings, and go.
Upgrade your trading with the YB Academy SNR!
Get alerted to the real opportunities—right at the key price zones, with all the discipline of a professional.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。