PureBytes Links
Trading Reference Links
|
Hi,
Your formula is an adaptive exponential moving
average:
the last line is
movavg( today ) = ee * close + ( 1-
ee ) * movavg( yesterday )
Adaptive moving average could be easily
implemented in AFL WITHOUT PREV
function using AMA:
movavg = AMA( close, ee );
So your formula would look like this:
aa= C - Ref(C,4);
bb=Sum(Abs(Close - Ref( Close, -1
)),4);
cc=(Abs((AA)/BB));
dd=((2/3)-(2/31))+(2/31);
ee=(CC*DD)^2;
ff=(C-Ref(C,-1));
graph0 = AMA( close, ee );
Best regards,Tomasz Janeczko===============AmiBroker - the
comprehensive share manager.<A
href="">http://www.amibroker.com
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
Bernard
Bourée
To: <A title=amibroker@xxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Sunday, June 10, 2001 8:44
AM
Subject: Re: [amibroker] MS PREV
Hi Tomasz and Steve,
Thank you for your reply.
Here is my formula:
aa= C - Ref(C,4);
bb=Sum(Abs(Roc(C,1,$)),4)
cc=(Abs((AA)/BB))
dd=((2/3)-(2/31))+(2/31)
ee=(CC*DD)^2
ff=(C-Ref(C,-1))
Sig:=If(Cum(1)=5, Ref(C,-1)+EE*FF, PREV + EE * (C
- PREV))
Regards
Bernard Bourée<A
href="">bbouree@xxxx
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
Tomasz Janeczko
To: <A title=amibroker@xxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Saturday, June 09, 2001 8:14
PM
Subject: Re: [amibroker] MS PREV
Hi,
Steve pointed you correctly to
JScript/VBScript but in fact some formulas
do not really need PREV. People tend to use it
much more often than it is really needed.
Send me the formula and I will tell you
how to convert it into AFL in an efficient
way.
Please note that PREV in fact is VERYslow and
still does imply lots of limitations to coding formulas.
With JScript/VBScript you are completely free
- there are virtually no limits in the language.
Best regards,Tomasz Janeczko===============AmiBroker - the
comprehensive share manager.<A
href="">http://www.amibroker.com
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
Steve
Wiser
To: <A
title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Saturday, June 09, 2001 4:38
PM
Subject: Re: [amibroker] MS
PREV
At present you have to do this inside a VBScript or
JScript area by looping through an array that has been inialized.I
have used this in a couple of demo scripts and indicators which has been
put up on the board.SteveAt 02:20 PM 6/9/01 +0000, you
wrote:>Hi>>Someone could tell me what is the AB
equivalent to Metastock function>PREV
?>>ThanksYour use of Yahoo!
Groups is subject to the <A
href="">Yahoo! Terms of Service.
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Your
use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
|