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.
1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
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.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Auto-adapt to timeframe
bool
true
auto_adapt
Source
source
close
hull_src
Variation
string
Hma
hull_mode
Length (manual)
int
55
hull_len_man
Show as Band
bool
true
hull_show_band
Show HTF Hull
bool
false
htf_enable
Timeframe
timeframe
60
htf_tf
Show HTF Band
bool
true
htf_show_band
Length (manual)
int
34
trama_len_man
Source
source
close
trama_src
Show TRAMA Line
bool
true
trama_show
Show Keltner Bands
bool
true
kc_enable
Show all 40 settings
Setting
Type
Default
Variable
EMA Length (manual)
int
21
kc_len_man
ATR Length (manual)
int
14
kc_atr_man
ATR Multiplier
float
2.0
kc_mult
Show SMA 50
bool
true
ma_show_50
Show SMA 200
bool
true
ma_show_200
Show VWAP (intraday only)
bool
true
ma_show_vwap
Enable Structure Detection
bool
true
brk_enable
Swing Length (manual)
int
5
brk_swing_man
Show Swing Levels
bool
true
brk_show_levels
Show S/D Zones
bool
false
brk_show_zones
Zone History
int
5
brk_zone_history
Fast %R (manual)
int
21
exh_fast_man
Slow %R (manual)
int
112
exh_slow_man
Threshold
int
20
exh_threshold
Fast Smooth
int
7
exh_fast_smooth
Slow Smooth
int
3
exh_slow_smooth
Show Trend Start Warnings
bool
false
exh_show_warn
Enable Squeeze Detection
bool
true
sqz_enable
ATR Length
int
14
sqz_atr_len
Enable IV Percentile
bool
true
iv_enable
HV Length
int
21
iv_hv_len
Rank Lookback
int
252
iv_rank_len
Hull Candle Coloring
bool
true
sig_grad_candle
Show Fair Value Gaps
bool
true
fvg_enable
Max FVG Boxes
int
10
fvg_history
Show Ghost Trail (ATR Stop)
bool
true
trail_enable
ATR Length
int
14
trail_atr
ATR Multiplier
float
2.5
trail_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.
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
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
This indicator tracks crypto trend reversals by combining the Williams Alligator with an ATR stop level and a higher-timeframe market filter. Long signals trigger when the Lips line crosses above the Jaw line while Bitcoin trades above its daily 200-period sim
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
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
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