PureBytes Links
Trading Reference Links
|
Wow, that's pretty weird.
I use setbarsrequired to two large numbers and it fixes it for me.
Wonder if one of your globals set somewhere is interfering?
My understanding (maybe wrong) is that the first or last visible bar won't change until you scroll left or right.
Because, the first or last visible bar is still the first or last visible bar on the screen. Clicking WITHIN the screen doesn't change that but scrolling and MOVING the screen does.
The only number that should change by clicking within the screen is barindex.
All but barcount should change when scrolling left and right, and that's how it works for me after I add setbarsrequired.
I used:
SetBarsRequired(1000000,1000000);
firstvisiblebar = Status("firstvisiblebar");
firstvisiblebarindex = Status("firstvisiblebarindex");
lastvisiblebar = Status("lastvisiblebar");
Lastvisiblebarindex = Status("Lastvisiblebarindex");
Title ="\nfirstvisiblebarindex= "+firstvisiblebarindex+
"\nfirstvisiblebar= "+firstvisiblebar+
"\nLastvisiblebar= "+lastvisiblebar+
"\nLastvisiblebarindex= "+Lastvisiblebarindex+
"\nBarindex= "+BarIndex()+
"\nBarcount= "+BarCount;
//Plot(C,"",2,128);
-CS
----- Original Message -----
From: Herman van den Bergen
To: amibroker@xxxxxxxxxxxxxxx
Sent: Friday, September 03, 2004 5:55 PM
Subject: RE: [amibroker] Status("firstvisiblebarindex") vs Status("firstvisiblebar")
Thanks for the numtostr tip Corey!
However SetbarsRequired makes no difference for me (and it shouldn't in this
case) and QuickAFL also makes no difference either On or Off.
Again, no matter what i do the barindexes DO NOT change when i click on the
chart at different locations so they do not behave the same as the
BarIndex() and Barcount for me. Using setbarsrequired gives me different
values but still no response to clicks (the barIndex() responds).
Did you click on the chart and see the numbers change as they do for the
barIndex()?
Frustrating; for sure it will turn out to be something really stupid :-(
thanks for testing!
herman
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> 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/
|