OPEN-SOURCE SCRIPT
EMA Trend Buy Sell Setup

Code Summary
This script is a technical analysis indicator that combines Exponential Moving Averages (EMAs) and Relative Strength Index (RSI) to identify market trends, potential bottoms, and tops. Essentially a trend-following and reversal-detection tool, blending EMAs for structure and RSI for momentum.
EMAs plotted: 9, 13, 20, 50, 111, 200, and 350 (scaled×2 - pi index).
Trend detection: Background color changes depending on whether price is cheap or expensive based on the 200 EMA (long-term trend filter).
EMA Crossovers:
Bullish cross: EMA9 crossing above EMA20.
Golden cross: EMA50 crossing above EMA200 (strong uptrend).
Bearish cross: EMA9 crossing below EMA20.
Death cross: EMA50 crossing below EMA200 (strong downtrend).
Visual alerts: Labels appear on the chart when these crosses occur, and background highlights show RSI overbought/oversold conditions filtered by trend.
Object of the Script:
The main objective is to combine moving average trend analysis with RSI momentum signals to help traders identify: Long-term trend direction; Short-term entry/exit points; Potential reversal zones (tops and bottoms)
Ideas for Use
Trend confirmation: Use large timeframes with EMA200 and EMA350 as long-term filters to avoid trading against the dominant trend.
Momentum entries: Enter trades when RSI aligns with EMA crossovers (e.g., bullish cross + RSI oversold in uptrend).
Risk management: Avoid entries when RSI is overbought in a downtrend or oversold in an uptrend.
Multi-timeframe confluence: Check RSI signals across different timeframes to confirm strength of a move and to identify buying opportunities.
Indicatives of Trend, Bottom, and Top
Trend:
Price above long term EMA → Uptrend
Price below long term EMA → Downtrend
Bottom signals: green lighting in longer time frames
Top signals: red lighting in longer time frames
RSI > 70 (overbought) while price is below EMA200 → Possible bearish reversal zone.
Bearish cross (EMA9 < EMA20) or death cross (EMA50 < EMA200) after overbought RSI → Stronger top confirmation.
This script is a technical analysis indicator that combines Exponential Moving Averages (EMAs) and Relative Strength Index (RSI) to identify market trends, potential bottoms, and tops. Essentially a trend-following and reversal-detection tool, blending EMAs for structure and RSI for momentum.
EMAs plotted: 9, 13, 20, 50, 111, 200, and 350 (scaled×2 - pi index).
Trend detection: Background color changes depending on whether price is cheap or expensive based on the 200 EMA (long-term trend filter).
EMA Crossovers:
Bullish cross: EMA9 crossing above EMA20.
Golden cross: EMA50 crossing above EMA200 (strong uptrend).
Bearish cross: EMA9 crossing below EMA20.
Death cross: EMA50 crossing below EMA200 (strong downtrend).
Visual alerts: Labels appear on the chart when these crosses occur, and background highlights show RSI overbought/oversold conditions filtered by trend.
Object of the Script:
The main objective is to combine moving average trend analysis with RSI momentum signals to help traders identify: Long-term trend direction; Short-term entry/exit points; Potential reversal zones (tops and bottoms)
Ideas for Use
Trend confirmation: Use large timeframes with EMA200 and EMA350 as long-term filters to avoid trading against the dominant trend.
Momentum entries: Enter trades when RSI aligns with EMA crossovers (e.g., bullish cross + RSI oversold in uptrend).
Risk management: Avoid entries when RSI is overbought in a downtrend or oversold in an uptrend.
Multi-timeframe confluence: Check RSI signals across different timeframes to confirm strength of a move and to identify buying opportunities.
Indicatives of Trend, Bottom, and Top
Trend:
Price above long term EMA → Uptrend
Price below long term EMA → Downtrend
Bottom signals: green lighting in longer time frames
Top signals: red lighting in longer time frames
RSI > 70 (overbought) while price is below EMA200 → Possible bearish reversal zone.
Bearish cross (EMA9 < EMA20) or death cross (EMA50 < EMA200) after overbought RSI → Stronger top confirmation.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。