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.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.