PureBytes Links
Trading Reference Links
|
Short answer; Yes, it is possible to look forward by mistake.
You can use the "Code Check & Profile" menu item from the Tools menu of the Code Editor to do a quick look for future leaks. This can give false positives and may not cover custom looping and jscript.
Typical functions that lead to future leaks include LastValue and Ref (when using a positive argument).
Plot your signals on your chart, then scroll the chart. If you start seeing signals change, chances are you've got a future leak. Once your happy with a backtest, it is a good idea to go through every trade by hand and verify that the information to enter/exit the trade was actually available on the dates that the backtest entered/exited.
Mike
--- In amibroker@xxxxxxxxxxxxxxx, "shakerlr" <ljr500@xxx> wrote:
>
> 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/
|