Rakesh,

 

I am not following. It appears you are saying you already named some symbols
as "SF_symbol1", "SF_symbol2". Is this correct?


If so, your first line of code is looking for "SF_SF_symbolX", unless your
current symbol = "symbolX" in which case I don't see the problem.

 

You should be able to see the SF_NAME in the interpretation window since it
is just a string. See if it's correct.

--

Terry

-----Original Message-----
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Rakesh Sahgal
Sent: Monday, January 22, 2007 23:38
To: Amibroker Yahoogroup
Subject: [amibroker] String manipulation

 

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);
 

Reply via email to