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

[amibroker] weekly prices look into the future?



PureBytes Links

Trading Reference Links

I'm using the following to get a weekly price:
  c_w = TimeFrameGetPrice("C", inWeekly);

if I raise a friday's price by a factor of 10, not only does the weekly
price on that day go up, but so do the weekly prices for every day EARLIER
that week. monday's weekly price depends on the close THE FOLLOWING FRIDAY.

if weekly price figures depend on data for the rest of the days *afterwards*
in that week, they're effectively looking into the future.

this is a huge no-no for backtesting, and, unfortunately, may be the reason
some daily/weekly divergences I've been looking at backtest so well.

comments?

Dave Merrill


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/