PROTECTED SOURCE SCRIPT
TTP IFVG Signals With EMA

### **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.
보호된 스크립트입니다
이 스크립트는 비공개 소스로 게시됩니다. 하지만 이를 자유롭게 제한 없이 사용할 수 있습니다 – 자세한 내용은 여기에서 확인하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
보호된 스크립트입니다
이 스크립트는 비공개 소스로 게시됩니다. 하지만 이를 자유롭게 제한 없이 사용할 수 있습니다 – 자세한 내용은 여기에서 확인하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.