Found this in the archives..
Pds=20; Alpha= 2/(Pds+1); UD=
Sum((C-Ref(C,-1))*(C>Ref(C,-1)),9); DD=
Sum((Ref(C,-1)-C)*(C<Ref(C,-1)),9); CMOsc= (UD-DD)/(UD+DD); k=
abs(CMOsc); Vidya= AMA( C, k*Alpha); UB=Vidya*1.04; LB=Vidya*0.96; Plot(Lb,"",1,1); Plot(ub,"",1,1); Plot(Vidya,"",1,1); Plot(C,"",1,64);
----- Original Message -----
Sent: Saturday, December 27, 2008 6:23
PM
Subject: [amibroker] VIDYA ( variable
index dynamic average) by Tushar Chande
May anyone please write VIDYA AFL as it works best as trailing
stop loss for positional trade. It also capture early, changes in
trend reversal. Anyone who knows the write AFL try to write VIDYA please,
so that we all get benefit of it.
regards
Subhas Chand
Mishra
No virus found in this incoming message. Checked by AVG -
http://www.avg.com Version: 8.0.176 / Virus Database: 270.10.1/1868 -
Release Date: 12/29/2008 10:48 AM
__._,_.___
**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
*********************
TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
*********************
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
*********************************
__,_._,___
|