TradingView
Frien_dd-DisDev
Feb 11, 2021 4:55 PM

Pre and Market Openings 

Bitcoin / United States DollarCoinbase

Description

Pre and Market Openings is to enable you to quickly visualize the opening markets and how they could influence trading.


The below script has used the market time data from the below links:

Tokyo/Asia https://www.tradinghours.com/markets/jpx/hours

London https://www.tradinghours.com/markets/lse/hours

New York https://www.tradinghours.com/markets/nyse/hours


The below script aims to plot:

Daily Asia Open
Weekly Asia Open

Daily London Open
Weekly London Open

Daily New York Open
Weekly New York Open


Using background colour it also shows market sessions (pre-market) for London and New York and regular for London, New York and Asia.

There is also plotted text for days of the week and sessions.



As you can see from the picture below that these market openings can act as support and resistance:

BTC


ETH

Release Notes

Tidied script:

Enabled offset for daily and weekly to fix issues of Daily Monday Open overlapping Weekly Open.
Added Title text to all shapes.

Release Notes

Suggested improvement change from kmarryat (pinescripters.net)

//Code removed as this was allowing background colours on Daily, Weekly, Monthly
//loadIndicator = timeframe.multiplier <= inputMaxInterval

//Modified code below
loadIndicator = timeframe.isminutes and timeframe.multiplier <= inputMaxInterval

Release Notes

Updated to Version 5.

Correction made to Asia Weekly Open.
Comments
GT_Berlin
How can i set time for CEST Timezone?
victorenock
Hey. Thanks for this Can you help me a little?

The openings isn't right for time zone.
Cant change it.
Carrot-Tips
this is excellent. can you please explain here or via DM how to modify to my timezone (CST) thank you!
x77x
Need a little help figuring out how to line up the time zones for eastern standard time
Frien_dd-DisDev
@x77x, good day x77x I have sent you a TV DM as it would probably be easier to explain over DM.
rk96shinde
thank you so much
Roinek2
Asia Weekly open does not register with UTC timezone even when offset by an hour in the settings
Roinek2
Pretty sure this part of the script needs to be changed AsiaWOpenInput = input('0000-0001:3', title="Asia Weekly Open") and instead the 3 needs to be changed to 1 am I correct in assuming this.
Frien_dd-DisDev
Thanks @Roinek2, I have updated the script.
GT_Berlin

the timezones are not compatible to my Timezone
More