PureBytes Links
Trading Reference Links
|
Dimitris,
No you dont need StrToNum() at all. and you don't need Name()
because "" emtpy string means current symbol.
Your code therefore can be simplified to:
// Some 4.46.0 applications// Remove
symbols from WLsCategoryRemoveSymbol( "", categoryWatchlist, 30 );
CategoryRemoveSymbol( "", categoryWatchlist, 31 ); CategoryRemoveSymbol(
"", categoryWatchlist, 32 ); CategoryRemoveSymbol( "", categoryWatchlist, 33
); CategoryRemoveSymbol( "", categoryWatchlist, 34 );
CategoryRemoveSymbol( "", categoryWatchlist, 35 ); // Stochastic
O/B, O/S
criteriaOVERBOUGHT=LastValue(StochD()>70);OVERSOLD=LastValue(StochD()<30);WLNumber=IIf(OVERBOUGHT,30,IIf(OVERSOLD,32,31));//
add symbols to the respective
WLsCategoryAddSymbol(Name(),categoryWatchlist,WLNumber);//
Adv, Dec criteriaAdv=LastValue( C>Ref(C,-1) );Dec=LastValue(
C<Ref(C,-1)
);WLNumber1=IIf(Adv,33,IIf(Dec,35,34));CategoryAddSymbol(Name(),categoryWatchlist,WLNumber1);Filter=1;AddColumn(C,"C");
Best regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
Dimitris
Tsokakis
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Sunday, October 26, 2003 12:04
PM
Subject: [amibroker] Organize your
WatchLists in Daily basis
The fresh 4.46.0, Oct22, 2003 gives some excellent
possibilities to automatically organize your WatchLists.Example:Select
some Watchlists not in use, say WL30, WL31, WL32 to be the stochastic O/B,
CONGESTIVE, O/S respectively andWL33, WL34, WL35 to be the ADVISSUES,
UNCISSUES and DECISSUES respectively.Right after the new EODs
download, Explore all stocks, n=1 last quotations with
// Some 4.46.0 applications// Remove
symbols from WLsCategoryRemoveSymbol( Name(), categoryWatchlist, 30 );
CategoryRemoveSymbol( Name(), categoryWatchlist, 31 );
CategoryRemoveSymbol( Name(), categoryWatchlist, 32 );
CategoryRemoveSymbol( Name(), categoryWatchlist, 33 );
CategoryRemoveSymbol( Name(), categoryWatchlist, 34 );
CategoryRemoveSymbol( Name(), categoryWatchlist, 35 ); //
Stochastic O/B, O/S
criteriaOVERBOUGHT=StochD()>70;OVERSOLD=StochD()<30;WLNumber=IIf(OVERBOUGHT,30,IIf(OVERSOLD,32,31));z=StrToNum(NumToStr(WLNumber));//
add symbols to the respective
WLsCategoryAddSymbol(Name(),categoryWatchlist,z);//
Adv, Dec
criteriaAdv=C>Ref(C,-1);Dec=C<Ref(C,-1);WLNumber1=IIf(Adv,33,IIf(Dec,35,34));z1=StrToNum(NumToStr(WLNumber1));CategoryAddSymbol(Name(),categoryWatchlist,z1);Filter=1;AddColumn(C,"C");
then hit View->RefreshAll and all above WatchLists
will be automatically updated for further use.Through
Symbol->Categories->WatchLists->EditName you may name the respective
WatchLists.You may create now your own organization with various
conditions.
Note1: the new function CategoryAddSymbol(
symbol, category, number ) does not accept a variable inrut for
"number", but the
StrToNum(NumToStr(variable)) will overcome this
obstacle.Dimitris TsokakisSend
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Yahoo! Groups Sponsor
ADVERTISEMENT
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 the Yahoo! Terms of Service.
|