oscarvs

Bitcoin Kill Zones

GRAB THE LASTEST VERSION HERE: *********************
This indicator shows when the candle is entering New York, London or Asia Kill Zone (open market).

gray: 30min before market opens.
red, green, orange: First 1 hour with 10min focus bands.
silver: complete 30min session market until close.

FIX NOTE:
Set this hours for Asia to fix the 1 hour difference:
2330-0000
0000-0010
0010-0050
0050-0100
0100-0900

* this is beta, in planning to mark dynamically ranges before/after open/close session and use some Fibs to have some ripple effect indicator
Updated code: github.com/oscarvs/bitcoin-killzones
Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?
// Created by https://www.tradingview.com/u/oscarvs @ 01 October 2014 | @theoscarvs
// based on ChrisMoody scripts and http://blog.tradingview.com/?p=223
// https://gist.github.com/oscarvs/f05612579c9a174e8d5b

study(title="Bitcoin Kill Zones [oscarvs]",shorttitle="Bitcoin Kill Zones", overlay=true)
timeinrange(res, sess) => time(res, sess) != 0

doNYPre = input(defval=true, type = bool, title="NY Pre On")
doNYOpen = input(defval=true, type = bool, title="NY Kill Zone On")
doNYSession = input(defval=true, type = bool, title="NY Session On")

doAsiaPre = input(defval=false, type = bool, title="Asia Pre On")
doAsiaOpen = input(defval=false, type = bool, title="Asia Kill Zone On")
doAsiaSession = input(defval=false, type = bool, title="Asia Session On")

doLondonPre = input(defval=true, type = bool, title="London Pre On")
doLondonOpen = input(defval=true, type = bool, title="London Kill Zone On")
doLondonSession = input(defval=false, type = bool, title="London Session On")

bgcolor(doNYPre and timeinrange(period, "1130-1200") ? gray : na, transp=40)
bgcolor(doNYOpen and timeinrange(period, "1200-1210") ? red : na, transp=40)
bgcolor(doNYOpen and timeinrange(period, "1210-1250") ? red : na, transp=60)
bgcolor(doNYOpen and timeinrange(period, "1250-1300") ? red : na, transp=40)
bgcolor(doNYSession and timeinrange(period, "1300-2100") ? silver : na, transp=85)

bgcolor(doAsiaPre and timeinrange(period, "2230-2300") ? gray : na, transp=40)
bgcolor(doAsiaOpen and timeinrange(period, "2300-2310") ?  orange: na, transp=40)
bgcolor(doAsiaOpen and timeinrange(period, "2310-2350") ?  orange: na, transp=60)
bgcolor(doAsiaOpen and timeinrange(period, "2350-0000") ?  orange: na, transp=40)
bgcolor(doAsiaSession and timeinrange(period, "0000-0800") ? silver : na, transp=85)

bgcolor(doLondonPre and timeinrange(period, "0630-0700") ? gray : na, transp=40)
bgcolor(doLondonOpen and timeinrange(period, "0700-0710") ? green : na, transp=40)
bgcolor(doLondonOpen and timeinrange(period, "0710-0750") ? green : na, transp=60)
bgcolor(doLondonOpen and timeinrange(period, "0750-0800") ? green : na, transp=40)
bgcolor(doLondonSession and timeinrange(period, "0800-1600") ? silver : na, transp=85)