PureBytes Links
Trading Reference Links
|
Try this as scan or exploration with last quotations n=1;
MaCross = cross(ma(c,17),ma(c,30));
StoBelow = stochk(14)<30;
Buy = sum(macross,5)>0 and sum(StoBelow,5)>0
Filter = Buy;
Addcolumn(c,"close",1.3);
Cheers,
Graham
http://e-wire.net.au/~eb_kavan/
-----Original Message-----
From: bflori [mailto:bflori@xxxxxxx]
Sent: Thursday, April 08, 2004 7:22 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Next 5 days
I want to create a line of code that says "if a condition is true in
any of the last 5 days".
For instance, if a 17/30 sma crossover occurs AND IF STOCH K IS
BELOW 30 IN ANY OF THE LAST 5 DAYS,then Buy. Or simply screen for
stocks where this dual condition is present.
Any suggestions on how I write this "last 5 days condition"?
Many thanks to you gurus.
bflori@xxxxxxx
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
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/
|