TradingView
twingall
4. Mrz. 2023 18:01

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

Euro Fx/U.S. DollarFXCM

Beschreibung

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

Versionshinweise

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

Versionshinweise

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

Versionshinweise

-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

Versionshinweise

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

Versionshinweise

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

Versionshinweise

-correction

Versionshinweise

-proper fix for 'delete historical labels' condition
Kommentare
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')
Mehr