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

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



PureBytes Links

Trading Reference Links

Jim 
Barindex() is related to the database starting at 0 for the first bar. 

Try using Status with 

"firstbarinrange" and "lastbarinrange". They return 1 (or True) on the
first/last bar of analysis range. 

"barinrange" - returns 1 when current bar is within current auto-analysis
From-To range  

"firstbarintest" and "lastbarintest" - similar to "firstbarinrange" and
"lastbarinrange" but they return the settings of last BACKTEST/OPTIMIZATION
and intermediate scans/explorations do not affect them 

Depending on what you are needing 

Cheers,
Graham
http://groups.msn.com/ASXShareTrading
http://groups.msn.com/FMSAustralia 

-----Original Message-----
From: jwilsonp2a [mailto:jimnwilson@xxxxxxxxx] 
Sent: Saturday, 22 November 2003 8:57 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] questions on barindex() and AA results display window


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/ 


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