OPEN-SOURCE SCRIPT

Bbhafiz ALERT SIGNAL

128
📌 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.

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.