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

Re: [amibroker] Using Equity to Compute Position Size



PureBytes Links

Trading Reference Links



Graham,
 
I was afraid it would come to that.
I will try that path when I have way too much time on my hands.
 
Thanks,
-CS
 
----- Original Message -----
From: Graham
Sent: Friday, May 29, 2009 8:56 PM
Subject: Re: [amibroker] Using Equity to Compute Position Size

Using Equity() or foreign(~~~EQUITY...) to change trade size during a
backtest is useless and should never be done in portfolio backtest
Equity() is only the value for single symbol over the entire history
and not feasible in a portfolio backtest simple because it is not the
equity size for a portfolio backtest, and it assumes every trade entry
signal is taken.
~~~EQUITY is composite symbol produced after a backtest has been
completed. The moment a positionsize is changed using this symbol then
the ~~~EQUITY symbol values are wrong because the equity will change
due to the altered trade results for the change trade sizes.

You can only alter the positionsize based on backtest results, ie
equity size, by using the Custom Backtest code.
There are examples of this in the various web sites devoted to code help.

Go to the help manual and read up a bit more on Portfolio Backtesting
and in particular the Portfolio Backtester Interface Reference Guide.

--
Cheers
Graham Kav
AFL Writing Service
http://www.aflwriting.com

.



__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___