[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Re: Multiple stock search



PureBytes Links

Trading Reference Links

Thanks Dimitris
Works great.
Graham

----- Original Message -----
From: "dtsokakis" <TSOKAKIS@xxxx>
Date: Sunday, July 28, 2002 11:34 pm
Subject: [amibroker] Re: Multiple stock search

> Example
> Suppose you try the Stochastic CCI trading system and you have for 
> Blevel
> SEBL=15, IDTI=15 and JDSU=13 and for the respective Slevel
> SEBL=85, IDTI=82 and JDSU=84.
> Move SEBL, IDTI and JDSU is a separate watch list, say WList10.
> Scan now the whole WList10 with the formula
> P =6;
> Blevel =(Name()=="SEBL")*15+(Name()=="IDTI")*15+(Name()=="JDSU")*13;
> Slevel = (Name()=="SEBL")*85+(Name()=="IDTI")*82+(Name()=="JDSU")*84;
> StOcci=100*(CCI(P)-LLV(CCI(P),14))/(HHV(CCI(P),14)-LLV(CCI(P),14));
> stocci=MA(stocci,5);
> Buy=Cross(STOCCI,BLEVEL);
> Sell=Cross(STOCCI, Slevel); 
> Short = Sell;
> Cover = Buy;
> Buy=ExRem(Buy,Sell);Sell=ExRem(Sell,Buy);
> Short=ExRem(Short,Cover);Cover=ExRem(Cover,Short);
> and you will have the results of these stocks only.
> You may also use multiple iif statement for Blevel and Slevel.
> Dimitris Tsokakis
> --- In amibroker@xxxx, kaveman <kavemanperth@xxxx> wrote:
> > This has probably already been discussed, but I have a standard 
> search I
> > use for a short watchlist of stocks. Each stock has different 
> quantities
> > within the same indicators that I have optimized for each stock.
> > At the moment I run each stock in a separate scan to get the 
> buy/sell
> > results.
> > Is it possible to include the different stocks in a single pass scan
> > having individual search criteria.
> > As a very simple example I can have 4 stocks in a list with four
> > different moving average lengths and look for a cross of the Moving
> > average by say the close price.
> > Stock1 has cross(close,EMA(close,15);
> > Stock2 has cross(close,EMA(close,20);
> > Stock3 has cross(close,EMA(close,25);Stock4 has
> > cross(close,EMA(close,30);can I include something like an IIF 
> statement
> > for each ticker and then include the MA periods as part of that 
> using a
> > variable in the MA.
> > My actual search formula is a bit more complex, so I have just 
> used 
> a
> > simple example for discussion purposes.
> > Graham
> > 
> > 
> > ----------------
> > Powered by telstra.com
> 
> 
> ------------------------ Yahoo! Groups Sponsor --------------------
> -~-->
> Will You Find True Love?
> Will You Meet the One?
> Free Love Reading by phone!
> http://us.click.yahoo.com/7dY7FD/R_ZEAA/Ey.GAA/GHeqlB/TM
> -------------------------------------------------------------------
> --~->
> 
> 
> 
> Your use of Yahoo! Groups is subject to 
> http://docs.yahoo.com/info/terms/ 
> 
> 
> 

----------------
Powered by telstra.com