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

[amibroker] minor bug in backtester report



PureBytes Links

Trading Reference Links

AB 5.00.1 

i am backtesting a fairly simple system, using intraday data.

i have 3 stops setup like this:

Sell=False;

ApplyStop( stopTypeNBar, stopModeBars, 100,False ); 

ApplyStop(stopTypeProfit, 
          stopModePercent, 
          ProfitPercent); 

ApplyStop(stopTypeLoss, 
         stopModePercent, 
         LossPercent); 

when i backtest for a "current symbol", all works well and stops are 
executed properly.

however, when i backtest for "all symbols", the NBar stops are 
sometimes not working properly and always reporting incorrectly... 
trades are getting stopped out at all different numbers of bars, 
greater than 100. ie. 222, 264, 270 .. even the same symbols that 
work with current symbol are reporting to be stopping out all screwed 
up with all symbols...

further inspection has shown that the "# bars" displayed in the 
analysis report is actually the bug. it should always say "100" but 
its saying all those random numbers. the system does appear to be 
stopping correctly... i went in there and counted the actual number 
of bars between the green and red arrows. i did encounter one 
instance where it didnt stop out correctly at 100 bars. 
unfortunately, i havent been able to reproduce this, so i am 
pretending it didnt happen for now. 

Damian














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

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/