Open the Formula editor and the code should go something like this (it will vary depending on the name of your imported data):
fc = Foreign("~NAMEOFMYD ATA","C") ;
Plot(fc,"My data",colorBlue, styleLine, 1,1,0);
That's it - save it to your custom or indicator folder. Hit F5 to update the directory (or quit and restart AB), double click on the name in the indicator list.
As for why you're getting an error - not sure - can't remember if you can import negative values.
--- In amibroker@xxxxxxxxx ps.com, Ding <lasallewashington@ ...> wrote:
>
> I got an error when I tried to import the data since it has negative values. I also realize I shouldn't overlay on price chart since they have different scale. How can I display it in a separate pane just like a new indicator? thanks
>
> Ding
>
>
>
> ____________ _________ _________ __
> From: droskill <droskill@xx .>
> To: amibroker@xxxxxxxxx ps.com
> Sent: Sun, February 21, 2010 4:51:23 AM
> Subject: [amibroker] Re: How to overlay a line on price?
>
>
> Use the import wizard to bring in the file (under file menu) - there a multiple steps, and you'll assign the actual data to an existing AB field - I'd suggest the close since you want to plot it.
>
> After you've got it imported, pull up a price chart, and then use Foreign command (it's a piece of the AB language) to plot it on the price chart. You will have trouble if the scale of the imported data is considerably different from the price data you are plotting it over.
>
> --- In amibroker@xxxxxxxxx ps.com, Ding <lasallewashington@ ...> wrote:
> >
> > Hi,
> >
> > I have a data series in excel. The first column is date and the second column is the data. I want to overlay the data series on the price daily chart. How can I do this in Amibroker? thanks
> >
> > Ding
> >
>