PROTECTED SOURCE SCRIPT

200 EMA Rebound Signals | Partnior Programista

32
🚀 200 EMA Rebound Signals | TradingView Indicator Description
1. 💡 Overview
The 200 EMA Rebound Signals is a trend-following indicator designed to identify high-probability reversal signals (rebound) from the 200-period Exponential Moving Average (EMA), which is widely recognized as a major dynamic support and resistance level defining the long-term market trend.
This tool provides a clear, actionable signal when price temporarily pulls back to the 200 EMA and then continues in the direction of the prevailing trend (the context).
2. 🎯 Core Logic (Context & Trend)
The indicator first establishes the market context (long-term trend) using the 200 EMA:
* Bullish Context (LONG): The current closing price is above the 200 EMA.
* Bearish Context (SHORT): The current closing price is below the 200 EMA.
A trade signal is only generated when a rebound pattern occurs in the direction of the established context.
3. 🧩 Three Entry Logic Options
The indicator offers three distinct methods for confirming the rebound, selectable via the Entry Signal Logic input:
Option 1: Confirmation (A/D) - (Default)
This logic requires a two-candle sequence for confirmation:
* LONG Signal: The previous candle's close was above the EMA, and its low touched the EMA. The current candle then closes above the high of the previous candle, confirming the upward bounce.
* SHORT Signal: The previous candle's close was below the EMA, and its high touched the EMA. The current candle then closes below the low of the previous candle, confirming the downward bounce.
Option 2: Pin Bar / Rejection (B/E)
This logic uses the powerful Pin Bar candlestick pattern to signal a strong rejection of the 200 EMA level.
* LONG Signal: A Pin Bar forms (long lower shadow) in a Bullish Context, and the candle's low touches the EMA. The lower shadow must be greater than the candle body by the specified Min. Shadow Ratio.
* SHORT Signal: A Pin Bar forms (long upper shadow) in a Bearish Context, and the candle's high touches the EMA. The upper shadow must be greater than the candle body by the specified Min. Shadow Ratio.
Option 3: Simple Touch & Close (C/F)
This is the simplest logic, requiring only a single candle to signal the rebound:
* LONG Signal: In a Bullish Context, the candle's low touches or penetrates the EMA, but the candle closes above the EMA.
* SHORT Signal: In a Bearish Context, the candle's high touches or penetrates the EMA, but the candle closes below the EMA.
4. ⚙️ Key Inputs (Inputs)
| Parameter (Russian) | Parameter (English) | Default Value | Description |
|---|---|---|---|
| Период EMA (N) | EMA Period (N) | 200 | Sets the lookback period for the Exponential Moving Average. (Default: 200) |
| Источник Цены | Price Source | close | The price data used for the EMA calculation (e.g., Close, Open, High, Low). |
| Логика Сигнала Отскока | Entry Signal Logic | 1. Confirmation (A/D) | Selects one of the three rebound confirmation methods explained above. |
| Мин. Коэф. Тени (Пин-Бар) | Min. Shadow Ratio (Pin Bar) | 2.0 | Used only for Option 2. Specifies how many times the pin bar's shadow must be larger than its body to qualify as a signal. (e.g., 2.0 means shadow >= 2 * body size). |
5. 🛠️ How to Use
* Define Your Trend: The indicator automatically shows the long-term trend (Bullish/Bearish Context).
* Select Logic: Choose the entry logic that best suits your trading style (Confirmation, Pin Bar, or Simple Touch).
* Wait for the Rebound: Wait for the price to pull back to the 200 EMA.
* Enter Trade: A Green Triangle below the bar signals a potential LONG entry. A Red Triangle above the bar signals a potential SHORT entry.
Would you like me to translate any other sections of your code's comments or description?

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.