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

[amibroker] Re: Coding Question



PureBytes Links

Trading Reference Links

Steve,
I have posted "A complete top10 application", Sept7, where I take the 
top10 performers of systemA and see their performance in systemB.
See if it helps, else we shall create a solution from the beginning.
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "Steve Almond" <steve2@xxxx> wrote:
> I want to backtest a system (regular backtest, not rotational) 
which has the following two parts:
> 
> 1. A simple market timing signal - let's say:
>     
>    RUT = Foreign("^RUT", "C");
>     UpTrend = EMA(RUT, 4) > EMA(RUT, 11);
> 
> 2. A scoring system. I want the scoring system to be based on 
the 'performance' of the same market timing system.  Say on 
12/31/1997 the market timing signal indicates a buy condition. I run 
a simple backtest of 1 year duration on the 100 stocks in the 
Nasdaq100, like so:
> 
>     RUT = Foreign("^RUT", "C");
>     UpTrend = EMA(RUT, 4) > EMA(RUT, 11);
>     buy=Uptrend;
>     sell=NOT uptrend;
> 
> I pick the 5 best performing stocks (say highest CAR) and use them 
going forward into 1998, until the market timing signal gives a sell 
indication, when I sell the 5 stocks. At the next market timing buy 
signal, I again pick the top 5 performers (using the simple backtest) 
over the past year. etc. etc.
> 
> It seems like some sort of feedback system.
> 
> Is it possible?
> 
> Steve


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

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 http://docs.yahoo.com/info/terms/