Features of the Script 1. EMA Crossover Logic: • Buy when 9 EMA crosses above 21 EMA and price is above 50 EMA. • Sell when 9 EMA crosses below 21 EMA and price is below 50 EMA. 2. RSI Confirmation: • Buy signals only trigger if RSI > 50. • Sell signals only trigger if RSI < 50. 3. MACD Confirmation: • Buy signals are confirmed when the MACD line > Signal line. • Sell signals are confirmed when the MACD line < Signal line. 4. Buy/Sell Markers: • Green “BUY” label appears below candles for buy signals. • Red “SELL” label appears above candles for sell signals. 5. Background Color: • Green for buy conditions. • Red for sell conditions.
How to Use the Script 1. Copy the script above. 2. Open TradingView and go to Pine Editor (at the bottom panel). 3. Paste the script into the editor. 4. Click Add to Chart. 5. Customize the inputs (EMA periods, RSI levels) as needed.