Sessions - AlgoLabA script in UTC for London, New York, Tokyo, & Sydney sessions.
Recommended on any timeframe < 1H.
---
Using this script, a box is plotted on the opening candle of each session; this can show us valuable areas on each chart where price may mediate to show a standing move.
You may also select each of the session boxes, in the settings; this will show you a box of the opening, low, high, and close of each selected sessions.
Each and all boxes are closed at the end of each session.
-The script produces a time table that will show you when each session occurs, and if the current time is within one of those sessions.
---
On this chart you can see boxes formed on the opening candles of the sessions,
London is red, New York is blue, Sydney is green, Tokyo is yellow.
-A key point to notice, before using this script, is how price may mediate around each box, before causing a move.
-Some boxes may be larger / smaller than others, due to the size of the opening candle.
---
Lots of updates to come, any recommendations? Feel free to leave a comment.
Hope it helps, enjoy!
UTC
ISODateTimeLibrary "ISODateTime"
getDateParts(dateStr)
Get year, month, day from date string.
Parameters:
dateStr : : ISO 8601 format, i.e. "2022-05-04T14:00:00.001000-04:00" or "2022-05-04T14:00:00Z"
Returns: array of int
getTimeParts(dateStr)
Get hour, minute, seconds from date string.
Parameters:
dateStr : : ISO 8601 format, i.e. "2022-05-04T14:00:00.001000-04:00" or "2022-05-04T14:00:00Z"
Returns: array of int
getUTCTimezone(dateStr)
Get UTC timezone.
Parameters:
dateStr : : ISO 8601 format, i.e. "2022-05-04T14:00:00.001000-04:00" or "2022-05-04T14:00:00Z"
Returns: string UTC timezone
Market Trading Sessions (TG Fork)Visualize trading sessions opening hours of several international exchanges on a grid. Contrary to other indicators, this one automatically aligns the session with the current chart's timezone.
This is helpful for bar replay or manual backtesting, to spot patterns of correlations (this can also be used in conjunction with correlation indicators, see my other indicators).
Original indicator by Gunzo, if you like this indicator, please show the original author some love:
This indicator is also inspired by the following indicators:
ZenAndTheArtOfTrading with
UnknownUnicorn468659 with
This fork implements the following features:
Converted to PineScript v5.
Adapted default color palette to dark mode, as is the default in TradingView now.
Fix drawing issues, now the design shows as it was originally meant to be.
Fixed mistiming issue that made some sessions display with a delay compared to the real session, especially the first session was bar at the start of the session was not displayed.
Inputted the accurate timings for each session, instead of the default 0800-1600 in the original indicator.
Essentially, you can just add this indicator and it should work out of the box. If not, please let me know, and I'll try to fix it!
How To Calculate Symbol's UTC NumberVarious methods to calculate a symbol's timezone offset as a numerical value in hours and decimal minutes. This value may be useful to script authors in certain situations where timezone information needs to be available in a numerical format while using intraday charts. Special thanks to @LucF and TradingView Support for their efficiency advisements!
NOTICE: This is an example script and not meant to be used as an actual strategy. By using this script or any portion thereof, you acknowledge that you have read and understood that this is for research purposes only and I am not responsible for any financial losses you may incur by using this script!
[RESEARCH] Litecoin Halving UTC CountdownAccording to this source www.litecoinblockhalf.com
The day, hour and minute of the halving date can be customized manually in case of mining troubles.
[RESEARCH] UTC ClockThe one of the most important indicators every trader must use is time :)
Sometimes it has a lag due to the script recalculation per each candle tick (not every second)
[RESEARCH] Script With Expiration TimeJust testing a new methodology to give users an ability to test code from invite-only scripts for a certain period.
Expiration time - 01.12.2018 13:00 UTC
It should not plot data from new bars that comes after Expiration time
It should not plot anything if was applied on the chart after Expiration time