답변완료
문의드립니다
Input: n(90000), n1(230000);
Var2 = (timehigh(n,n1)+timelow(n,n1)+timeclose(n,n1)+timehigh(n,n1))/2 - timelow(n,n1);
Var3 = (timehigh(n,n1)+timelow(n,n1)+timeclose(n,n1)+timelow(n,n1))/2 - timehigh(n,n1);
var1 = (Var2 + Var3)/2;
Plot1( Var2, "고");
Plot2( Var3, "저");
plot3(var1, "중간선");
=========================
자정(밤 12시) 가 지나면 라인이 나오지 않습니다
수치도 차트 오른쪽에 표시되지 않습니다
자정이 지나도 라인이 나오게 수점 부탁드립니다
감사합니다
2025-05-06
243
글번호 190585
지표
답변완료
문의드립니다.
아래의 트레이딩뷰 수식을 변환 부탁드립니다.
1
====================
/@version=6
indicator(title="Volume Weighted Moving Average", shorttitle="VWMA", overlay=true, timeframe="", timeframe_gaps=true)
len = input.int(20, "Length", minval=1)
src = input(close, "Source")
ma = ta.vwma(src, len)
offset = input.int(0, "Offset", minval = -500, maxval = 500)
plot(ma, title="VWMA", color=#2962FF, offset = offset)
2
=======================
//@version=3
study(title="VWMACD", shorttitle="VWMACD", overlay=true)
src = close, len1 = input(12, minval=1), len2 = input(26, minval=1)
len = len2-len1
ma = vwma(src, len)
plot(ma, title="VWMA", color=blue)
3
===================
Periods = input(title="ATR Period", type=input.integer, defval=10)
src = input(hl2, title="Source")
Multiplier = input(title="ATR Multiplier", type=input.float, step=0.1, defval=3.0)
changeATR= input(title="Change ATR Calculation Method ?", type=input.bool, defval=true)
showsignals = input(title="Show Buy/Sell Signals ?", type=input.bool, defval=true)
highlighting = input(title="Highlighter On/Off ?", type=input.bool, defval=true)
atr2 = sma(tr, Periods)
atr= changeATR ? atr(Periods) : atr2
up=src-(Multiplier*atr)
up1 = nz(up[1],up)
up := close[1] > up1 ? max(up,up1) : up
dn=src+(Multiplier*atr)
dn1 = nz(dn[1], dn)
dn := close[1] < dn1 ? min(dn, dn1) : dn
trend = 1
trend := nz(trend[1], trend)
trend := trend == -1 and close > dn1 ? 1 : trend == 1 and close < up1 ? -1 : trend
upPlot = plot(trend == 1 ? up : na, title="Up Trend", style=plot.style_linebr, linewidth=2, color=color.green)
buySignal = trend == 1 and trend[1] == -1
plotshape(buySignal ? up : na, title="UpTrend Begins", location=location.absolute, style=shape.circle, size=size.tiny, color=color.green, transp=0)
plotshape(buySignal and showsignals ? up : na, title="Buy", text="Buy", location=location.absolute, style=shape.labelup, size=size.tiny, color=color.green, textcolor=color.white, transp=0)
dnPlot = plot(trend == 1 ? na : dn, title="Down Trend", style=plot.style_linebr, linewidth=2, color=color.red)
sellSignal = trend == -1 and trend[1] == 1
plotshape(sellSignal ? dn : na, title="DownTrend Begins", location=location.absolute, style=shape.circle, size=size.tiny, color=color.red, transp=0)
plotshape(sellSignal and showsignals ? dn : na, title="Sell", text="Sell", location=location.absolute, style=shape.labeldown, size=size.tiny, color=color.red, textcolor=color.white, transp=0)
mPlot = plot(ohlc4, title="", style=plot.style_circles, linewidth=0)
매번 감사드립니다. 수고하세요!!!
2025-05-06
283
글번호 190580
지표