PureBytes Links
Trading Reference Links
|
wow---thanks much. it works with the Sell into a different watch list.
being a newbie with AFL, there is much for me to learn. some things i get
hung up on, and just can't figure out what the problem is. there are times,
when i am misusing different commands, as you pointed out with the IF, and
the "==". This week i am going to get the Help.pdf printed at Kinko's so i
have a reference to look at....
now if only my Refresh worked....
thanks again,
ron
-----Original Message-----
From: Perry Lentine [mailto:lentino@xxxxxxxxxxx]
Sent: Sunday, April 18, 2004 7:25 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: How do i write the results of a scan or
exploration to a watchlists??
Ronbo,
Try the following:
CategoryRemoveSymbol( "", categoryWatchlist, 0 );
CategoryRemoveSymbol( "", categoryWatchlist, 1 );
Buy=Cross( MACD(), Signal() );
//Sell=Cross(Signal(), MACD() );
Filter=Buy;
AddColumn (Buy, "test");
if (LastValue(Buy) == 1)
{
CategoryAddSymbol("", categoryWatchlist, 0);
}
Using the Lastvalue() function and compare operator "==" seemed to
do it. The conditional IF needs to have numeric values to work
properly.
I hopes this answers most of your questions.
Perry
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.659 / Virus Database: 423 - Release Date: 4/15/2004
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/
|