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

Re: [amibroker] Intraday data chart



PureBytes Links

Trading Reference Links




See my 2nd and 3rd response.
Best regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Herman van den 
  Bergen 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Friday, July 23, 2004 1:54 AM
  Subject: RE: [amibroker] Need help with 
  SetBarsRequired...
  
  <FONT face=Arial color=#0000ff 
  size=2>Tomasz, I wrote in my post that I know 
  that i can program around the problem but that doesn't help me in my real 
  application. In my real application all this stuff is embedded in 
  several levels of functions with loops and the Barnum 
  can originate from various calculations of which one is the 
  SelectedValue(Barindex()), another one that also gives the 
  error msg is LastValue(Barindex()). 
  <FONT face=Arial color=#0000ff 
  size=2> 
  Only 
  if i know clearly what the problem is would I go back and tinker 
  with the code that works nicely now with QuickAFL OFF, it makes no sense to 
  use a work around without understanding the problem.
  <FONT face=Arial color=#0000ff 
  size=2> 
  Are 
  you saying that if I use SelectedValue(Barindex()) and 
  LastValue(Barindex()) I cannot set QuickAFL ON and 
  use SetBarsRequired()? 
  <FONT face=Arial color=#0000ff 
  size=2><FONT face=Arial 
  color=#0000ff size=2> 
  <FONT face=Arial color=#0000ff 
  size=2>herman.
  
    <FONT face=Tahoma 
    size=2>-----Original Message-----From: Tomasz Janeczko 
    [mailto:amibroker@xxxxxx]Sent: Thursday, July 22, 2004 7:30 
    PMTo: amibroker@xxxxxxxxxxxxxxxSubject: Re: 
    [amibroker] Need help with SetBarsRequired...Importance: 
    High
    Hello,
     
    It is easy - no need to call SetBarsRequired - 
    just call SelectedValue on your array.
     
    
    MyCustomArray = 
    EMA(C,3); NumberFromMyCustomIndicator = SelectedValue( 
    MyCustomArray ); Title = "NumberFromMyCustomIndicator 
    ="+NumToStr(NumberFromMyCustomIndicator ,1.2);
    <FONT face=Arial 
    size=2>Best regards,Tomasz 
    Janeczkoamibroker.com
    <BLOCKQUOTE 
    >
      ----- Original Message ----- 
      <DIV 
      >From: 
      Herman van den 
      Bergen 
      To: <A 
      title=amibroker@xxxxxxxxxxxxxxx 
      href="">AmiBroker YahooGroups 
      Sent: Thursday, July 22, 2004 9: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 <FONT face="Times New Roman" 
      size=3>SelectedValue(BarIndex()) during the first the two passes 
      defaults to normal count even though QuickAFL is enabled<SPAN 
      class=500051718-22072004>, this 
      triggers an error msg. Can somebody 
      please explain how i can run this code with QuickAFL() On and 
      SetBarsRequired()? 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:<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.