TradingView
LazyBear
2 gen 2015 00:50

Variable Moving Average Bands [LazyBear] 

Euro Fx/U.S. DollarFXCM

Descrizione

VMA Bands are ATR bands with VMA as its centre. For a description of options, refer to my VMA post: tradingview.com/v/6Ix0E5Yr/.

I have moved VMA calculation in to a separate function. Feel free to use calc_vma() in your scripts. For more MA calculation function (KAMA, VIDYA and others), refer to my complete list of indicators below.

Wish you all a very prosperous New year. Hope these indicators make you all more money this year too :)

List of my other indicators:
- GDoc: docs.google.com/document/d/15AGCufJZ8CIUvwFJ9W-IKns88gkWOKBCvByMEvm5MLo/edit?usp=sharing
- Chart: tradingview.com/v/4IneGo8h/
Commenti
IvanLabrie
Very nice, indebted to yours, ucsgears and ChrisMoody's scripts.
Great work, as usual.
Have you used these, or just coding them for fun?
LazyBear
I do use them occasionally to get a different feel, but usually stick to only a few (1 momentum & 1 volume).

Each new indicator teaches me something new about price though, so mostly I code to learn :)
IvanLabrie
Very nice, I've been trying a similar approach heh, but my coding is subpar. :p
HigherOnlyCrypto
Holy cow, how's this for a strategy? Start with supertrend strategy, add VIDYA:VidyaBands as the 'source'. Then, within the Vidya Bands indicator, change its source to G-trend. Profit factor over 30, win rate of 74% and avgwin/avgloss is 17.4. Ive never seen anything as accurate or reactive in all my life. Works best on 1hr time frame. Must include bands and g-trend indicators on the chart. Set multiplyer to 0 zero.
User87234
Thanks for sharing this, LazyBear. I wanted to point out a calculation bug fix where at the beginning of the chart the VMA band will dip down to zero and start from there. You can stop that from happening if you change line 30. There may be a better choice than src, but it seems better place to start than 0. Hope this helps.

From:
vma=(1 - k*vI)*nz(vma) + k*vI*src

To:
vma=(1 - k*vI)*nz(vma, src) + k*vI*src
lavventura
where does `pdmS` come from?
vijay04
Hello sir
Can you make our owe indicator ? Pls let me know .
NaokiHasegawa
Hello, I know this is from a while ago so you might not see this, but what is the length of the ATR for these? the standard 14? I absolutely love your indicators and I'm digging deep!
sudhir.mehta
Thanks! Very good tool. Great work.
LazyBear
Thanks.
Altro