·Î±×ÀÎ
|
ȸ¿ø°¡ÀÔ
|
ȸ»ç¼Ò°³
|
»çÀÌÆ®¸Ê
Ä¿¹Â´ÏƼ | ¼ö½ÄÀÛ¼º Q&A
ÀÛ¼ºÀÚ :
ÇØ¾Ï
ÀÛ¼ºÀÏ : 2025-06-11 ¿ÀÀü 5:56:57 Á¶È¸¼ö : 36
¹®Àǵ帳´Ï´Ù.
¾Æ·¡ÀÇ ¼ö½ÄÀ» º¯È¯ºÎʵ右´Ï´Ù.
=======================
study(title="VWAP-VWMA-ATR", shorttitle="Adapted-ATR", overlay=true)
//VWAP
cumulativePeriod = input(5, "Period")
typicalPrice = (high + low + close) / 3
typicalPriceVolume = typicalPrice * volume
cumulativeTypicalPriceVolume = sum(typicalPriceVolume, cumulativePeriod)
cumulativeVolume = sum(volume, cumulativePeriod)
vwapValue = cumulativeTypicalPriceVolume / cumulativeVolume
//VWMA
shortlen = input(10, minval=1)
longlen = input(5, minval=1)
short = ema(volume, shortlen)
long = ema(volume, longlen)
osc = 100 * (short - long) / long
//ATR-Stop
p=input(100,"Period")
m=input(11,"Multiplier")
max=close[1]+atr(p)[1]*m
min=close[1]-atr(p)[1]*m
stop=min
hi=true
hi:=hi[1]?high[1]>=stop[1]?false:true:low[1]<=stop[1]?true:false
stop:=hi?max:min
stop:=hi?hi[1]==false?stop:stop>stop[1]?stop[1]:stop:hi[1]?stop:stop<stop[1]?stop[1]:stop
//VWAP-VWMA-ATR
c1 =(stop+osc+vwapValue)/2
//ATRCOLOR
atrcolor=(c1>close?color.red:color.green)
//Plot
plot(c1, title="Adapted-ATR", linewidth=2, color=atrcolor, transp=0)
//BarColor
barcolor(close>c1 ? color.green : color.red)
================
°¨»çÇÕ´Ï´Ù. ¼ö°íÇϼ¼¿ä!!!
¹®Àǵ帳´Ï´Ù
Áú¹® ºÎʵ右´Ï´Ù
°ü·Ã ±Û ¸®½ºÆ®
ÇöÀç±Û
¹®Àǵ帳´Ï´Ù.
ÇØ¾Ï
2025.06.11
36
Re : ¹®Àǵ帳´Ï´Ù.
¿¹½º½ºÅ¹
2025.06.11
49