You can't access current equity at portfolio backtests directly without
using the CBI.
But you can define the positionsize as percentage of current equity:

PositionSize = -25; // invest 25% of portfolio equity in single trade

Check out the CBI documentation if you want to access the equity bar by bar.


Thomas
www.PatternExplorer.com





-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of ezbentley
Sent: Sunday, December 28, 2008 9:31 AM
To: [email protected]
Subject: [amibroker] How to get portfolio level current equity in
backtesting?

I need to use the current total equity to calculate the position size for
each individual trade. I 
can't seem to find a good way to reliably access the value of the
portfolio-level equity. Does 
anyone know how to do this?

Thanks in advance,





------------------------------------

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

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

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

For other support material please check also:
http://www.amibroker.com/support.html

*********************************
Yahoo! Groups Links



Reply via email to