OPEN-SOURCE SCRIPT
Bbhafiz ALERT SIGNAL

📌 Indicator Overview
Uses EMA20 & EMA50 to detect trend direction and identify crossover/crossunder points.
RSI filter (default ON) to improve accuracy — BUY only when RSI > 50, SELL only when RSI < 50.
Displays a BUY label below the candle and a SELL label above the candle when signals appear.
AlertCondition added so TradingView can send push notifications, pop-ups, or emails when a signal appears.
⚡ Main Logic:
BUY → EMA20 crosses above EMA50 + RSI > 50 (if filter is ON) + price above EMA20.
SELL → EMA20 crosses below EMA50 + RSI < 50 (if filter is ON) + price below EMA20.
🎯 Advantages of This Version:
No need to stare at the chart — alerts will notify you when a valid setup appears.
Can be used for scalping (M1, M5) or swing trading (H1, H4).
Perfect for busy traders since alerts only trigger on confirmed setups.
Uses EMA20 & EMA50 to detect trend direction and identify crossover/crossunder points.
RSI filter (default ON) to improve accuracy — BUY only when RSI > 50, SELL only when RSI < 50.
Displays a BUY label below the candle and a SELL label above the candle when signals appear.
AlertCondition added so TradingView can send push notifications, pop-ups, or emails when a signal appears.
⚡ Main Logic:
BUY → EMA20 crosses above EMA50 + RSI > 50 (if filter is ON) + price above EMA20.
SELL → EMA20 crosses below EMA50 + RSI < 50 (if filter is ON) + price below EMA20.
🎯 Advantages of This Version:
No need to stare at the chart — alerts will notify you when a valid setup appears.
Can be used for scalping (M1, M5) or swing trading (H1, H4).
Perfect for busy traders since alerts only trigger on confirmed setups.
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.