PROTECTED SOURCE SCRIPT
Atualizado

EMA 20/50 + RSI Trend Strategy [Clean & Simple]

13
### **Title: EMA 20/50 + RSI Trend Strategy [Clean & Simple]**

**Description:**

This is a pure trend-following strategy designed for Crypto intraday trading. It combines **EMA Crossovers** (for trend direction) with **RSI** (for momentum confirmation) to filter out choppy markets and false signals.

**1. Core Logic**
The strategy only signals an entry when both the Trend and Momentum are aligned:

* **Trend Filter:** Uses EMA 20 and EMA 50.
* **Momentum Filter:** Uses RSI (Length 14) with a baseline of 50.

**2. Signal Conditions**

* **🟢 LONG Signal:**
* Price Trend: EMA 20 is **ABOVE** EMA 50.
* Momentum: RSI is **ABOVE** 50.


* **🔴 SHORT Signal:**
* Price Trend: EMA 20 is **BELOW** EMA 50.
* Momentum: RSI is **BELOW** 50.



**3. Visual Features**

* **Bar Coloring:**
* **Green Bars:** Strong Bullish Trend (Long conditions met).
* **Red Bars:** Strong Bearish Trend (Short conditions met).
* **Gray Bars:** Neutral/Choppy Market (Stay aside).


* **Labels:** "LONG" and "SHORT" labels appear on the chart when the market state changes.

**4. Recommended Usage**

* **Timeframe:** Works best on **15m** (Scalping) or **1H** (Day Trading).
* **Assets:** High volatility pairs like BTCUSDT, ETHUSDT, SOLUSDT.
* **Strategy Tip:** Do not enter blindly on every signal. Wait for a pullback to the EMA 20/50 lines while the bar color remains Green/Red for the highest win rate.

**5. Alerts**

* This script supports TradingView alerts. You can set up alerts for "LONG Signal" and "SHORT Signal" in the alert menu.
Notas de Lançamento
Update: Cleaner Signals (No Repainting)

Changes in this version:

Strict Alternating Signals:** I have implemented a logic filter to remove repetitive signals.
No More Spam:** The script will now **only** trigger a `LONG` signal if the previous signal was `SHORT` (and vice versa).
Result:** A much cleaner chart that only highlights actual trend reversals.

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.