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.
保護スクリプト
このスクリプトのソースコードは非公開で投稿されています。 ただし、制限なく自由に使用できます – 詳細はこちらでご確認ください。
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。
保護スクリプト
このスクリプトのソースコードは非公開で投稿されています。 ただし、制限なく自由に使用できます – 詳細はこちらでご確認ください。
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。