[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] VIDYA ( variable index dynamic average) by Tushar Chande



PureBytes Links

Trading Reference Links

Another one from archives

// Vidya

Length=21;
Smooth=5;

Change = C - Ref( C, -1 );
SU = Sum( C - Ref( C, -1 ) > 0, Length );
SD = Sum( C - Ref( C, -1 ) < 0, Length );
CMO = 100 * ( SU - SD ) / ( SU + SD );

AbsCMO=( abs(CMO) )/100;

SC=2/(Smooth+1);

VIDYA=AMA( C, SC*AbsCMO );

Plot( Close, "Price", 4, 64 );
Plot( VIDYA, "Vidya", 5 );


Anthony Faragasso a écrit :
>
> 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 -----
>     *From:* subhaschandmishra <mailto:subhaschandmishra@xxxxxxxxx>
>     *To:* amibroker@xxxxxxxxxxxxxxx <mailto:amibroker@xxxxxxxxxxxxxxx>
>     *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

*********************************
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/