Intraday FOREX london scalper
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © exlux99

//@version=4
study("Intraday london scalper", overlay=true)


timeinrange(res, sess) => time(res, sess) != 0

doEurOpen = true

europeSession = color.blue


bgcolor(doEurOpen and timeinrange(timeframe.period, "0200-0300") ? europeSession : na, transp=70)
isess = session.regular
t = tickerid(syminfo.prefix, syminfo.ticker, session=isess)

yesterdayHigh = security(t,"D",high)
yesterdayLow = security(t,"D",low)

// Plot the other time frame's data
a=plot(timeframe.isintraday ? yesterdayHigh : na, color=color.red, linewidth=1, style=plot.style_linebr)
b=plot(timeframe.isintraday ? yesterdayLow : na, color=color.lime, linewidth=1, style=plot.style_linebr)



