OPEN-SOURCE SCRIPT

Tokyo & London Pre-Market Boxes (Local Time)

34
//version=5
indicator("Daily 10am & 6pm Lines", overlay=true)

var line line10 = na
var line line18 = na

// Convert 10:00 and 18:00 into timestamps for today
t10 = timestamp(year, month, dayofmonth, 10, 0)
t18 = timestamp(year, month, dayofmonth, 18, 0)

// When the bar’s time crosses 10:00, draw a vertical line
if (time >= t10 and time[1] < t10)
line10 := line.new(x1 = t10, y1 = low, x2 = t10, y2 = high, color=color.blue, width = 1)

// When the bar’s time crosses 18:00 (6pm), draw another line
if (time >= t18 and time[1] < t18)
line18 := line.new(x1 = t18, y1 = low, x2 = t18, y2 = high, color=color.red, width = 1)

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.