본문으로 이동
AlertaChartAlertaScript / docs
AlertaScript / 시간과 세션
이 페이지의 내용동작 원리실전 적용코드 예제

AlertaScript / 문서

시간과 세션

시장 문맥을 정확히 적용.

동작 원리

time()은 시간 간격, 세션과 시간대로 필터링합니다. 세션 밖에서는 na를 반환할 수 있습니다.

실전 적용

서머타임에는 이름 있는 시간대를 쓰세요. 연장 세션은 데이터에 달려 있으며 화면 시간대와 규칙 시간대는 별개입니다.

코드 예제

AlertaScript
indicator("Session", overlay=true)inSession = not na(time(timeframe.period, "0930-1600:23456", "America/New_York"))bgcolor(inSession ? color.new(color.blue, 92) : na)
AlertaScript

검색 결과가 없습니다.

이름, 별칭 또는 키워드로 검색하세요.