PureBytes Links
Trading Reference Links
|
Thomas,
Just what I was looking for. Thanks
Ara
--- In amibroker@xxxx, "Thomas Zmuck" <thomas.zm@xxxx> wrote:
> Hello Ara,
>
> you can make this without any improvement.
> There is a function: "inwatchlist", show below
>
> INWATCHLIST
> SYNTAX inwatchlist( listno )
>
> RETURNS NUMBER
>
> FUNCTION Checks if the stock belongs to a watch list number
> listno. If yes - the function returns 1 otherwise 0.
> EXAMPLE Filter= InWatchList( 3 ) OR InWatchList( 5 );
>
>
> Than you can run one scan for all tickers.
>
> Here is the formula and a snapshot attached.
> The formula is for EOD, but i think it should be very similar to RT.
>
> Thomas
>
>
> /*CCI(20) BULL-BEAR*/
>
> N100 = InWatchList(0); PhilInternet = InWatchList(1); AmexBiotech =
> InWatchList(2);
>
> //Watchlist 0: Nasdaq 100
>
> AddToComposite(IIf(CCI(20)>0 AND N100,1,0),"~CCI(20)W(0)","V",1);
>
> AddToComposite(IIf(CCI(20)<=0 AND N100,1,0),"~CCI(20)W(0)","I",1);
>
> AddToComposite(N100,"~CCI(20)W(0)","C",1);
>
> //Watchlist 1: Phil.Internet
>
> AddToComposite(IIf(CCI(20)>0 AND
> PhilInternet,1,0),"~CCI(20)W(1)","V",1);
>
> AddToComposite(IIf(CCI(20)<=0 AND
> PhilInternet,1,0),"~CCI(20)W(1)","I",1);
>
> AddToComposite(AmexBiotech,"~CCI(20)W(1)","C",1);
>
> //Watchlist 2: Amex Biotech
>
> AddToComposite(IIf(CCI(20)>0 AND AmexBiotech,1,0),"~CCI(20)W
(2)","V",1);
>
> AddToComposite(IIf(CCI(20)<=0 AND
> AmexBiotech,1,0),"~CCI(20)W(2)","I",1);
>
> AddToComposite(AmexBiotech,"~CCI(20)W(2)","C",1);
>
> Buy=0;
>
> //indicator - take it muliple times and modify it!
>
> bull= Foreign("~CCI(20)W(0)","V");
>
> bear= Foreign("~CCI(20)W(0)","I");
>
> Tickers = Foreign("~CCI(20)W(0)","C");
>
> Bulls = 100*bull/(bull+bear);
>
> Bears = 100*bear/(bull+bear);
>
> Plot(Bulls,"Bulls",colorGreen,1);
>
> Plot(Bears,"Bears",4,1);
>
> Title="CCI(20) Composite Market Analysis for Nasdaq100 Sum of
> Tickers:"+WriteVal(Tickers,1.0)+" "+ EncodeColor( colorGreen)+ "
> bullish: "+WriteVal(Bull,1)+"% "+EncodeColor(colorRed)+"bearish:
> "+WriteVal(Bear,1)+"% ";
>
>
>
>
>
>
>
>
>
>
>
> -----Original Message-----
> From: akaloustian [mailto:ara1@x...]
> Sent: Montag, 21. Oktober 2002 18:50
> To: amibroker@xxxx
> Subject: [amibroker] Tomasz - Suggestion
>
>
> I usually make my suggestions directly to Tomasz, but I thought
this
> forum would give every one an opportunity to add their comments...
>
> I am finding the copmposite CCI bu ll/bear pressure indicator
usefull
> for Real Time especially when used with $TICK.
>
> The limitation now is that we can run only one scan at a time.
>
> Would suggest to have a way of running the index as selected by
code,
> thus having the ability to run multiple indicators simultaneously.
>
> Example:
> Watchlist = $BTK;
> ATC routine
> Plot(ATC...)
>
> Watchlist = $SOX;
> ATC routine
> Plot(ATC...)
>
> etc
>
> Ara
>
>
>
>
>
> Yahoo! Groups Sponsor
>
> ADVERTISEMENT
>
>
<http://rd.yahoo.com/M=219695.2310151.3725769.1980433/D=egroupweb/S=17
05
>
632198:HM/A=1226184/R=0/*http://ad.doubleclick.net/jump/N879.ameritrad
e.
> yahoo/B1054521.11;sz=300x250;adc=ZHS;ord=1035218976?>
>
> <http://us.adserver.yahoo.com/l?
M=219695.2310151.3725769.1980433/D=egrou
> pmail/S=:HM/A=1226184/rand=603841491>
>
> Post AmiQuote-related messages ONLY to: amiquote@xxxx
> (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
> <http://docs.yahoo.com/info/terms/> .
|