TradingView
twingall
Mar 4, 2023 6:01 PM

Future week Calendar; Each day's custom sessions & Labels 

Euro Fx/U.S. DollarFXCM

描述

On-Chart Calendar for the week ahead with 4x customizable intraday sessions (each day with it's own unique sessions)

-add your own text labels and optional time/date stamps to each session; for key events of the week.
-toggle on/off each individual session.
-Choose number of weeks of history to show (default is 0: only show upcoming week.
-Works on BTC too (includes Saturday/Sunday sessions).

//Notes//
~timestamps and labels anchor to the start of the session box
~when using with default 'weeks back to show' = 0; Session boxes will disappear as price passes through their right hand side.
~to remove the very long indicator status line (due to so many sessions): Go to chart settings >> status line, and under 'indicator' toggle off 'arguments'

Example usage: Each day's 4x custom sessions showing; only upcoming week; no labels


Example usage: Each day's 4x custom sessions showing; Showing 1 week of history too; no labels

版本注释

Added text formatting options:
-Preface custom text with Day name/Time/Date (US or UK format)
-Text position, text color, text size

版本注释

-refined day of week condition to prevent minor error where excess historical sessions would print on certain timeframes

版本注释

-Fixed next day's boxes to automatically reposition vertically, once we enter that day (00:00 user timezone), so they're are more correcly anchored/centered to current price

版本注释

-Option to delete historical Labels; fix alignment of future boxes (2+days ahead) to be smoother

版本注释

-fixed minor error in deleting previous week's labels function

版本注释

-correction

版本注释

-proper fix for 'delete historical labels' condition
评论
PlusUltraTrading
Nice work! Is it possible that it also can show up when selecting smaller timeframes, like e.g. 15 seconds timeframe? and to adjust the "session window" for the news like something smaller than 15 min?
twingall
@PlusUltraTrading, thanks.. no, 30seconds minimum with premium subscription (needs min of 7day lookback; premium subscribtion 20000 bars lookback limit)
twingall
@PlusUltraTrading, (only way to get resolution less than 15m is by manually editing the session in the code, i.e.: inputSession1 = input.session('1402-1521', title='', group = "Monday", inline='1')
更多