OPEN-SOURCE SCRIPT

EST Time Table

266
//version=6
indicator("EST Time Table", overlay = true)

// ─── Table Settings ─────────────────────────────────────────────
var table timeTable = table.new(
position.top_right,
1, 12,
border_width = 1
)

// ─── Header ────────────────────────────────────────────────────
if barstate.isfirst
table.cell(timeTable, 0, 0, "Time (EST)",
bgcolor = color.black,
text_color = color.white,
text_size = size.normal)

// ─── Time Rows ─────────────────────────────────────────────────
times = array.from(
"2:00 AM",
"6:00 AM",
"8:00 AM",
"8:30 AM",
"9:00 AM",
"9:30 AM",
"10:00 AM",
"11:00 AM",
"14:00 PM",
"19:00 PM",
"21:00 PM"
)

// ─── Fill Table ────────────────────────────────────────────────
for i = 0 to array.size(times) - 1
bg = i % 2 == 0 ? color.rgb(220, 220, 220) : color.white
table.cell(
timeTable,
0,
i + 1,
array.get(times, i),
bgcolor = bg,
text_color = color.black,
text_size = size.normal
)

면책사항

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