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

[amibroker] Intraday data chart



PureBytes Links

Trading Reference Links




The 
number in the title, did it stay or was it 'replaced' by a permanent error 
msg? 
<FONT face=Arial color=#0000ff 
size=2> 
The 
subscript should not be out of range...any idea what is wrong with my 
code? 
<FONT face=Arial color=#0000ff 
size=2> 
I 
think the error occurs in the first two passes but not in the last. If nobody 
can correct me I'll send it to support. I think this problem was reported 
on the list more than a year ago but i can't remember/find whether there was a 
solution.
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>thanks!
<FONT face=Arial color=#0000ff 
size=2>herman

  <FONT face=Tahoma 
  size=2>-----Original Message-----From: Ara Kaloustian 
  [mailto:ara1@xxxxxxxxxx]Sent: Thursday, July 22, 2004 5:48 
  PMTo: amibroker@xxxxxxxxxxxxxxxSubject: Re: [amibroker] 
  Need help with SetBarsRequired...Importance: 
  High
  Herman,
   
  I got an answer (in title line) of 19.19 and then 
  an error message saying subscript out of range
  <BLOCKQUOTE 
  >
    ----- Original Message ----- 
    <DIV 
    >From: 
    Herman van den 
    Bergen 
    To: <A title=amibroker@xxxxxxxxxxxxxxx 
    href="">AmiBroker YahooGroups 
    Sent: Thursday, July 22, 2004 12:23 
    PM
    Subject: [amibroker] Need help with 
    SetBarsRequired...
    
    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 triggers an error msg. 
    Can 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:<A 
    href="">http://www.amibroker.com/Check 
    group FAQ at: <A 
    href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
    Check AmiBroker web page at:<A 
    href="">http://www.amibroker.com/Check 
    group FAQ at: <A 
    href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
    


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.