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

[amibroker] "break" statement in AFL



PureBytes Links

Trading Reference Links

Title: "break" statement in AFL

Hi,

Im trying to maximize the speed of a text lookup that involves a While loop (code sample below).  The traditional way of breaking out of a While loop is to use a break statement (or something similar).    

I cant find anything similar to a break statement in AFL.   Did I miss it  Any workarounds?

Thanks and regards,

Dan.

p.s., Yes, I know that reading from a file wont be super-fast.  If I can prove my concept and see a performance hit, Ill try the Osaka plugin or something similar.


fh = fopen( "C:\\Program Files\\AmiBroker\\LookupData\\" + Symbol + ".csv ", "r");

if( fh )

        {

        while( ! feof( fh )                       )

                {

                CurRow = fgets( fh );

                if (StrExtract(CurRow, 0) == "YHEDDate")

                        sDateString = StrExtract(CurRow, 1);

                }

        fclose( fh );

}



Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





YAHOO! GROUPS LINKS