OPEN-SOURCE SCRIPT
Updated Ghost Candles

👻 Ghost Candles - Predictive Market Projection
Ghost Candles is an advanced forward-projection indicator that visualizes potential future price action directly on your chart using dynamically generated “ghost” candles.
Unlike traditional indicators that lag or react, Ghost Candles attempts to anticipate short-term market structure by learning from real-time order-flow proxies, volatility, and price behavior.
🔍 What It Does:
Ghost Candles projects up to 32 future candles ahead of the current price, rendering them as semi-transparent candles that evolve in real time.
These projections are not static - they continuously adapt as new data comes in, giving you a live, evolving forecast of market direction and structure.
⚙️ How It Works:
At its core, Ghost Candles uses a lightweight neural network trained directly on-chart.
The model updates itself every bar, adapting to changing market conditions without external data.
🧠 How to Use:
Ghost Candles is best used as a contextual tool, not a standalone signal generator.
Use it to:
Anticipate short-term directional bias
Visualize potential continuation vs reversal scenarios
Identify compression before expansion
Gauge market hesitation or momentum build-up
⚠️ Important Notes:
This indicator is predictive and experimental, not deterministic
Projections will change as new data comes in (especially on live bars)
Best used alongside structure, liquidity, and confirmation tools
Not financial advice
Ghost Candles is an advanced forward-projection indicator that visualizes potential future price action directly on your chart using dynamically generated “ghost” candles.
Unlike traditional indicators that lag or react, Ghost Candles attempts to anticipate short-term market structure by learning from real-time order-flow proxies, volatility, and price behavior.
🔍 What It Does:
Ghost Candles projects up to 32 future candles ahead of the current price, rendering them as semi-transparent candles that evolve in real time.
These projections are not static - they continuously adapt as new data comes in, giving you a live, evolving forecast of market direction and structure.
⚙️ How It Works:
At its core, Ghost Candles uses a lightweight neural network trained directly on-chart.
The model updates itself every bar, adapting to changing market conditions without external data.
🧠 How to Use:
Ghost Candles is best used as a contextual tool, not a standalone signal generator.
Use it to:
Anticipate short-term directional bias
Visualize potential continuation vs reversal scenarios
Identify compression before expansion
Gauge market hesitation or momentum build-up
⚠️ Important Notes:
This indicator is predictive and experimental, not deterministic
Projections will change as new data comes in (especially on live bars)
Best used alongside structure, liquidity, and confirmation tools
Not financial advice
Release Notes
👻 Ghost Candles - Predictive Market ProjectionGhost Candles is an advanced forward-projection indicator that visualizes potential future price action directly on your chart using dynamically generated “ghost” candles.
Unlike traditional indicators that lag or react, Ghost Candles attempts to anticipate short-term market structure by learning from real-time order-flow proxies, volatility, and price behavior.
🔍 What It Does:
Ghost Candles projects up to 32 future candles ahead of the current price, rendering them as semi-transparent candles that evolve in real time.
These projections are not static - they continuously adapt as new data comes in, giving you a live, evolving forecast of market direction and structure.
⚙️ How It Works:
At its core, Ghost Candles uses a lightweight neural network trained directly on-chart.
The model updates itself every bar, adapting to changing market conditions without external data.
🧠 How to Use:
Ghost Candles is best used as a contextual tool, not a standalone signal generator.
Use it to:
Anticipate short-term directional bias
Visualize potential continuation vs reversal scenarios
Identify compression before expansion
Gauge market hesitation or momentum build-up
⚠️ Important Notes:
This indicator is predictive and experimental, not deterministic
Projections will change as new data comes in (especially on live bars)
Best used alongside structure, liquidity, and confirmation tools
Not financial advice
Release Notes
Improved the networks capacity to learn the extremes of price action.Improved ghost wicks.
Release Notes
Improved default hyperparameters.Improved ghost prediction scaling.
Release Notes
Significantly improved predictive capabilities by implementing multi-timeframe features.Release Notes
Reduced HTF multiplier to 8 to improve predictive accuracy.Release Notes
Fixed a bug where some timeframes caused the indicator to fail loading.Release Notes
Implemented per-horizon magnitude scaling for ghost candles.Release Notes
Decreased network sensitivity to the current live candle.Release Notes
Fixed a bug where incomplete live candles could lead to oversimplified predictions.Release Notes
Improved the default hyperparameter set.Release Notes
Increased Scale LR to reduce overly conservative ghost candle deltas.Release Notes
Implemented visual improvements.Release Notes
Removed heikin ashi smoothing of HTF features.Release Notes
Added directional accuracy and edge tracker (with comparison against a randomly trading baseline algorithm).Release Notes
Improved directional accuracy.Release Notes
Directional accuracy is now based on the accuracy of the predicted candle directions that the network was most confident in.Release Notes
Added user input tooltips to be more user friendly.Release Notes
Now places red/green dot signals at the most profitable ghost candles.Release Notes
Improved dot placements.Release Notes
Made the forecast translucent by default.Release Notes
Improved prediction stability.Release Notes
Improved forecast continuity.Release Notes
Increased amplification of ghost candles.Release Notes
Added asymptotic refinement and network mutation.Release Notes
Improved default hyperparameters.Release Notes
Increased step directional accuracy weight and decreased wick sizes.Release Notes
Reduced training samples per bar to prevent timeout errors.Release Notes
Added expected % returns to the evaluation table.Replaced the live marker with a red (bearish) or green (bullish) dot at the live candle.
Release Notes
Improved back testing to keep track of account growth more accurately.Release Notes
Added leverage and stop losses to back testing.Release Notes
Improved loading times.Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.