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

[amibroker] Re: String manipulation



PureBytes Links

Trading Reference Links

Hi Terry

Thanks very much for responding. I was able to fix the problem. The error in
the code was in the first line. It should have read as follows :-

SF_NAME="SF_"+Name();

Thanks once again.

Best Regards

Rakesh


On 1/23/07, Rakesh Sahgal <rakeshsahgal@xxxxxxxxx> wrote:
>
> 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