TradingView
fadizeidan
١٤ تشرين الثاني نوفمبر ٢٠٢٣ ١٧:٠٧

ICT HTF Candles [Source Code] (fadi) 

Micro E-mini S&P 500 Index FuturesCME

الوصف

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

ملاحظات الأخبار

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
التعليقات
akutsusho
Best..... Thank you for code !
fadizeidan
@akutsusho, thanks :) sorry I don’t check TradingView comments as much as I should
cognyto
Great indicator! Have you considered including an option to start the day at midnight New York time?
engineercassio
Hey Fadi. Sick indicator. I'd lie to know if there's a way to implement other tickers, so it help us to track SMT?
fadizeidan
@engineercassio, not for live price tracking, to do other tickers involves using a command called request.security, which lags badly. When price starts to move, it will have seconds delays to update and makes it useless on small timeframes. TradingView needs to resolve that lag issue first.
DanielC78
Hello, thanks a lot for your work. It seems there's an issue with the remaining time, when I want to display 2m and 3m on the 1m charts, the remaining time failed to display the time correctly when a new candle creates, it displays 23:59:57
fadizeidan
@DanielC78, interesting, it is displaying fine on my side. What stock are you looking at and what time of day to see if I can reproduce it on my end?
DanielC78
@fadizeidan, I'm looking at MNQM2024, thanks
Now it displays 57 on both, seems to not refreshing/calculing the remaining time
fadizeidan
@DanielC78, I see it happening, it happens when a new candle prints. I’ll fix it
DanielC78
@fadizeidan, Thanks a lot
المزيد