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

[amibroker] questions on barindex() and AA results display window



PureBytes Links

Trading Reference Links

When running backtests with a to: and from: date, I thought that the 
barindex() would return 0 on the first bar of the test, yet it is 
returning the actual bar number of the database. I have 2600 bars of 
TC2K data, and since my backtest started on 1/3/00, I am getting 
indexes of around 1600 or so. I would like to know how to determine 
that I am in the first bar of the test. It's easy if the stock 
didn't trade until after 1/3/00, then barindex()==0, but for the 
other cases, I am going nuts trying to figure out how to know I am 
in the first bar. Latching variables with Flip doesn't seem to work 
on the first bar; I guess Flip looks for a rising edge of false to 
true and doesn't work if the condition is already true on the first 
bar.

As for the AA results window, occasionally I get horizontal lines in 
the rows right in the middle of the cells. Anyone else seen that?

This is a year old Dell XPS8250 with WinXP pro; AB is 4.40.

Thanks, Jim



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