OPEN-SOURCE SCRIPT

Highlight 10-11 AM NY

34
//version=5
indicator("Highlight 10-11 AM NY", overlay=true)

// Inputs for flexibility
startHour = input.int(10, "Start Hour (NY time)")
endHour = input.int(11, "End Hour (NY time)")

// Check if the current bar is within the session (uses chart time zone)
inSession = (hour(time, syminfo.timezone) >= startHour) and (hour(time, syminfo.timezone) < endHour)

// Highlight background
bgcolor(inSession ? color.new(color.yellow, 85) : na)

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.