Rick,
The InWatchList function
returns 1 or 0. You can use that value to convert to something else or as
criteria in other functions. This code displays the displays the direct result
of InWatchList and shows how it’s used in functions:
InWatchlistThree =
InWatchList
(
3
);
if
(InWatchlistThree
==
1
)
WatchlistThreeTrue=
"Y"
;
else
WatchlistThreeTrue=
"F"
;
AddColumn
(InWatchlistThree
,
"InWatchlistThree"
,
format =
1.0
);
AddTextColumn
(WatchlistThreeTrue ,
"WatchlistThreeTrue"
);
Note that “InWatchlistThree”
and “WatchlistThreeTrue” are just local variables.
Regards,
Dan.
From: amibroker@xxxxxxxxxxxxxxx
[mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of Rick
Sent: Wednesday, August 03, 2005
6:25 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] help with
automatic analysis
I would like to use AddColumn in an exploration to indicate if the
symbols passing the filter belong to my Watch List
3. I have tried to
use the InWatchList function but am lost when it
comes to structuring
the statement.
Thanks in advance for any help,
Rick
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
SPONSORED LINKS
YAHOO! GROUPS LINKS