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

[amibroker] Re: How to overlay a line on price?


  • Date: Mon, 22 Feb 2010 14:58:30 -0000
  • From: "droskill" <droskill@xxxxxxxxx>
  • Subject: [amibroker] Re: How to overlay a line on price?

PureBytes Links

Trading Reference Links

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("~NAMEOFMYDATA","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@xxxxxxxxxxxxxxx, Ding <lasallewashington@xxx> 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@xxx>
> To: amibroker@xxxxxxxxxxxxxxx
> 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
> >
>




------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    amibroker-digest@xxxxxxxxxxxxxxx 
    amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/