PROTECTED SOURCE SCRIPT

TTP IFVG Signals With EMA

8

### **Indicator Name: IFVG Signals (Inverse Fair Value Gap)**

#### **Overview**
This indicator is designed to detect **Inverse Fair Value Gap (IFVG)** setups. An IFVG occurs when a standard Fair Value Gap (FVG) fails to hold price and is broken through with momentum. This "inversion" suggests a strong reversal or continuation of a trend (e.g., a Support level flipping to become Resistance).

To ensure high-quality signals, the script filters these breakouts using a **Moving Average (MA)** to align with the overall trend.

#### **How it Works**
1. **Buy Signal (▲):**
* The script identifies a **Bearish FVG** (a resistance gap).
* Price breaks **above** this gap.
* **Trend Filter:** Price is above the Moving Average, and the MA is sloping upwards.
2. **Sell Signal (▼):**
* The script identifies a **Bullish FVG** (a support gap).
* Price breaks **below** this gap.
* **Trend Filter:** Price is below the Moving Average, and the MA is sloping downwards.

---

### **Parameters (Settings)**

Here is the detailed explanation of each setting in the inputs tab:

#### **1. Sensitivity & Size Settings**
* **Pip Size Multiplier:**
* *Default: 1.0*
* Adjusts the definition of a "tick" or "pip" size. Increase this value if you want to filter out micro-movements or if the asset has a very small tick size.
* **FVG Search Lookback (Bars):**
* *Default: 15*
* How many bars back the script looks to find a valid Fair Value Gap. A higher number finds older gaps; a lower number focuses on immediate price action.
* **Min FVG Size (Pips/Points):**
* *Default: 0.0*
* The minimum height required for a gap to be considered valid. Useful for filtering out very thin/insignificant gaps. Set to `0.0` to disable.
* **FVG Epsilon (Price Units):**
* *Default: 0.0*
* A buffer allowance for gap detection. Allows for slight imperfections in the gap structure.

#### **2. Visual Settings**
* **Show IFVG Zones:**
* *Default: Enabled (Checked)*
* Draws a colored box highlighting the gap area that was broken.
* **ZoneColorBuy:** Color for Buy zones (Support).
* **ZoneColorSell:** Color for Sell zones (Resistance).
* **Box Extension (Bars):**
* *Default: 1*
* Controls how far to the right the colored box extends visually.

#### **3. Trend Filter (Moving Average)**
* **MA Period:**
* *Default: 21*
* The length of the Moving Average used to determine the trend direction.
* **MA Type:**
* *Options: SMA (Simple), EMA (Exponential)*
* Selects the calculation method for the trend filter. EMA is generally more responsive to recent price changes.

---

### **Alerts**
The indicator comes with pre-configured alert conditions:
* **IFVG Buy Alert:** Triggers when a valid Buy Signal (▲) appears.
* **IFVG Sell Alert:** Triggers when a valid Sell Signal (▼) appears.
* **IFVG Buy/Sell Alert:** Triggers on any valid signal.

Penafian

Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.