PureBytes Links
Trading Reference Links
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Something like...
whatever = Sum(abs(C-Ref(C,-1)), nPeriod);
Step by step that's
whatever = Sum( // Sum of
abs( // the absolute value of
C // close today
-
Ref(C,-1) // close yesterday
)
,
nPeriod // over number of periods
);
Does that help?
Nigel
On Tue, 28 Oct 2003 01:48 pm, gosub283 wrote:
> Hi All,
>
> I am trying to do the following and don't quite
> know haw to pull it off in AFL. For the description below assume
> nPeriod = param("Period",5,20,1);
>
> Here is it...
> Sum(absolute value) of [Close today - Close yesterday]over nPeriod
> days
>
> Can anyone help me put that in AFL ?
>
> Thank to anyone who contributes,
> Gosub283
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/njNsBbmcM2pfckkRAt97AJ9DS7prcdCVfY+6OElwXYLAqcDpdACeJrlY
wDR0ZdK0KowYUXUv9r513lk=
=p89U
-----END PGP SIGNATURE-----
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|