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

Re: [amibroker] The #include re-read work-around ... Stopped working !



PureBytes Links

Trading Reference Links




Hello,
 
It is EXECUTED EVERYTIME.
===================
 
But the content of #included file is cached for performance 
reasons during
first execution. It will be re-read only on change of the 
formula in AA window.
 

This is so because disk operations are much slower than 
in-memory operations, so caching #included
files brings improved performance.
 
The idea is that you work in AA window and #included files 
contain TESTED code that does not require
changes every AA run.
 
The workflow is as follows: you work on your formula (or 
user-defined functions). Once you consider
some part of it as "complete and tested" you can move it to 
#included file.
 
Best regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  <A title=gkavanagh@xxxxxxxxxxxxx 
  href="">Graham 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Saturday, May 10, 2003 7:21 
AM
  Subject: RE: [amibroker] The #include 
  re-read work-around ... Stopped working !
  
  
  <SPAN 
  >If #include is not executed with 
  every execution of the AFL it is not doing what it should do and that is to be 
  executed with the AFL execution.
  <SPAN 
  > 
  
  <FONT face="Times New Roman" color=teal 
  size=3><SPAN 
  >Cheers,<FONT 
  color=teal size=3><SPAN 
  >Graham
  <FONT 
  face="Times New Roman" color=#339966 size=2><SPAN 
  ><A 
  href=""><SPAN 
  >http://groups.msn.com/ASXShareTrading
  <FONT 
  face="Times New Roman" color=#339966 size=2><SPAN 
  ><A 
  href=""><SPAN 
  >http://groups.msn.com/FMSAustralia
  <SPAN 
  >-----Original 
  Message-----From: Bob Jagow 
  [mailto:bjagow@xxxxxxxxxxx] <SPAN 
  >Sent: Saturday, 10 May 2003 1:10 
  PMTo: 
  amibroker@xxxxxxxxxxxxxxx<SPAN 
  >Subject: RE: [amibroker] The #include 
  re-read work-around ... Stopped working !
  <FONT face="Times New Roman" 
  size=2> 
  
  <FONT face="Times New Roman" 
  color=navy size=2>Any possible 
  reason why <SPAN 
  >the #include file should be re-read for every 
  execution (invocation) of the program that contains the #include 
  statement?
  
  <FONT face="Times New Roman" 
  size=2>I suspect you'd find the same "bug" in 
  any current language. 
  
    <P class=MsoNormal 
    ><FONT 
    face=Tahoma size=2><SPAN 
    >-----Original 
    Message-----From: Salil V 
    Gangal [mailto:salil_gangal@xxxxxxxxx]<SPAN 
    >Sent: Friday, May 09, 2003 9:49 
    PMTo: 
    amibroker@xxxxxxxxxxxxxxx<SPAN 
    >Subject: RE: [amibroker] The #include 
    re-read work-around ... Stopped working !
    
    
    <FONT 
    face="Times New Roman" color=#ff409f size=2><SPAN 
    >Dingo,
    
    <FONT face="Times New Roman" 
    size=2> 
    
    <FONT face="Times New Roman" 
    size=2>I was developing script for last 1/2 
    hour. For every execution I was adding a space in the script containing 
    #include statement.  I must have executed it 15 to 20 times. And now 
    looks like AmiBroker is no longer re-reading the #include file, evenif I am 
     adding / deleting spaces and adding deleting some trivial strings. I 
    saved and re-loaded the 'Formula' file a couple of time also.  Looks 
    like the work-around has stopped working.
    
    <FONT face="Times New Roman" 
    size=2> 
    
    <FONT face="Times New Roman" 
    size=2>Any other work-around short of exiting 
    AmiBroker and invoking it again ?
    
    <FONT face="Times New Roman" 
    size=2> 
    
    <FONT face="Times New Roman" 
    size=2>Regards,
    
    <FONT face="Times New Roman" 
    size=2> 
    
    <FONT face="Times New Roman" 
    size=2>- <FONT 
    face="Times New Roman" color=#4040ff><SPAN 
    >Salil V 
    Gangal
    <FONT face="Times New Roman" 
    size=2><SPAN 
    >Salil V Gangal 
    <salil_gangal@xxxxxxxxx> wrote: 
    
    
    <FONT 
    face="Times New Roman" color=#ff409f size=2><SPAN 
    >Dingo,
    
    <FONT face="Times New Roman" 
    size=2> 
    
    <FONT face="Times New Roman" 
    size=2>Oh ... okay.
    
    <FONT face="Times New Roman" 
    size=2> 
    
    <FONT face="Times New Roman" 
    size=2>Thanks for the work-around. Just adding 
    a space forced the re-reading.
    
    <FONT face="Times New Roman" 
    size=2> 
    
    <FONT face="Times New Roman" 
    size=2>Regards,
    
    <FONT face="Times New Roman" 
    size=2> 
    
    <FONT face="Times New Roman" 
    size=2>- <FONT 
    face="Times New Roman" color=#4040ff><SPAN 
    >Salil V 
    Gangal
    <FONT face="Times New Roman" 
    size=2><SPAN 
    >dingo 
    <dingo@xxxxxxxxxx> wrote: 
    
    <FONT face=Arial color=blue 
    size=2>TJ 
    reported that it worked the way as you describe. So it is "by design".  
    You need to change the formula in the AA window (add a space) or reload the 
    formula to get it to re-read the Included file.  
    
    
    <FONT face="Times New Roman" 
    size=2> 
    
    <FONT face=Arial color=blue 
    size=2>see 
    msg 37177.
    
    <FONT face="Times New Roman" 
    size=2> 
    
    <FONT face=Arial color=blue 
    size=2><SPAN 
    >d
    <BLOCKQUOTE 
      ><P 
      class=MsoNormal 
      ><FONT 
      face=Tahoma size=2><SPAN 
      >-----Original 
      Message-----From: Salil 
      V Gangal [mailto:salil_gangal@xxxxxxxxx] <SPAN 
      >Sent: Friday, May 09, 2003 11:13 
      PMTo: 
      amibroker@xxxxxxxxxxxxxxx<SPAN 
      >Subject: [amibroker] The #include 
      does not get re-read for each execution ?
      
      <FONT 
      face="Times New Roman" color=#ff409f size=2><SPAN 
      >Tomasz,
      
      <FONT face="Times New Roman" 
      size=2> 
      
      <FONT face="Times New Roman" 
      size=2>It looks as if the #include file 
      is not getting re-read from the for every execution (invocation) of the 
      program that contains the #include statement.  It looks 
      like a bug.
      
      <FONT face="Times New Roman" 
      size=2> 
      
      <FONT face="Times New Roman" 
      size=2>Create a .AFL file with text 
      (say)
      
      <FONT face="Times New Roman" 
      size=2> 
      
      <FONT face="Times New Roman" 
      size=2>"Hello 
      World!";
      
      <FONT face="Times New Roman" 
      size=2> 
      
      <FONT face="Times New Roman" 
      size=2>And include this above file using 
      #include in (say) the 'Guru Formula' and get the commentary.  It 
      will contain the string Hello World!
      
      <FONT face="Times New Roman" 
      size=2> 
      
      <FONT face="Times New Roman" 
      size=2>Now change the disk file 
      without exiting 
      AmiBroker  to contain the string following string 
      and save it to 
      disk.
      
      <FONT face="Times New Roman" 
      size=2> 
      
      <FONT face="Times New Roman" 
      size=2>"Hello World! Hello 
      World!";
      
      <FONT face="Times New Roman" 
      size=2> 
      
      <FONT face="Times New Roman" 
      size=2>Flip to 'Guru' Formula and click 
      'Apply'  ... the string that's show in the commentary still is a 
      single Hello World! rather than double Hello 
World!
      
      <FONT face="Times New Roman" 
      size=2> 
      
      <FONT face="Times New Roman" 
      size=2>Regards,
      
      <FONT face="Times New Roman" 
      size=2> 
      
      <FONT face="Times New Roman" 
      size=2>- <FONT 
      face="Times New Roman" color=#4040ff><SPAN 
      >Salil V 
      Gangal
      <DIV class=MsoNormal  
      align=center><SPAN 
      >
      
      
      <FONT face="Times New Roman" 
      size=2>Do you Yahoo!?<A 
      href="">The 
      New Yahoo! Search - Faster. Easier. Bingo. 
      Send BUG REPORTS to 
      bugs@xxxxxxxxxxxxx<SPAN 
      >Send 
      SUGGESTIONS to suggest@xxxxxxxxxxxxx<FONT 
      face="Courier New">-----------------------------------------<FONT 
      face="Courier New">Post AmiQuote-related messages ONLY to: 
      amiquote@xxxxxxxxxxxxxxx (Web 
      page: <A 
      href="">http://groups.yahoo.com/group/amiquote/messages/)<FONT 
      face="Courier New">--------------------------------------------<FONT 
      face="Courier New">Check group FAQ at: <A 
      href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
      Your use of Yahoo! Groups is subject 
      to the Yahoo! Terms of 
      Service. 
    <FONT face="Times New Roman" 
    size=2><FONT 
    face="Courier New">Send BUG REPORTS to bugs@xxxxxxxxxxxxx<FONT 
    face="Courier New"><FONT 
    face="Courier New">Send SUGGESTIONS to 
    suggest@xxxxxxxxxxxxx<FONT 
    face="Courier New">-----------------------------------------<FONT 
    face="Courier New">Post AmiQuote-related messages ONLY to: 
    amiquote@xxxxxxxxxxxxxxx (Web 
    page: <A 
    href="">http://groups.yahoo.com/group/amiquote/messages/)<FONT 
    face="Courier New">--------------------------------------------<FONT 
    face="Courier New">Check group FAQ at: <A 
    href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
    Your use of Yahoo! Groups is subject to 
    the Yahoo! Terms of 
    Service. 
    <DIV class=MsoNormal  
    align=center><SPAN 
    >
    
    
    <FONT face="Times New Roman" 
    size=2>Do you Yahoo!?<A 
    href="">The New 
    Yahoo! Search - Faster. Easier. Bingo. <FONT 
    face="Courier New">Send BUG REPORTS to bugs@xxxxxxxxxxxxx<FONT 
    face="Courier New"><FONT 
    face="Courier New">Send SUGGESTIONS to 
    suggest@xxxxxxxxxxxxx<FONT 
    face="Courier New">-----------------------------------------<FONT 
    face="Courier New">Post AmiQuote-related messages ONLY to: 
    amiquote@xxxxxxxxxxxxxxx (Web 
    page: <A 
    href="">http://groups.yahoo.com/group/amiquote/messages/)<FONT 
    face="Courier New">--------------------------------------------<FONT 
    face="Courier New">Check group FAQ at: <A 
    href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
    Your use of Yahoo! Groups is subject to 
    the Yahoo! Terms of 
    Service. 
    <DIV class=MsoNormal  
    align=center><SPAN 
    >
    
    
    <FONT face="Times New Roman" 
    size=2>Do you Yahoo!?<A 
    href="">The New 
    Yahoo! Search - Faster. Easier. Bingo. <FONT 
    face="Courier New">Send BUG REPORTS to bugs@xxxxxxxxxxxxx<FONT 
    face="Courier New"><FONT 
    face="Courier New">Send SUGGESTIONS to 
    suggest@xxxxxxxxxxxxx<FONT 
    face="Courier New">-----------------------------------------<FONT 
    face="Courier New">Post AmiQuote-related messages ONLY to: 
    amiquote@xxxxxxxxxxxxxxx (Web 
    page: <A 
    href="">http://groups.yahoo.com/group/amiquote/messages/)<FONT 
    face="Courier New">--------------------------------------------<FONT 
    face="Courier New">Check group FAQ at: <A 
    href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
    Your use of Yahoo! Groups is subject to 
    the Yahoo! Terms of 
    Service. 
  <FONT face="Times New Roman" 
  size=2><SPAN 
  ><FONT 
  face="Courier New">Send BUG REPORTS to bugs@xxxxxxxxxxxxx<FONT 
  face="Courier New"><FONT 
  face="Courier New">Send SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx<FONT 
  face="Courier New">-----------------------------------------<FONT 
  face="Courier New">Post AmiQuote-related messages ONLY to: 
  amiquote@xxxxxxxxxxxxxxx (Web 
  page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)<FONT 
  face="Courier New">--------------------------------------------<FONT 
  face="Courier New">Check group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  Your use of Yahoo! Groups is subject to 
  the Yahoo! Terms of 
  Service. 
  Send 
  BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  Your use of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor












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