Variable Moving Average(VARMA)

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Variable Moving Average(VARMA)

Postby Apprentice » Thu Feb 24, 2011 4:35 am

VARMA.png


Variable moving average is an exponential moving average that automatically adjusts the smoothing constant based on the volatility of the data series. The more volatile the data, the larger the smoothing constant used in the moving average calculation. The larger the smoothing constant, the more weight given to the current data. The opposite is true for less volatile data.

Typical moving averages suffer from the inability to compensate for changes in volatility. During volatile markets, you want a moving average to increase its sensitivity, so that you will quickly be on the correct side of any wild gyrations. By automatically adjusting the smoothing constant, a variable moving average is able to adjust its sensitivity, allowing it to perform better in both high and low volatility markets.

AbsCMO:=(Abs(CMO(Close,CMOPeriod)))/100;
SC:=2/(SmoothPeriod+1);
if period > CMOPeriod + SmoothPeriod+ 2 then
VARMA=(SC*AbsCMO*C)+(1-(SC*AbsCMO))*VARMA[PREV]);
else
VARMA = Close
end

The absolute value of a 9-period Chande Momentum Oscillator is used for the volatility index. The higher this index the more volatile the market, thereby increasing the sensitivity of the moving average.

This method of calculating a variable moving average was presented by Tushar Chande in the March 1992 issue of Technical Analysis of Stocks & Commodities magazine.

VARMA.lua
(2.41 KiB) Downloaded 1693 times


VARMA Cross With Alert.lua
(12.21 KiB) Downloaded 982 times


This indicator will provides Audio / Email Alerts on Slow/Fast VARMA Line cross .

Dec 14, 2015: Compatibility issue Fixed. _Alert helper is not longer needed.

The indicator was revised and updated

VARMA based strategy.
viewtopic.php?f=31&t=66303
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36476
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Variable Moving Average(VARMA)

Postby Alexander.Gettinger » Fri Jun 29, 2012 1:53 pm

MQL4 version of VARMA: viewtopic.php?f=38&t=20682
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: Variable Moving Average(VARMA)

Postby Coondawg71 » Tue Jul 08, 2014 12:16 pm

Can we please request a new indicator that Alerts at point of breach when crossing of two different Varma values occurs.

Example : Varma 12/6 cross up through Varma 24/12 = Green Dot
Varma 12/6 cross down through Varma 24/12= Red Dot

Please see attached image for illustration.

Thanks!

sjc
Attachments
Varma Cross Alert.png
Two Varma Cross Alert
User avatar
Coondawg71
FXCodeBase: Graduate
 
Posts: 324
Joined: Sat Jan 15, 2011 11:45 am



Re: Variable Moving Average(VARMA)

Postby 4x4partners » Thu May 07, 2015 1:49 pm

Is there any existing strategies that use VARMA Cross ?

Or can it be added to the another group (such as AVERAGES) so as to use those strategies that are already coded?

Thanks in advance.
Best
4x4
4x4partners
 
Posts: 53
Joined: Thu Apr 09, 2015 7:23 am

Re: Variable Moving Average(VARMA)

Postby Apprentice » Fri May 08, 2015 4:41 am

Not that I know.
Please formalize your request and post it here.
viewforum.php?f=27
Explain your trading idea.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36476
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Variable Moving Average(VARMA)

Postby Apprentice » Mon Dec 14, 2015 5:43 am

Dec 14, 2015: Compatibility issue Fixed. _Alert helper is not longer needed.

If you want to use updated version of this indicator,
please make sure to use TS Version 01.14.101415. or higher.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36476
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia



Next

Return to Custom Indicators

Who is online

Users browsing this forum: Bing [Bot] and 183 guests

cron