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

RE: [amibroker] Need help with SetBarsRequired...



PureBytes Links

Trading Reference Links




Sorry to raise this 
topic once more...but could some kind soul please turn ON QuickAFL and run the 
example code below in an Indicator by 
pressing APPLY? <SPAN 
class=500051718-22072004>In the AB Status bar it says it retrieved 89815 bars 
(RT data), <SPAN 
class=500051718-22072004>Using DebugView, 
w<SPAN 
class=500051718-22072004>ith QuickAFL Enabled, 
pressing Apply gives me these numbers:
<SPAN 
class=500051718-22072004> 
<SPAN 
class=500051718-22072004>[1704] # 
BarNum=75,988  BarCount=75989[1704] # BarNum=75,918  
BarCount=75989[1704] # BarNum=75,918  
BarCount=483<SPAN 
class=500051718-22072004>
It appears that the BarCount returned by 
SelectedValue(BarIndex()) during the 
first the two passes defaults to normal count even though QuickAFL is 
enabled, this<SPAN 
class=500051718-22072004> triggers an error msg. C<SPAN 
class=500051718-22072004>an somebody please explain how i can run this code 
with QuickAFL() On and SetBarsRequired()?<SPAN 
class=500051718-22072004> I know that i can program around the problem but 
that doesn't help me in my real application. 
<SPAN 
class=500051718-22072004><FONT 
size=2> 
<FONT face=Arial 
size=2>Your help will be much appreciated!
<FONT face=Arial 
size=2>herman.
<SPAN 
class=500051718-22072004> 



SetBarsRequired( 100,10);
MyCustomArray = EMA(C,3); BarNum = 
SelectedValue(BarIndex()); // i want to read the value at the 
cursorNumberFromMyCustomIndicator = MyCustomArray [Barnum]; Title = 
"NumberFromMyCustomIndicator ="+NumToStr(NumberFromMyCustomIndicator 
,1.2);
//_TRACE("# 
BarNum="+NumToStr(BarNum,1.0)+"  
BarCount="+NumToStr(BarCount,1.0,False));





Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html








Yahoo! Groups Sponsor


  ADVERTISEMENT 












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 the Yahoo! Terms of Service.