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

[amibroker] String manipulation



PureBytes Links

Trading Reference Links

I am in the process of setting up a database of single stock futures. I have
allocated tickers/symbols to the stock futures on the basis of the symbols
of the underlying along with the pre-fix "SF_" .

If for instance I wish to write an AFL that will compare the close price of
the underlying with the close price of the relevant SF how do I manipluate
the strings to get foreign function to look up the correct SF ? I tried to
make the code look up the futures price using the following code but it does
not work,even though I tried to check it for accuracy by verifying the AFL
syntax. It is obvious  that my code is incorrect. Any pointers on how to
correct this will be highly appreciated.

TIA


Rakesh


SF_NAME="SF_"+"Name()";
SF_CLS=Foreign("SF_NAME","C",1);

Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.5/645 - Release Date: 1/22/2007 4:10 PM