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: https://github.com/oscarvs/bitcoin-killz...
نص برمجي مفتوح المصدر

قام مؤلف هذا النص البرمجي بنشره وجعله مفتوح المصدر، بحيث يمكن للمتداولين فهمه والتحقق منه، وهو الأمر الذي يدخل ضمن قيم TradingView. تحياتنا للمؤلف! يمكنك استخدامه مجانًا، ولكن إعادة استخدام هذا الكود في منشور تحكمه قواعد الموقع. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟
// 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)