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

Re: [amibroker] Backtest - Portfolio Equity



PureBytes Links

Trading Reference Links

Ed, Thanks,
 
I got a bunch of things that require Custom Backtester ... so I better get stated on it ...
 
Ara
----- Original Message -----
Sent: Saturday, September 20, 2008 12:58 AM
Subject: Re: [amibroker] Backtest - Portfolio Equity

I think you need to do this on a custom backtest level, something like (see below).  You need to process the backtest per bar,  regards Ed
 
 
SetCustomBacktestProc("");
 
if( Status("action") == actionPortfolio ) { 
  
 bo = GetBacktesterObject();
 bo.PreProcess();
 
 for( bar = 0; bar < BarCount; bar++ ) {
 
  bo.ProcessTradeSignals( bar ); 
   // in here you need to do your calculations using
    bo.Equity; 
   
  }    
 
}
   bo.PostProcess();   
}
 
 
----- Original Message -----
To: AB-Main
Sent: Saturday, September 20, 2008 3:11 AM
Subject: [amibroker] Backtest - Portfolio Equity

Trying to use feedback from portfolio equity to control position size.
 
Portfolio level equity obtaines its value after backtest is complete. I tried to use add to composite to accumulate portfolio equity, but it gets reset with each new ewquity ... so value is same as individual equity.
 
How would one get portfolio equity before the end of backtest .... or am I missing something?
 
 
Ara

__._,_.___

Please note that this group is for discussion between users only.

To get 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




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

__,_._,___