TradingView
twingall
28 Jan 2023 pukul 21.16

Custom HTF candle overlay, ICT True Day 

EUR/USDOANDA

Deskripsi

-input your own session time for custom 'daily' or HTF candles to overlay on your lower time frame charts.

-based on ICT's notion of 'True Day'.
-customize the HTF candles to any start/end time.
-set lookback period/cutoff in days (i.e. backtesting vs only viewing recent price action).
-option to toggle on/off custom opening price line.
-works across all lower time frames.

~useful for visualizing the chunks of the day where the action tends to happen.
~useful for other session times intraday; to be visualized as a single custom HTF candle.

Catatan Rilis

-added option to plot wick midpoint lines (default off)

Catatan Rilis

-added tooltip

Catatan Rilis

-added wick midline color option

Catatan Rilis

-Two Session Day: added option to plot HTF overlay candles for 2 distinct sessions in the day
-Weekly Candle: added option to plot one HTF overlay weekly candle

~sidenote: if you find the indicator status line annoyingly long, go to chart settings>>status line, and toggle off 'arguments'

Catatan Rilis

Two session HTF overlay for opening hour and closing hour Nasdaq 5min chart:


Weekly candle overlay on ES hourly chart with wick midlines (CE of Wicks):

Catatan Rilis

-fix color formatting error

Catatan Rilis

-changed syminfo.timezone to "America/New_York" so the input sessions are in line with NY time (no need to adjust by 1hr anymore)

Catatan Rilis

-Added optional HTF Body CE lines / midlines (default is toggled OFF)

Catatan Rilis

-Added box border color & width options.
Default is invisible border; select color AND increase transparency to show border.

Catatan Rilis

-fix bull vs bear border options
Komentar
xtrader1
Great script!
Notice the volume imbalances that arise when we look at price with a true-day perspective
tume28
Great Indicator!!!
Possible to add the border option, to only see the border outline of the body vs. the whole body?
twingall
@tume28, Cheers. Just updated with this. Default is invisible border. Change colors and transparencies as you like
tume28
@twingall, Thank you!!!
monky_bzness
Good stuff! Can you add midline to overlay candle bodies too? Thank You
twingall
@monky_bzness, done but in a bit of a rush. Lemme know if any bugginess. Toggle it ON down below the wick CE line dialog toggle box
monky_bzness
@twingall, Perfect. Works smoothly so far. Thank you!
Mr_JohnWick
@twingall, This Best HTF overlay Script but, If You can change ploting with Minute to Minute Basis, if You Set eg 5 pm to 4:55pm, When scroll the Timeframe it just give big Block. so user need to change timing according to Chart LTF all the Time.

if use 15m then setting to get most precise Daily Overlay is 5pm to 4:45pm

30m- 5pm to 4:30pm

1h -5pm to 4pm etc.

IF you revise code that Plots candle start of HH:MM to end Of HH:mm then Plot with remain contstant no matter Time frame change
Trader_Muhammad
@Mr_JohnWick, I also noticed this, not a big issue but it can be modified in the code. I hope this will be updated soon @twingall thank you!
twingall
@Mr_JohnWick, @Trader_Muhammad,
can't figure a way to edit the orig code while keeping flexibility of input.session. But for your case, with 'fixed' daily overlay session in mind, you could edit to make
_inputSession hardcoded. i.e. replace line 14 like so:
//_inputSession = input.session('1700-1655', title='custom HTF range', group = "custom range") _inputSession = timeframe.in_seconds(timeframe.period) <360 ?'1700-1655': //timeframe is less than 6mins timeframe.in_seconds(timeframe.period) <960 ?'1700-1645': // ..less than 16mins timeframe.in_seconds(timeframe.period) <1860 ?'1700-1630': //..less than 31mins timeframe.in_seconds(timeframe.period) <3660 ?'1700-1600': //..less than 61mins '1700-1400' // ..for any timeframe higher than hourly

@Mr_JohnWick if you've managed to find a better way please dm me would be keen to know, cheers
Lebih lanjut