Sie sind auf Seite 1von 1

study("VWAP ULTRA X2", overlay=true)

typicalPrice = (high + low + close) / 3


typicalPriceVolume = typicalPrice * volume

cumulativePeriod1 = input(21, "Period")


cumulativeTypicalPriceVolume1 = sum(typicalPriceVolume, cumulativePeriod1)
cumulativeVolume1 = sum(volume, cumulativePeriod1)
vwapValue1 = cumulativeTypicalPriceVolume1 / cumulativeVolume1
plot(vwapValue1,title='21',color=#35e8ff,style=circles)

cumulativePeriod2 = input(48)
cumulativeTypicalPriceVolume2 = sum(typicalPriceVolume, cumulativePeriod2)
cumulativeVolume2 = sum(volume, cumulativePeriod2)
vwapValue2 = cumulativeTypicalPriceVolume2 / cumulativeVolume2
plot(vwapValue2,title='48',color=#f995ff,style=circles,transp=1,linewidth=1)

cumulativePeriod3 = input(84,"Period3")
cumulativeTypicalPriceVolume3 = sum(typicalPriceVolume, cumulativePeriod3)
cumulativeVolume3 = sum(volume, cumulativePeriod3)
vwapValue3 = cumulativeTypicalPriceVolume3 / cumulativeVolume3
plot(vwapValue3,title='84',color=#acff35,style=circles,transp=1,linewidth=1)

cumulativePeriod4 = input(175,"Period4")
cumulativeTypicalPriceVolume4 = sum(typicalPriceVolume, cumulativePeriod4)
cumulativeVolume4 = sum(volume, cumulativePeriod4)
vwapValue4 = cumulativeTypicalPriceVolume4 / cumulativeVolume4
plot(vwapValue4,title='175',color=#5b9cf6,style=circles,transp=1)

cumulativePeriod5 = input(480,"Period5")
cumulativeTypicalPriceVolume5 = sum(typicalPriceVolume, cumulativePeriod5)
cumulativeVolume5 = sum(volume, cumulativePeriod5)
vwapValue5 = cumulativeTypicalPriceVolume5 / cumulativeVolume5
plot(vwapValue5,title='480',color=#ffe0b2,style=circles,transp=1)

cumulativePeriod6 = input(840,"Period6")
cumulativeTypicalPriceVolume6 = sum(typicalPriceVolume, cumulativePeriod6)
cumulativeVolume6 = sum(volume, cumulativePeriod6)
vwapValue6 = cumulativeTypicalPriceVolume6 / cumulativeVolume6
plot(vwapValue6,title='840',color=#f3ff00,style=circles,transp=1)

Das könnte Ihnen auch gefallen