๐ก ืืฉืจ TradingView โ CMCSA
ืืกืงืจืืคื ืืื ืืฆืืืจ ืืืจืฃ ืฉืื ืืืืืง ืืช ืืืืืงืื ืืจืืืช ืื ืืืืืช ืฉืืกืืจืง ืจืืื โ
4 ืืืืงืื ื-4 ืจืืืช. ืืขืชืง โ Pine Editor ื-TradingView โ ืืืกืฃ ืืืจืฃ.
ืกืืฃ ืืคืขืจ ืืื ืื ืฉืืกืืจืง ืืฆื ืืื ืฉืืชื ืจืืื ืืขืื.
//@version=6
// ============================================================
// TheSMCTrader โ CMCSA ยท ืืืืจืื ืืืกืจืืงื ืฉื ืืืื
// ื ืืฆืจ ืืืืืืืืช ืืชืื watch_zones.json. ืืืืง ื-Pine Editor ืืืืกืฃ ืืืจืฃ.
// ============================================================
indicator("TheSMCTrader โ CMCSA", overlay = true, max_boxes_count = 40, max_lines_count = 40)
colBull = input.color(color.new(color.green, 82), "ืืืืง ืืืงืืฉ")
colBear = input.color(color.new(color.red, 82), "ืืืืง ืืืฆืข")
colHigh = input.color(color.new(color.red, 35), "ื ืืืืืช ืืขื")
colLow = input.color(color.new(color.green, 35), "ื ืืืืืช ืืชืืช")
showLbl = input.bool(true, "ืืฆื ืชืืืืืช")
drawZone(float bot, float top, color c, int style) =>
if barstate.islast
box.new(bar_index - 250, top, bar_index + 12, bot, border_color = c,
border_style = style, bgcolor = c)
drawLevel(float p, color c, string tag) =>
if barstate.islast
line.new(bar_index - 250, p, bar_index + 12, p, color = c, width = 1,
style = line.style_dotted)
if showLbl
label.new(bar_index + 12, p, tag, style = label.style_label_left,
color = color.new(color.black, 100), textcolor = c, size = size.tiny)
if barstate.islast
drawZone(21.2800, 22.4900, colBull, line.style_dashed)
drawZone(23.2800, 24.0900, colBull, line.style_dashed)
drawZone(25.5000, 26.0900, colBull, line.style_dashed)
drawZone(21.2800, 24.2500, colBull, line.style_solid)
drawLevel(21.2800, colLow, "Low ืืืื")
drawLevel(21.2800, colLow, "Low ืฉืืืขื")
drawLevel(27.0400, colHigh, "PWH")
drawLevel(25.5000, colLow, "PWL")