PROTECTED SOURCE SCRIPT
已更新 ICT HTF Candles (fadi)

Plotting a configurable higher timeframe on current chart's timeframe helps visualize price movement without changing timeframes. It also plots FVG and Volume Imbalance on the higher timeframe for easier visualization.
With ICT concepts, we usually wait for HTF break of structure and then find an entry on a lower timeframe. With this indicator, we can set it to the HTF and watch the develop of price action until the break of structure happens. We can then take an entry on the current timeframe.
Settings
HTF Higher timeframe to plot
Number of candles to display The number of higher timeframe candles to display to the right of current price action
Body/Border/Wick The candle colors for the body, border, and wick
Padding from current candles The distance from current timeframe's candles
Space between candles Increase / decrease the candle spacing
Candle width The size of the candles
Imbalance
Fair Value Gap Show / Hide FVG on the higher timeframe
Volume Imbalance Show / Hide Volume Imbalance on the higher timeframe
Trace
Trace lines Extend the OHLC lines of the higher timeframe and the source of each
Label Show/Hide the price levels of the OHLC
With ICT concepts, we usually wait for HTF break of structure and then find an entry on a lower timeframe. With this indicator, we can set it to the HTF and watch the develop of price action until the break of structure happens. We can then take an entry on the current timeframe.
Settings
HTF Higher timeframe to plot
Number of candles to display The number of higher timeframe candles to display to the right of current price action
Body/Border/Wick The candle colors for the body, border, and wick
Padding from current candles The distance from current timeframe's candles
Space between candles Increase / decrease the candle spacing
Candle width The size of the candles
Imbalance
Fair Value Gap Show / Hide FVG on the higher timeframe
Volume Imbalance Show / Hide Volume Imbalance on the higher timeframe
Trace
Trace lines Extend the OHLC lines of the higher timeframe and the source of each
Label Show/Hide the price levels of the OHLC
版本注释
Fixed label display under settings版本注释
Fixed Trace show/hide not working版本注释
Fixed the current price label版本注释
Major Update:- Now supports up to 6 HTF candle sets
- Control over spacing between the candle sets
- Control over the trace and label lines per candle set
- Label above each candle set to identify it
Known Issue:
when using very large timeframe on small timeframe, showing tracelines may cause the indicator to error. This is due to limitation in how many bar backs is available on the smaller timeframe and Tradingview cannot find that starting point. The workaround is to hide trace lines on larger timeframes
版本注释
internal code cleanup版本注释
Update:- Added possible range option based on ATR calculation. Indicator will highlight both possible possible bullish and bearish ranges based on the average of previous X (configurable) candles. This gives an indication of possible up OR down range. Once range has been met, the highlighted range will be removed. Only first 3 ranges are shown by default since much higher timeframes will have very large ranges and can distort charts with Auto fit.
版本注释
UPDATE:ROLLBACK of range due to performance issues. Calling request.security is causing performance issues.
版本注释
UPDATE:Fixed an issue with candles not rendering when market is closed
版本注释
Clarification: There are two ways of displaying higher timeframe candles, by programmatically calculating it based on current timeframe, or by using request.security. - Programmatically calculating provides real time update, however it does not work well for partials. for example, when the chart is on 3m, it fails to calculate 5m correctly. instead, it will calculate 6m. that is because the minimum of candles needed to calculate 5m will be two 3m candles.
- request.security is the preferred approach, however it is extremely slow and would not show live updated candles and that will result with price updating few seconds later, which would render this indicator useless
The approach I have taken is that if selected timeframe cannot be calculated based on the chart timeframe, then the timeframe will be hidden/ignored
Known bug: Monday on daily will be off because lower timeframe calculation includes Sunday, where on daily timeframe it is ignored
版本注释
Bug Fix: 1. When mitigated FVGs were hidden, they were still counted resulting in fewer FVGs being displaced.
2. The previous bug fix resulted in FVGs' right padding not calculating correctly.
版本注释
Rollback incorrect checkin版本注释
UPDATE: Code is published under a new indicator with the same name版本注释
FIX: Fix for wick colors when candle changes from bullish to bearish and vice versa版本注释
Major Update:- Refactored the code and cleaned it up
- Added Limit to next HTFs only setting that allows you to only display next 3 HTF candles for example
- Added Remaining Time label per request
- FVGs and V.I. now show on developing candles
- Changed how Trace lines work. Now they can be anchored to first or last set of HTF candles
版本注释
Bug Fix: - fixed timer update
版本注释
Bug Fix: Offset calculation fix (thanks HighendTrader for catching it).版本注释
UPDATE:Custom Daily Candle Open
Daily candles can now be customized to use Midnight, 8:30, or 9:30 open instead of the standard daily candle range.
Label Alignment
Two new label alignment settings:
Label Position
- Both above and below the candles
- Above the candles only
- Below the candles only
Label Alignment
- Align labels to be at same level
- Follow the candles by displaying them right above the high/low
Day of Week
Show the day of week name above each daily candle.
版本注释
Bug Fix:- Fixed timer label positioning
版本注释
Update:- Fixed an issue with the timer display not toggling off when option is disabled
- Renamed "Day of Week" to "Interval Value" which now displays the time for each candle except for weekly and multiple days or months.
版本注释
Bug Fix: newly added time interval label is not clearing up on new candle prints.受保护脚本
此脚本以闭源形式发布。 但是,您可以自由使用它,没有任何限制 — 在此处了解更多信息。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
受保护脚本
此脚本以闭源形式发布。 但是,您可以自由使用它,没有任何限制 — 在此处了解更多信息。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。