TheYangGuizi

DAX Expected High/Low

1087 görüntülenme
108
1087 5
Uses VDAX ( dax volatility index) to calculate the expected daily range of the Dax .
formula: http://daytrading.about.com/od/indicator...

Input the dax previous days close
and
This value: http://www.investing.com/indices/vdax
and
The indicator will do the rest
Favori Komutlardan Çıkart Favori Komutlara Ekle
//@version=2
study("VDAX Expected High/Low", overlay=true)
VDAX= input(000.0000,title="VDAX")
Timeframe=input("D")
pdc = security(tickerid, Timeframe, close[1])
PREVDAYCLOSE= input(000.0000, title="Previous (Timeframe) Close")
//

sy = input(false, title="Show Previous (Timeframe) Close?")
plot(sy and pdc ? pdc : na, title="Previous Days Close", style=cross, linewidth=1, color=teal)


PERCENTDAILYRANGE= VDAX/20
POINTSAILYRANGE= (PREVDAYCLOSE/100)*PERCENTDAILYRANGE
EXPECTEDHIGH=PREVDAYCLOSE+POINTSAILYRANGE
EXPECTEDLOW= PREVDAYCLOSE-POINTSAILYRANGE

plot(EXPECTEDHIGH, color=red,style=linebr,title="Expected High")
plot(EXPECTEDLOW, color=green,style=linebr,title="Expected Low")
plot(avg(EXPECTEDHIGH,PREVDAYCLOSE), color=black,style=circles,title="Average Expected High")
plot(avg(EXPECTEDLOW,PREVDAYCLOSE), color=black,style=circles,title="Average Expected Low")
plot(PERCENTDAILYRANGE, color=red,style=linebr,title="% (hide this if it messes up the auto scale)")
plot(POINTSAILYRANGE, color=red,style=linebr,title="P DR (hide this if it messes up the auto scale)")
What kind of platform do you use for this script? Because I get errors when I paste the script in it.

Thanks in advance.
Cevap Gönder
beursadviezen beursadviezen
I use MT4-platform
Cevap Gönder
Nice script. Does it work with DAX only? I'd like to change exchange and stock.
Cevap Gönder
TheYangGuizi MikhailOzone
This formula might work for both dax and ES, other than that I don't know. Found it here: https://futures.io/331401-post6.html
Just copy/paste into pine editor and add to chart. Then enter vix close and es close.

study("VIXDAXES Expected High/Low", overlay=true)

//more info: https://futures.io/331401-post6.html
ES_Close= input(22.0100,title="ES Close")
VIX_Close= input(22.0100,title="VIX Close")

expectedpricechange = (VIX_Close/16) * (ES_Close/100)
rangehigh = ES_Close + expectedpricechange
rangelow = ES_Close - expectedpricechange


plot(rangehigh, color=red,style=linebr,title="Expected High")
plot(rangelow, color=green,style=linebr,title="Expected Low")

Basically you need prev day close + some sort of volatility value for what your trading.
Cevap Gönder
TheYangGuizi MikhailOzone
I dunno, I haven't tried it for something else. I think you would have to adjust the valuesto fit the indice etc you want to trade. This formula might work for ES and perhaps more: https://futures.io/331401-post6.html
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 TradingView Koinleri Destek Kayıtlarım Yardım Alın Yayınlanmış Fikirler Takip Edenler Takip Ediliyor Özel Mesajlar Sohbet Çıkış