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

[amibroker] backtesting: is it possible to look into the "future" by mistake ?



PureBytes Links

Trading Reference Links

Just wondering.  I'm having some (not all) pretty good results with the backtester and my strategies.  I was wondering, if I may be "forward looking" because of a bug in my code and my strategies are not as good as they seem, because of my programming?

I try to avoid this by triggering all buy/sell signals at the open of the NEXT bar with:

SetTradeDelays(1,1,1,1);

Should this be sufficient enough (IGNORING any slippage for now).  

The strategies are complicated with look back periods etc.  I just don't want to "look forward" by mistake.  

What I am really asking is, if AmiBroker will "help" prevent these type of look forward errors by never allowing me to look at a bar ahead of the current bar by mistake.

Thanks.







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

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

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/