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
Skrypt open-source

Zgodnie z prawdziwym duchem TradingView, autor tego skryptu opublikował go jako open-source, aby traderzy mogli go zrozumieć i zweryfikować. Brawo dla autora! Możesz używać go za darmo, ale ponowne wykorzystanie tego kodu w publikacji jest regulowane przez Dobre Praktyki. Możesz go oznaczyć jako ulubione, aby użyć go na wykresie.

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.

Chcesz użyć tego skryptu na wykresie?
// 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)