OPEN-SOURCE SCRIPT

PhantomFlow V4.1 Gold Indicator

1 204
PhantomFlow V4.1 Gold Indicator is a structure-and-momentum trend tool built for XAUUSD and other fast intraday markets. It combines swing structure, EMA trend alignment, higher-timeframe bias, session filtering, and previous day/week liquidity levels to highlight cleaner continuation opportunities while reducing low-quality signals.
How it reads trend
The indicator uses confirmed swing highs and lows together with a fast and slow EMA. When structure and EMA direction agree, it marks bullish or bearish trend conditions. An optional higher-timeframe filter can be used to keep signals aligned with the broader market direction.
Candle colors
Lime = fresh bullish entry signal
Fuchsia = fresh bearish entry signal
Green = bullish trend / hold condition
Red = bearish trend / hold condition
Faded green = bullish trend weakening
Faded red = bearish trend weakening
Gray = neutral / no clear directional edge
Signal logic
Signals appear when price is in trend, pulls back toward value around the EMA zone, then shows momentum back in the trend direction. This is designed to help identify continuation entries rather than constantly calling reversals.
Previous Day / Previous Week levels
The indicator plots:
PDH = Previous Day High
PDL = Previous Day Low
PD50 = Previous Day Midpoint
PWH = Previous Week High
PWL = Previous Week Low
These levels act as liquidity and reaction zones. They can help identify likely targets, breakout points, and areas where price may hesitate or reject.
Level filter
An optional level-aware filter blocks new signals when price is too close to an important previous day or previous week level. This helps avoid entries with poor room to move.
Dashboard
The top-right dashboard shows:
current bias
current state
trend score
higher-timeframe direction
session status
previous day levels
previous week levels
available room to key levels
whether the level filter is on
Trend score
The score is a quick strength reading based on EMA spread, EMA slope, structure, break conditions, momentum, session alignment, and optional HTF agreement. Higher values mean stronger trend conditions.
Best use
This indicator is best used as a trend-bias and continuation-entry tool, especially on lower intraday timeframes such as 5m and 15m, with the 1H chart used as the higher-timeframe filter.
Here’s a shorter version for the TradingView description box if you want something tighter:
Short description:
PhantomFlow V4.1 Gold Indicator is a structure-based trend and continuation tool built for intraday trading. It combines swing structure, EMA alignment, HTF bias, session filtering, and previous day/week liquidity levels to highlight cleaner long and short opportunities. Candle colors show trend state and fresh entry triggers, while the dashboard displays bias, score, HTF direction, session status, and key PD/PW levels.

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.