PureBytes Links
Trading Reference Links
|
Also, donšt forget that most data sources purge defunct stocks, changed
tickers and back adjust for splits. This will change your results. CSI Data
is the only provider I know that has deleted stocks, changed tickers and
actual prices available in their supplied data.
--
Terry
From: "Tomasz Janeczko" <amibroker@xxxxxx>
Reply-To: amibroker@xxxxxxxxxxxxxxx
Date: Tue, 26 Oct 2004 10:31:34 +0200
To: <amibroker@xxxxxxxxxxxxxxx>
Subject: Re: [amibroker] For Tomasz: Worried About AB's Algorithm for
Selecting Stocks in Backtest
Josef,
The algorithm to select stock in the basket is easy and described here:
http://www.amibroker.com/guide/h_portfolio.html
"You can use new PositionScore variable to decide which trades should be
entered if there are more entry signals on different
securities than maximum allowable number of open positions or available
funds. In such case AmiBroker will use the absolute value of
PositionScore variable to decide which trades are preferred"
If you do NOT define PositionScore variable in your formula or PositionScore
is equal for more than
one security then the order is
- larger trades first (with bigger dollar value )
- then alphabetical order
- if both buy and short occur on the same symbol then LONG trade is
preferred
Please note that to get consistent results you have to:
a) use the same data set
b) use the same settings (you can save settings to a file via "SAVE" button
in the settings page
and restore them later any time by loading them back via "LOAD" button)
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "kanowna2000" <kanowna@xxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Monday, October 25, 2004 10:32 PM
Subject: [amibroker] For Tomasz: Worried About AB's Algorithm for Selecting
Stocks in Backtest
>
>
>
> Hello Tomasz,
>
> I would like to ask a very important question. I have been doing
> backtesting using AmiBroker for a few months. I have noticed that
> when I do a backtest and then do the same backtest again on a
> different date that occasionally my results are different. This
> worries me.
>
> Here is my situation: I have created a system that I am backtesting.
> My system scans all the stocks in the 3 major American exchanges,
> involving over 8000 stocks. I have a date range which remains the
> same ALWAYS. On any specific day, there may be no stocks which
> satisfy the criteria in my system. However, on another day, there
> might be 6, for example. If there is only enough money available in
> my backtest to buy 2 stocks on that day, which 2 stocks is AB going
> to choose? In other words, what type of algorithm is AB using to
> select stocks? Is it some kind of random algorithm, or first-come,
> first-serve?
>
> Please advise. This worries me very much.
>
> Thank you.
>
> Josef
>
>
>
>
>
>
>
>
>
>
>
> Check AmiBroker web page at:
> http://www.amibroker.com/
>
> Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Sponsor
ADVERTISEMENT
<http://us.ard.yahoo.com/SIG=129lvs2uo/M=315388.5526708.6599542.3001176/D=g
roups/S=1705632198:HM/EXP=1098866023/A=2372354/R=0/SIG=12id813k2/*https://ww
w.orchardbank.com/hcs/hcsapplication?pf=PLApply&media=EMYHNL40F21004SS>
Yahoo! Groups Links
* To visit your group on the web, go to:
* http://groups.yahoo.com/group/amibroker/
*
* To unsubscribe from this group, send an email to:
* amibroker-unsubscribe@xxxxxxxxxxxxxxx
<mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>
*
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> .
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|