I assume
"SP.LNG SC NH Signal" is a symbol name in your database
ATS_Signal = foreign( "SP.LNG SC NH Signal","C");
--
Cheers
Graham Kav
AFL Writing Service
http://www.aflwriting.com
2009/2/9 Richard N Park <rnpark@xxxxxxxxxxnet>:
> Not very complicated. The signal plots ok.
>
>
>
> PlotForeign("SP.LNG SC NH Signal" ,"ATS
Signal",colorRed,1);
> ATS_Signal = "SP.LNG SC NH Signal";
> Buy = Cross(ATS_Signal,0);
> Sell = Cross(0,ATS_Signal);
>
>
>
> Dick
>
>
>
> ________________________________
>
> From: amibroker@xxxxxxxxxps.com
[mailto:amibroker@xxxxxxxxxps.com]
On Behalf
> Of Graham
> Sent: Sunday, February 08, 2009 6:12 PM
> To: amibroker@xxxxxxxxxps.com
> Subject: Re: [amibroker] Not an Array?
>
>
>
> Something wrong in your afl, you will need to provide the afl you are
> using to read this file
>
> --
> Cheers
> Graham Kav
> AFL Writing Service
> http://www.aflwriting.com
>
> 2009/2/9 Richard Park <rnpark@xxxxxxxxxxnet>:
>> I have a .csv signal file that I have imported as an indicator. It is
a
>> signal file that has data from 7/1/1997 to the present with dates in
>> the first column and signal values in the second column. The indicator
>> plots in a chart pane and seems to be normal.
>>
>> But when I try to use the signal file to generate buy and sell signals
>> so as to create an equity curve, I get a type mismatch error that says
>> the argument in not the required type (an array).
>>
>> Why is my "array' not an array to AmiBroker?
>>
>> Dick Park