Indicator · Pine Script v6 · On the chart

Ghost Flow

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

A price-chart overlay that grades a setup from several axes: a Hull trend band with an optional EMA ribbon, Chaikin money flow strength, an ATR-based compression and expansion measure, trend age in bars, and a Williams %R exhaustion gauge.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code466
Settings37inputs
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 Flow adds a Bounce 2.0 pullback trigger with ADX, stochastic and distance-from-EMA limits, an optional higher timeframe grade confirmation, and a realized volatility percentile lens. Confluence zones can be shaded. It does not place orders.

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
Sourcesourceclosehull_src
Hull Lengthint55hull_len
Show Hull Bandbooltrueshow_hull
Show EMA Ribbon (8/21/34/55/89)booltrueshow_ema
CMF Lengthint20cmf_len
Strong-Flow Thresholdfloat0.10cmf_strong
ATR Lengthint14atr_len
Compression Baselineint50sqz_base
Coil Thresholdfloat0.75sqz_coil
Expansion Ceilingfloat1.50sqz_top
Fresh-Trend Min (bars)int5mat_min
Fresh-Trend Max (bars)int30mat_max
Show all 37 settings
SettingTypeDefaultVariable
Aging Cutoff (bars)int50mat_late
Fast %R Lengthint21exh_fast
Slow %R Lengthint112exh_slow
Fast Smoothingint7exh_fsm
Slow Smoothingint3exh_ssm
OB/OS Thresholdint20exh_thr
Shade Confluence Zonesbooltrueshow_zones
Enable Bounce 2.0booltrueb2_enable
Min ADXfloat25.0b2_adx
Max Stoch %K (pullback zone)float40.0b2_stoch
Min % from EMA21float-3.0b2_lo
Max % from EMA21float5.0b2_hi
Confirm on Higher Timeframebooltruehtf_enable
Confirmation TimeframetimeframeWhtf_tf
Min HTF Grade to Confirmfloat4.0htf_min
Enable Vol-Premium Lensbooltruevol_enable
RV Windowint20rv_len
Percentile Lookbackint252rv_rank
Show Stop / Target on Signalsbooltruerisk_show
ATR Stop Multiplefloat2.0risk_mult
Reward : Risk Targetfloat2.0risk_rr
Risk $ per Trade (for sizing)float100.0acct_risk
Show Dashboardbooltruedash_on
PositionstringTop Rightdash_pos
Text SizestringSmalldash_sz
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

Stats Table

by degenview
3 stars

Displays a statistical summary table pinned to the top right of the price chart. It calculates key metrics including ATR percentage relative to price, high-low range percentage over a configurable bar count, relative volume compared to its simple moving averag

Indicator v6 Screeners & dashboardsTrend
Updated yesterday · GPL-3.0 GitHub repository of Stats Table
1 stars

This overlay indicator is a companion dashboard for Bursa Malaysia stocks. It builds a table that shows Minervini trend-template conditions, VCP squeeze tightness, volume surge and contraction, price and average-volume liquidity filters, and an MCDX banker or

Indicator v6 TrendVolatility & bands
Updated 4 months ago · None stated GitHub repository of Minervini VCP Dashboard v8 KLSE

MTF Confluence Trend

by aretephi
1 stars

MTF Confluence Trend plots trend signals when conditions align across timeframes. It detects Supertrend direction flips on the chart timeframe and confirms them against a higher timeframe Supertrend. Optional filters require an ADX strength threshold and a vol

Indicator v6 TrendVolatility & bands
Updated 3 months ago · None stated GitHub repository of MTF Confluence Trend
4 stars

Meridian - Futures Context is an intraday analysis indicator designed for US index futures. It measures volume participation using relative volume, calculates rolling realized volatility, and evaluates trend context through VWAP slope and EMA structures. Displ

Indicator v6 VolumeVolatility & bands
Updated 7 weeks ago · MPL-2.0 GitHub repository of Meridian - Futures Context

The Momentum Setup is a multi-indicator visual tool designed for trend and momentum analysis directly on the price chart. It combines Relative Strength Index (RSI), Money Flow Index (MFI), Commodity Channel Index (CCI), Supertrend, and a 250-bar percentage cha

Indicator v5 Oscillators & momentumTrend
Updated 1 year ago · MPL-2.0 GitHub repository of Momentum Setup - Ankush Bajaj Momentum Investing Setup

Adaptive MA Slope

by capissimo
114 stars

This indicator calculates Kaufman's Adaptive Moving Average (KAMA) on a chosen price source and determines trend direction based on the slope across a configurable lookback window. Signals can be filtered by short-term volatility expansion using ATR comparison

Indicator v4 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of Adaptive MA Slope

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