커뮤니티
수식 변경 요청 드립니다.
트레이딩뷰의 수식 입니다만,
예스차트 수식으로 변환 요청 드립니다.
-----------------------------------------------------------------------------
//@version=5
indicator("Start Open Price", overlay=true)
openPrice = open
highPrice = high
lowPrice = low
isHourClose = (minute == 0)
isPositiveSOP = isHourClose and (openPrice == lowPrice) and (lowPrice == ta.lowest(lowPrice, 1))
isNegativeSOP = isHourClose and (openPrice == highPrice) and (highPrice == ta.highest(highPrice, 1))
var string sopText = na
if (isPositiveSOP)
sopText := str.tostring(openPrice)
label.new(bar_index, lowPrice - 1, text=sopText, style=label.style_label_up, color=color.green, textcolor=color.white, size=size.large, textalign=text.align_center)
line.new(bar_index[1], lowPrice, bar_index, lowPrice, color=color.red, width=1)
if (isNegativeSOP)
sopText := str.tostring(openPrice)
label.new(bar_index, highPrice + 1, text=sopText, style=label.style_label_down, color=color.green, textcolor=color.white, size=size.large, textalign=text.align_center)
line.new(bar_index[1], highPrice, bar_index, highPrice, color=color.blue, width=1)
else
sopText := na // 조건이 충족되지 않으면 텍스트를 비움
답변 1
예스스탁 예스스탁 답변
2026-02-25 17:13:34