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

RE: [amibroker] Re: AFL Logic Question



PureBytes Links

Trading Reference Links

I can help with the count
Count = sum(V>MA(V,90),10);

For the using external files use the fopen, fget etc
File Input/Output functions

fclose - close a file (AFL 2.5) 
feof - test for end-of-file (AFL 2.5) 
fgets - get a string from a file (AFL 2.5) 
fopen - open a file (AFL 2.5) 
fputs - write a string to a file (AFL 2.5)

For usage see the help files

Cheers,
Graham
http://e-wire.net.au/~eb_kavan/

-----Original Message-----
From: rastarr2000 [mailto:martin@xxxxxxxxxxxxx] 
Sent: Wednesday, May 12, 2004 10:16 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] getting number of high volumes

Hi All,

I was wondering whether anyone could me ?

I'm gradually getting into the AB's AFL abilities and need a little
shove in the right direction.

I'm trying to get a count and values of a stocks volume over the last
10 days trading when that day goes over the 90 day average volume.
Could someone please give me a code snippet ?

Further, can AB reference in code an external file in either CVS or
Excel format ? 

Thanks for any help
Martin



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 
Yahoo! Groups Links



 



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/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 
Yahoo! Groups Links

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

<*> 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/