LazyBear

Variable Moving Average [LazyBear]

Variable Moving Average, often abbreviated as VMA, is an Exponential Moving Average developed by Tushar S. Chande. VMA automatically adjusts its smoothing constant on the basis of Market Volatility .

Use this like other Moving Averages. I have added the following options that can be enabled via options page:
- Trend Direction Indication: Green = Up trend, Blue = Potential congestion, Red = down trend.
- Color bars based on Trend

More info:
http://www.thewizardtrader.com/Education...

List of my other indicators:
- GDoc: https://docs.google.com/document/d/15AGC...
- Chart:
Favori Komutlardan Çıkart Favori Komutlara Ekle
//
// @author LazyBear 
// List of all my indicators: 
// https://docs.google.com/document/d/15AGCufJZ8CIUvwFJ9W-IKns88gkWOKBCvByMEvm5MLo/edit?usp=sharing
// 
study(title="Variable Moving Average [LazyBear]", shorttitle="VMA_LB", overlay=true)
src=close
l =input(6, title="VMA Length") 
std=input(false, title="Show Trend Direction")
bc=input(false, title="Color bars based on Trend")
k = 1.0/l
pdm = max((src - src[1]), 0)
mdm = max((src[1] - src), 0)
pdmS = ((1 - k)*nz(pdmS[1]) + k*pdm)
mdmS = ((1 - k)*nz(mdmS[1]) + k*mdm)
s = pdmS + mdmS
pdi = pdmS/s
mdi = mdmS/s
pdiS = ((1 - k)*nz(pdiS[1]) + k*pdi)
mdiS = ((1 - k)*nz(mdiS[1]) + k*mdi)
d = abs(pdiS - mdiS)
s1 = pdiS + mdiS
iS = ((1 - k)*nz(iS[1]) + k*d/s1)
hhv = highest(iS, l) 
llv = lowest(iS, l) 
d1 = hhv - llv
vI = (iS - llv)/d1
vma = (1 - k*vI)*nz(vma[1]) + k*vI*src
vmaC=(vma > vma[1]) ? green : (vma<vma[1]) ? red : (vma==vma[1]) ? blue : black 
plot(vma, color=std?vmaC:black, linewidth=3, title="VMA")
barcolor(bc?vmaC:na)
how to use this indicator in amibroker, i am getting error
+5 Cevap Gönder
harish.khimavat harish.khimavat
I am new to amibroker and afl, kindly let me know how to use the above afl
+3 Cevap Gönder
harish.khimavat harish.khimavat
I am getting error 30, syntax error
+1 Cevap Gönder
how to trade this?
candle close above/below? or on a color change?
if we follow candle close above/below there is multiple trades.
please guide me.
thanks.
+13 Cevap Gönder
Is there any possibility to set alert system on color changes? Thanks in advance !
+2 Cevap Gönder
Close to the holey grail when combined with a MACD.
Would it be possible to add another Moving Average into the script like the Colored EMA SMA?
+2 Cevap Gönder
MacChart MacChart
Is OK,... worked it out
Great MA!
+1 Cevap Gönder
Could you please tell, what did you use as a measure of volatility (vI)??
+9 Cevap Gönder
Hi, why does the line just show as black for me?
+12 Cevap Gönder
tak215 BradleyJo
@BradleyJo, Check "Show Trend Direction" and it should color
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 Destek Merkezi Yeni Özellik Talebi Blog ve Haberler SSS Viki Twitter
Profil Profil Ayarları Hesap ve Ödemeler TradingView Koinleri Destek Kayıtlarım Destek Merkezi Yayınlanmış Fikirler Takip Edenler Takip Ediliyor Özel Mesajlar Sohbet Çıkış