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.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.