indicator · on price · open source
Asian / London / NY Killzones indicator
Asian / London / NY Killzones is a free open-source indicator by @deepwick. Asian / London / NY Killzones shade the chart background during the three classic… Deepwick Script runs a subset of Pine Script.
Running…
Loading chart…
What Asian / London / NY Killzones does
Asian / London / NY Killzones shade the chart background during the three classic institutional trading windows (UTC hours).
- Asian: 00:00–08:00 UTC (default purple shade) — accumulation and range definition.
- London: 08:00–13:00 UTC (default blue shade) — usually the cleanest breakouts.
- New York: 13:00–20:00 UTC (default green shade) — high volume, frequent reversals at the London close.
- Toggle each zone on/off via the input checkboxes; pick custom colours per zone.
- Outside any session the background is grey to mark the dead-zone.
- Default watch settings are tuned for FX and crypto (UTC hours); US equity sessions are in ET.
- The LDN breakout/breakdown alerts fire when London takes out the prior 50-bar range — classic London open play.
- Combine with the market-structure overlay to trade the first CHoCH inside each killzone.
Source code
Deepwick Script, a subset of Pine Script · read-only
//@version=6
indicator("Asian / London / NY Killzones", overlay=true)
showAsian = input.bool(true, "Show Asian")
showLondon = input.bool(true, "Show London")
showNy = input.bool(true, "Show New York")
asianColor = input.string("#9c27b050", "Asian Color")
londonColor = input.string("#2962ff50", "London Color")
nyColor = input.string("#4caf5050", "New York Color")
transparency = input.int(90, "Shade Transparency", minval=70, maxval=99)
alertOpen = input.bool(true, "Alert on Session Open")
alertLdnRange = input.bool(false, "Alert on LDN Range Break")
showSessionLabels = input.bool(false, "Show Session Label Markers")
transparency = input.int(90, "Shade Transparency", minval=70, maxval=99)
asianStart = input.int(0, "Asian Start Hour (UTC)", minval=0, maxval=23)
nyEnd = input.int(20, "NY End Hour (UTC)", minval=8, maxval=23)
h = math.floor((time / 3600000) % 24)
isAsian = h >= 0 and h < 8
isLondon = h >= 8 and h < 13
isNy = h >= 13 and h < 20
asianBg = showAsian and isAsian ? asianColor : na
londonBg = showLondon and isLondon ? londonColor : na
nyBg = showNy and isNy ? nyColor : na
bgCol = not na(asianBg) ? asianBg : (not na(londonBg) ? londonBg : (not na(nyBg) ? nyBg : na))
bgcolor(bgCol)
alertcondition(showAsian and isAsian and not isAsian[1], "Asian opens", "Asian killzone active")
alertcondition(showLondon and isLondon and not isLondon[1], "London opens", "London killzone active")
alertcondition(showNy and isNy and not isNy[1], "NY opens", "New York killzone active")
alertcondition(showLondon and isLondon and high >= ta.highest(high, 50), "LDN breakout", "London open broke the prior 50-bar high")
alertcondition(showLondon and isLondon and low <= ta.lowest(low, 50), "LDN breakdown", "London open broke the prior 50-bar low")
alertcondition(showNy and isNy and not isNy[1] and high >= ta.highest(high, 30), "NY session high", "New 30-bar high on NY open")
No comments yet.
Sign in to comment.