PureBytes Links
Trading Reference Links
|
iGoR
A good interpretation of that would be..
{VIDYA}
AbsCMO:=(Abs(CMO(C,9)))/100;
SC:=0.78;
VIDYA:=If(Cum(1)<25,C,(SC*AbsCMO*C)+(1-(SC*AbsCMO))*PREV);
If(Sum(C,25)>0,VIDYA,VIDYA);
Here's a more flexible but less precise version (as per the given definition) of VIDYA. The "SC" variable cannot create a factor of 0.78 when it is based on smoothing periods, as below.
{VIDYA (9,2)}
Length:=Input("Length",1,200,9);
Smooth:=Input("Smoothing",1,200,2);
AbsCMO:=(Abs(CMO(C,Length)))/100;
SC:=2/(Smooth+1);
VIDYA:=If(Cum(1)<=(Smooth+2),C,(SC*AbsCMO*C)+(1-(SC*AbsCMO))*PREV);
If(Sum(C,Smooth+2)>0,VIDYA,VIDYA);
And here's a much faster executing version of VIDYA.
Mov(C,2,VAR);
Roy
www.metastocktips.co.nz
----- Original Message -----
From: thefuturemaster
To: equismetastock@xxxxxxxxxxxxxxx
Sent: Thursday, March 02, 2006 5:05 AM
Subject: [EquisMetaStock Group] Variable Moving Average
On paritech.com I red that this is the formula for the variable moving
average.
VMA = (0.78*(volatility index) * close) + (1-0.078 * volatility index)
*previous VMA
volatility index = absolute value of the 9-period Chande Momentum
Oscillator.
Could someone help to translate this into a formula so it could be used
in to metastock. So one can play with the 0.78value or with the value
of the CMO indicator.
Thanks a lot in advance...iGoR
SPONSORED LINKS Business finance course Business to business finance Small business finance
Business finance consultant Business finance magazine Business finance schools
--------------------------------------------------------------------------------
YAHOO! GROUPS LINKS
a.. Visit your group "equismetastock" on the web.
b.. To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
--------------------------------------------------------------------------------
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/BefplB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|