//@version=6 // Little Bird Trading Index Levels, Thu Oct 22. Educational levels only, not financial advice. https://littlebirdtrading.com indicator("Little Bird Trading Index Levels, Thu Oct 22", shorttitle="LBT Levels", overlay=true, max_lines_count=500, max_labels_count=500) // The chart's symbol: SPY, ES1! (root ES), MES1!, BTCUSD, NVDA... isSym(string s) => t = syminfo.ticker r = syminfo.root t == s or r == s or str.startswith(t, s + "USD") or r == "M" + s level(float v, string name, color c) => line.new(bar_index - 1, v, bar_index, v, extend=extend.both, color=c, width=2) label.new(bar_index + 3, v, name + " " + str.tostring(v), style=label.style_label_left, color=color.new(c, 85), textcolor=c, size=size.small) var bool drawn = false if barstate.islast and not drawn drawn := true if isSym("ES") level(7806.5, "Resistance", #C73833) level(7802.25, "Pivot", #7C3AED) level(7794.25, "Support", #218C54) level(7785.25, "Support", #218C54) level(7780.25, "Support", #218C54) if isSym("SPY") level(775.29, "Resistance", #C73833) level(773.33, "Pivot", #7C3AED) level(771.85, "Support", #218C54) level(770.75, "Support", #218C54) level(769.68, "Support", #218C54) if isSym("NQ") level(30041.25, "Resistance", #C73833) level(30036.25, "Resistance", #C73833) level(30029.75, "Resistance", #C73833) level(30025, "Pivot", #7C3AED) level(30019.75, "Support", #218C54) level(30013.5, "Support", #218C54) level(29999.5, "Support", #218C54) level(29994.5, "Support", #218C54) if isSym("QQQ") level(729.24, "Resistance", #C73833) level(726.13, "Pivot", #7C3AED) level(724.09, "Support", #218C54) level(721.8, "Support", #218C54) level(719.66, "Support", #218C54) level(717.57, "Support", #218C54) // Pro gets the next session's levels about 1 hour after the close. var table pro = table.new(position.top_right, 1, 2, bgcolor=#102A4D, border_width=0) if barstate.islast table.cell(pro, 0, 0, "Fri Oct 23 levels: tonight with Pro", text_color=color.white, text_size=size.normal) table.cell(pro, 0, 1, "littlebirdtrading.com/pricing", text_color=#EAD7BA, text_size=size.small)