goofoffgoose

World Markets Open/Close Background

goofoffgoose Telah dikemas kini   
Indicator fills background color on the chart for different markets around the world.
This can be helpful in some markets to understand after hours and premarket price action. User can study if there is correlation between highs/low in whole session or open/close of different markets.

Tokyo, Hong Kong and Shanghai are Asian Markets in Red are combined
Bombay, London and NYSE are individually plotted.


Times can be changed for each session to include the entire session, or selected block of 15 minutes.
Less than 15 minutes will need to be changed in the default value of the code which is why I'm publishing it open source.
All coded default times for each market are in CST.
Background color can be turned off individually under the Style tab, and can also be unchecked under Inputs and can just be used for source for further coding.

My intentions for this script is to use it and its variable value to plot the highs and lows just in the specific times in a session and to more easily visualize those sessions with color coding.
I hope this is useful

Cheers!
Nota Keluaran:
My intentions for this script is to use it and its variable value to plot the open, close, highs and lows in the specific times of a
session and to more easily visualize those sessions with color background.
indicator fills background on the chart for different markets around the world.
Times can be changed for each session to include the entire session or a specific time.
Sessions are default to be displayed on the 1 hour chart. All default times for each market are in CST.
Background color can be turned off or changed and this can just be used for source.

***Fixed the Time zone issue. The default timeframe of sessions should update to the users current time zone set on the platform.
Although times will still need to be adjusted for DST.

***Cleaned up the code and menu layout to be more User/Coder friendly.

***Added option to color background for a lookahead period in minutes. The default is false with lookahead set for 1 day (1380 mins)
with times set on the hourly chart. To use this on the hourly chart for a Globex session, change the look ahead mins to 1379.
This code is however intended for a chart in minute(s). Manually input open/close times to whatever you wish.
Selecting "Future Sessions" can take a moment to load on the 1 min and under chart.

****PLEASE NOTE*** "Future Sessions" is VERY picky on the 1 hour chart. Selected times HAVE TO BE at least 1 hour and sometimes even
ON THE HOUR. Change "Future Sessions" INPUT to 1379(mins) for an hourly chart otherwise it may not show the first selected session
It will take increments sometimes, and other times it just won't. Please don't ask me to fix this, believe me I have tried.

Any questions or input, feel free to message me.

Cheers!!
Skrip sumber terbuka

Dalam semangat TradingView yang sebenar, penulis skrip ini telah menerbitkannya dengan menggunakan sumber terbuka supaya pedagang-pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda dapat menggunakannya secara percuma tetapi penggunaan semula kod ini dalam penerbitan adalah dikawalselia oleh Peraturan Dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.

Ingin menggunakan skrip ini pada carta?