OPEN-SOURCE SCRIPT
Phantom Trend Indicator

Overview
The Phantom Trend Indicator (PTI) is a streamlined tool for identifying trend direction and strength. It blends zigzag-based trend detection with a volume profile to display a histogram showing price distance from the Point of Control (POC). Six distinct colors highlight trend states, with background highlights for extreme price zones. Ideal for stocks, forex, crypto, and futures across any timeframe.
Features:
Trend Detection: Uses zigzag fractals to identify uptrends and downtrends.
Histogram Colors: Six colors for trend strength (low, high, extreme for up/down trends) or neutral (gray).
Dynamic Levels: Plots POC, Value Area Low (VAL), and High (VAH) via volume profile.
Background Colors: Highlights overbought (above VAH) or oversold (below VAL) zones.
Alerts: Signals new trends.
How It Works:
Trends: Zigzag fractals define trend ranges, with price position setting histogram colors (low, high, or extreme).
Histogram: Shows price deviation from POC.
Background: Colors extreme zones outside VAL/VAH.
This indicator builds on traditional trend detectors and volume profiles by integrating them into a single, cohesive tool. Unlike standard momentum indicators that rely on moving averages, PTI uses zigzag fractals for more responsive trend identification, reducing lag in volatile markets. Compared to basic volume profile scripts, it adds trend-based color coding and background alerts for extremes, providing clearer visual cues for overbought/oversold conditions. The six distinct colors indicate trend strength, and customizable thresholds allow fine-tuning for different assets and timeframes, enhancing adaptability. Traders benefit from combined momentum and liquidity insights, helping spot reversals or continuations more reliably—making PTI a valuable, standalone addition for both novice and experienced users.
Settings
Trend Detector: Toggle alerts, adjust zigzag sensitivity, and set thresholds for low-to-high and extreme color transitions.
Dynamic Levels: Configure volume profile period, multiplier, accuracy, value area percent, and ATR-based channel width.
Visuals: Customize POC, VAL, VAH, and area fill colors.
Read Histogram: Uptrend colors show early, strong, or overextended moves; downtrend colors indicate early, weakening, or oversold conditions; gray for consolidation.
Background: Monitor for overbought/oversold color-coded signals.
Tune: Adjust zigzag or period settings for your timeframe/asset.
Tips
Shorten period for intraday, extend for swing trading.
Pair with other indicators for confirmation.
Notes:
Requires sufficient chart data for volume profile.
Test settings for low-volatility assets.
For informational use only, not financial advice. Test thoroughly, and happy trading!
The Phantom Trend Indicator (PTI) is a streamlined tool for identifying trend direction and strength. It blends zigzag-based trend detection with a volume profile to display a histogram showing price distance from the Point of Control (POC). Six distinct colors highlight trend states, with background highlights for extreme price zones. Ideal for stocks, forex, crypto, and futures across any timeframe.
Features:
Trend Detection: Uses zigzag fractals to identify uptrends and downtrends.
Histogram Colors: Six colors for trend strength (low, high, extreme for up/down trends) or neutral (gray).
Dynamic Levels: Plots POC, Value Area Low (VAL), and High (VAH) via volume profile.
Background Colors: Highlights overbought (above VAH) or oversold (below VAL) zones.
Alerts: Signals new trends.
How It Works:
Trends: Zigzag fractals define trend ranges, with price position setting histogram colors (low, high, or extreme).
Histogram: Shows price deviation from POC.
Background: Colors extreme zones outside VAL/VAH.
This indicator builds on traditional trend detectors and volume profiles by integrating them into a single, cohesive tool. Unlike standard momentum indicators that rely on moving averages, PTI uses zigzag fractals for more responsive trend identification, reducing lag in volatile markets. Compared to basic volume profile scripts, it adds trend-based color coding and background alerts for extremes, providing clearer visual cues for overbought/oversold conditions. The six distinct colors indicate trend strength, and customizable thresholds allow fine-tuning for different assets and timeframes, enhancing adaptability. Traders benefit from combined momentum and liquidity insights, helping spot reversals or continuations more reliably—making PTI a valuable, standalone addition for both novice and experienced users.
Settings
Trend Detector: Toggle alerts, adjust zigzag sensitivity, and set thresholds for low-to-high and extreme color transitions.
Dynamic Levels: Configure volume profile period, multiplier, accuracy, value area percent, and ATR-based channel width.
Visuals: Customize POC, VAL, VAH, and area fill colors.
Read Histogram: Uptrend colors show early, strong, or overextended moves; downtrend colors indicate early, weakening, or oversold conditions; gray for consolidation.
Background: Monitor for overbought/oversold color-coded signals.
Tune: Adjust zigzag or period settings for your timeframe/asset.
Tips
Shorten period for intraday, extend for swing trading.
Pair with other indicators for confirmation.
Notes:
Requires sufficient chart data for volume profile.
Test settings for low-volatility assets.
For informational use only, not financial advice. Test thoroughly, and happy trading!
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.