Indicator · Pine Script v6 · On the chart

Ghost Alpha

by mphinance· code credited to mph1nance + Sam the Quant Ghost

A price-chart overlay that blends a Hull moving average band, an optional higher timeframe Hull, a TRAMA line, Keltner bands, 50 and 200 SMAs and an intraday VWAP.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code890
Settings40inputs
LicenceCustom licence
Last update2 days ago27 Oct 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

Ghost Alpha also covers swing structure detection with levels and supply and demand zones, a two-line Williams %R exhaustion gauge, squeeze detection and a dashboard. An auto-adapt option rescales lengths to the chart timeframe, and each length can be set manually. It is an analysis display with no order logic.

Details

Published by

mphinance on GitHub

Code credit

mph1nance + Sam the Quant Ghost, as written in the script's header

Draws

On the price chart

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Auto-adapt to timeframebooltrueauto_adapt
Sourcesourceclosehull_src
VariationstringHmahull_mode
Length (manual)int55hull_len_man
Show as Bandbooltruehull_show_band
Show HTF Hullboolfalsehtf_enable
Timeframetimeframe60htf_tf
Show HTF Bandbooltruehtf_show_band
Length (manual)int34trama_len_man
Sourcesourceclosetrama_src
Show TRAMA Linebooltruetrama_show
Show Keltner Bandsbooltruekc_enable
Show all 40 settings
SettingTypeDefaultVariable
EMA Length (manual)int21kc_len_man
ATR Length (manual)int14kc_atr_man
ATR Multiplierfloat2.0kc_mult
Show SMA 50booltruema_show_50
Show SMA 200booltruema_show_200
Show VWAP (intraday only)booltruema_show_vwap
Enable Structure Detectionbooltruebrk_enable
Swing Length (manual)int5brk_swing_man
Show Swing Levelsbooltruebrk_show_levels
Show S/D Zonesboolfalsebrk_show_zones
Zone Historyint5brk_zone_history
Fast %R (manual)int21exh_fast_man
Slow %R (manual)int112exh_slow_man
Thresholdint20exh_threshold
Fast Smoothint7exh_fast_smooth
Slow Smoothint3exh_slow_smooth
Show Trend Start Warningsboolfalseexh_show_warn
Enable Squeeze Detectionbooltruesqz_enable
ATR Lengthint14sqz_atr_len
Enable IV Percentilebooltrueiv_enable
HV Lengthint21iv_hv_len
Rank Lookbackint252iv_rank_len
Hull Candle Coloringbooltruesig_grad_candle
Show Fair Value Gapsbooltruefvg_enable
Max FVG Boxesint10fvg_history
Show Ghost Trail (ATR Stop)booltruetrail_enable
ATR Lengthint14trail_atr
ATR Multiplierfloat2.5trail_mult
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

43 stars

This indicator evaluates market momentum and risk by calculating trend metrics and volatility stats, displaying them in an on-chart table pane. It measures short-term and long-term trend strength via two MACD configurations built on three customizable EMA leng

Indicator v5 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Trend Strength & Volatility
7 stars

This indicator plots a zero-lag EMA center line with ATR bands on the price chart. It marks bullish or bearish mode after closes stay beyond a band for a set number of bars and the center line slopes that way. Confirmed buy and sell labels appear only after th

Indicator v6 TrendMoving averages Repaints
Updated 3 months ago · None stated GitHub repository of GK Trend Ribbon SWING + PREPARE HUD

Calculates market volatility, velocity, dynamic VIX thresholds, and multi-timeframe directional bias to assess risk regimes for Nifty index options trading. It computes a danger score based on ATR, VIX rate of change, Bollinger Band width, and price velocity t

Indicator v5 Volatility & bandsScreeners & dashboards
Updated 2 weeks ago · None stated GitHub repository of NIFTY SpreadGuard V2024 - Mega-Sidebar Sniper

Quick Stats

by etnt
2 stars

Quick Stats displays key trading metrics directly on the price chart overlay. It calculates Mark Minervini's Trend Template rules by scoring moving average alignments (50, 150, and 200 SMAs), 200 SMA slope, and 52-week high/low proximities. Additionally, it co

Indicator v5 TrendVolatility & bands
Updated 1 year ago · MPL-2.0 GitHub repository of Quick Stats

Calculates a Zero Lag Exponential Moving Average (ZLEMA) combined with Average True Range volatility bands to determine market trends. It plots the ZLEMA basis line, volatility bands, trend reversal labels, and entry signals directly on the price chart. Additi

Indicator v5 TrendMoving averages Repaints
Updated 5 weeks ago · None stated GitHub repository of Zero Lag Trend Signals (MTF) [AlgoAlpha]

More Trend scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers