BongHuyn

Simple FX Market Hours

BongHuyn 업데이트됨   
█ OVERVIEW

A simple market session indicator that show you what market is in session according to the timezone you configured. It will draw a table with 4 cells matching 4 market Sydney, Tokyo, London and New York. Whenever market is in session the matching text will change colour.

█ WHAT MAKE THIS DIFFERENT

All other indicator on the market are either bar colouring, background colouring, or some sort of box drawing on the chart which is very messy and cluttered your chart. This indicator is as simple as it gets. The label are positions by default at the top right corner (you can change this in the config). It doesn’t draw anything on your chart so you can get right into your price action without anything blocking you.

Also, these type of indicator on the market are not auto converting the market session time to your your configured timezone, you will have to manually entered in the market session hours in your local time. This indicator does! Or perhaps I didn’t look hard enough. Either way I think there aren’t any indicator that are this simple.

█ HOW IT WORKS

I’m using table function (available to pinescript version 4 and above) to position the market labels and change colour of them according to if the market is in session or not.

For timezone, I have predefined all the market hours in all of the timezone from GMT-12 to GMT+12. When you select your timezone it will convert it to the symbol’s exchange timezone. Feel free to update the timezone if I had it incorrectly.

This script doesn’t take into account the DST because DST doesn’t starts or ends on a fixed date.

I also put in a check for symbol type using: syminfo.type == "forex”. So that it will only display if you are on forex pairs. You don’t need to hide it while you are looking at crypto or other assets. For convenience purposes.

█ NOTES

If you like the script be sure to press the like button it will help shows other people that this is useful. Thank you very much!
릴리즈 노트:
Fix a bug in calculating timezone differences
릴리즈 노트:
  • Fix timezone not converting probably and the labels are not updating.
릴리즈 노트:
Minor fix
릴리즈 노트:
  • Fix weekend logic weekend will now start from 10pm FRIDAY til 10PM SUNDAY, GMT+0 timezone.
릴리즈 노트:
  • Add an override settings temporary to solve daylight saving. I will look more into how to get this pre-configured so all you have to do is check a box for daylight saving without manually entering in the correct daylight saving time session for your local timezone.
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?