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

[amibroker] Backtest Exposure



PureBytes Links

Trading Reference Links

I am having trouble matching the numbers for Exposure% that is
reported in the backtest report
In a simple system like this
SetTradeDelays( 0, 0, 0, 0 );
SetOption( "CommissionMode", 2 );
SetOption( "CommissionAmount", 0 );
SetOption( "initialequity", 10000 );

Buy = Month()!=Ref(Month(),-1);
Sell = Ref(Buy,-10);
BuyPrice = SellPrice = C;

The report gives 9.75%, but my excel calculation gives me 9.77%. does
not seem like much but as number of trades/symbols increases the gap
widens


Can anyone help me with this? I must be using a slightly wrong value
in the calculation but cannot see what

Exposure = sum( EndOfBarOpenTradeValues / EndOfBarEquity ) * 100 / (
NumBarsInTest * NumSymbolsThatTradedInTest )


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


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
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/