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
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?
// 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)