OPEN-SOURCE SCRIPT

HTF Candle Projections

By modhelius
Updated
The HTF Candle Projections indicator shows a number of candles from a higher time frame (HTF) projected to the right of the candles in the current timeframe. This can be very useful if you want to analyze two different timeframes without the need to switching between the different timeframes.

This indicator is highly inspired by the HTF Power of Three indicator by toodegrees but is fully free and open source, it also have support for showing more than just one candle in the projection. It is also inspired by the HTF Candle Insights (Expo) indicator by Zeiierman but differ in the way that it update the HTF candles in real time and also have support for showing Open/High/Low projections that also updates in real time.

This indicator is released under TradingViews default license (Mozilla Public License 2.0)
Release Notes
Fix: Minor fix in the grouping of the settings.
Update: Remove upper limit for how many HTF candles that can be shown.
Release Notes
Update: Add support for automatically setting timeframe based on current timeframe.
Release Notes
Fix: Use higher timeframe data rather than current timeframe data.
Release Notes
Update: Change back so the default behavior is to generate HTF candles from the current timeframes data, since it is both faster and more accurate, except from the Weekly chart that currently always uses HTF data to render candles since candles on higher timeframes can close in the middle o a week. This means that the Weekly timeframe does not work very well with bar replay.
New: New setting "Always use HTF data to generate candles" added. This setting can for example be used if you use intraday data with pre market data, but want to project candles based on non intraday candles not using pre market data.
Release Notes
Update: Improved the way the OHC projections is plotted to work better with the weekly chart.
Release Notes
Update: Support for OHLC price labels added.
Release Notes
Fix: A bug that resulted in that projections where not removed if only one candle was set to be generated.
Update: Fix even more fine granular auto time frame selection.
Release Notes
Update: "Use HTF data to generate candles on Weekly timeframe" setting added.
Fix: Fixed a bug in OHL projection.
Release Notes
Update: Size and Margin settings added.
Release Notes
Update: New display picture.
Release Notes
Update: Fix so auto selection of timeframes can either be done in one or two levels.
Release Notes
Update: Support for Heikin Ashi candles.
Fix: Spelling errors
Release Notes
Fix: Do not calculate Hekin Ashi if chart already is Heikin Ashi
Release Notes
Update: A bit nicer settings.
Candlestick analysisChart patternsCyclesHTFhtfanalysisictmultitimeframeanalysismultitimeframesPO3powerof3powerofthree
modhelius

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer