TheYangGuizi

VWAP MTF (Multi Timeframe)

5807 görüntülenme
1402
5807 6
VWAP that can be be plotted from different timeframes.

Ex if you chose 60 min, it will plot a new vwap line at the start of every hour.

Intraday:
Used code from SandroTurriate to create this.
Favori Komutlardan Çıkart Favori Komutlara Ekle
study("VWAP MTF",overlay=true)

TimeFrame = input('W')
start = security(tickerid, TimeFrame, time)

//------------------------------------------------
newSession = iff(change(start), 1, 0)
//------------------------------------------------
vwapsum = iff(newSession, hl2*volume, vwapsum[1]+hl2*volume)
volumesum = iff(newSession, volume, volumesum[1]+volume)
v2sum = iff(newSession, volume*hl2*hl2, v2sum[1]+volume*hl2*hl2)
myvwap = vwapsum/volumesum
dev = sqrt(max(v2sum/volumesum - myvwap*myvwap, 0))
Coloring=close>myvwap?green:red
av=myvwap
showBcol = input(false, type=bool, title="Show barcolors")
showPrevVWAP = input(false, type=bool, title="Show previous VWAP close")
prevwap = iff(newSession, myvwap[1], prevwap[1])
plot(showPrevVWAP ? prevwap : na, style=circles, color=close > prevwap ? green : red)

A=plot(av, style=circles, color=Coloring)

barcolor(showBcol?Coloring:na)
You rocks! thanks
Cevap Gönder
Thanks for sharing. Question about timeframe box input: M for month, W for week, D for daily. What is the code for Year, Hour, 5 min, 1 min? Appreciate your response.
+9 Cevap Gönder
TheYangGuizi nedcpatrader
@nedcpatrader, Sorry for the late answer :D. But for hour you write 60 (like 60 minutes), for 5 min you write 5... and so on.
Cevap Gönder
hi
can u make this work on renko and mirror the result to work in candlestick ? like this indicator

Renko Auto Cloner V0


this what i mean

each dash i want it to appear in candlestick chart
Cevap Gönder
Looking forward to putting this indicator to work!

Thanks - Murray
Cevap Gönder
great indicator , kudos man
thanks for sharing
Cevap Gönder
Ana Sayfa Hisse Senedi Takipçisi Forex Takipçisi Kripto Takipçisi Ekonomik Takvim Nasıl Çalışır Grafik Özellikleri Ücretlendirme Kurallarımız Moderatörler Web Sitesi & Aracı Kurum Çözümleri Görsel Bileşenler(Widget) Grafik Çözümleri Yardım Alın Yeni Özellik Talebi Blog ve Haberler SSS Viki Twitter
Profil Profil Ayarları Hesap ve Ödemeler Yardım Alın Yayınlanmış Fikirler Takip Edenler Takip Ediliyor Özel Mesajlar Sohbet Çıkış