PoshTrader

Market Hours

Updated indicator showing Market Hours.
  • Market Hours plot one hour ahead so you can easily see when markets open or close.
  • Works only on 1m, 3m, 5m, 15m, 30m and 60m charts.
오픈 소스 스크립트

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

면책사항

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

차트에 이 스크립트를 사용하시겠습니까?
study(title="Market Hours", scale=scale.right, overlay=false)


//--- Europe
London = "0700-1600"
Frankfurt = "0600-1500"

//--- America
NewYork = "1200-2100"
Chicago = "1300-2200"

//--- Asia
Tokyo = "2300-0800"
HongKong = "0000-0900"

//--- Pacific
Sydney = "1900-0600"
Wellington = "1900-0500"


//-- Time In Range
timeinrange(res, sess) => time(res, sess) != 0

london = timeinrange(period, London)
frankfurt = timeinrange(period, Frankfurt)
newyork = timeinrange(period, NewYork)
chicago = timeinrange(period, Chicago)
tokyo = timeinrange(period, Tokyo)
hongkong = timeinrange(period, HongKong)
sydney = timeinrange(period, Sydney)
wellington = timeinrange(period, Wellington)


//--- Plots
shift = period=="1"?61:period=="3"?21:period=="5"?13:period=="15"?5:period=="30"?3:period=="60"?2:0

plot(8, color=london?#3fa9f5:white, linewidth=5, offset=shift, title="London")
plot(7, color=frankfurt?#3fa9f5:white, linewidth=5, offset=shift, title="Frankfurt")
plot(6, color=newyork?#ed1e79:white, linewidth=5, offset=shift, title="New York")
plot(5, color=chicago?#ed1e79:white, linewidth=5, offset=shift, title="Chicago")
plot(4, color=tokyo?#79c942:white, linewidth=5, offset=shift, title="Tokyo")
plot(3, color=hongkong?#79c942:white, linewidth=5, offset=shift, title="Hong Kong")
plot(2, color=sydney?#ff931e:white, linewidth=5, offset=shift, title="Sydney")
plot(1, color=wellington?#ff931e:white, linewidth=5, offset=shift, title="Wellington")