### **MACD + RSI Buy/Sell Signals Indicator for TradingView**
This TradingView indicator helps traders identify **buy and sell opportunities** using a combination of **MACD (Moving Average Convergence Divergence) and RSI (Relative Strength Index)**.
---
### **Indicator Components** 1. **MACD (Moving Average Convergence Divergence)** - Uses **12-period EMA (fast)** and **26-period EMA (slow)** to calculate the MACD line. - A **9-period EMA** of the MACD line is used as the **signal line**. - A **bullish crossover** (MACD line crossing above the signal line) suggests a buy signal. - A **bearish crossover** (MACD line crossing below the signal line) suggests a sell signal.
2. **RSI (Relative Strength Index)** - Uses a **14-period RSI** to measure momentum. - An RSI value above **30** confirms a **buy signal** when the MACD crossover happens. - An RSI value below **70** confirms a **sell signal** when the MACD crossunder happens.
---
### **Buy & Sell Signals** - **Buy Signal:** - When the **MACD line crosses above the signal line**, and RSI is above **30** (indicating upward momentum). - Plotted as a **green label** below the price bars.
- **Sell Signal:** - When the **MACD line crosses below the signal line**, and RSI is below **70** (indicating downward momentum). - Plotted as a **red label** above the price bars.
---
### **Usage Guidelines** - Best suited for **intraday and swing trading** on **higher timeframes** like **15 minutes, 1 hour, or daily charts**. - Works well in **trending markets** but may generate false signals in **sideways markets**. - Can be combined with **support/resistance levels** for higher accuracy.
---
This indicator provides **clear visual signals** on the chart to help traders **easily identify potential entry and exit points**.
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publications is governed by House rules. You can favorite it to use it on a chart.
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.