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

Re: RE: [amibroker] Foreign Problem



PureBytes Links

Trading Reference Links

Steve,

Candlesticks involve HIGH, LOW, OPEN and CLOSE price arrays.
Plot statement takes only ONE aray,

In User's Guide:
Tutorial: Using graph styles, colors, titles and parameters in Indicator Builder

It is written:
Note on candlestick/bar charts: these styles use indirectly O, H, L arrays.
=============================================

OHL arrays are from currently selected symbol.

That's why it works if ^VIX is selected (because OHL arrays are correct).

To plot CANDLESTICKS of FOREIGN symbol you either must use
PlotOHLC function that takes FOUR price arrays
or
PlotForeign that is a shortcut for calling Foreign 4 times and calling PlotOHLC

http://www.amibroker.com/guide/afl/afl_view.php?name=PLOTFOREIGN
http://www.amibroker.com/guide/afl/afl_view.php?name=PLOTOHLC
http://www.amibroker.com/guide/afl/afl_view.php?name=PLOT


Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "steve_almond" <steve2@xxxxxxxxxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, July 29, 2003 5:18 PM
Subject: Re: RE: [amibroker] Foreign Problem


> Thanks, Jayson. That does it.
> I had tried to use:
>
> VIX=Foreign("^VIX","X");
>
> in an attempt to get all the prices plotted.
>
> Why does my formula work if ^VIX is the base security?
>
> Steve
>
>
> >----- Original Message -----
> >From: "Jayson" <jcasavant@xxxx>
> >To: Yahoo: amibroker@xxxxxxxxxxxxxxx
> >Sent:  Tue Jul 29, 2003 4:09 pm
> >Subject: RE: [amibroker] Foreign Problem
> >
> >Steve,
> >You are trying to plot OHLC data with stylecandle yet you have only asked for Close data with your variable. Try
> >
> >
> >PlotForeign("^vix","C",4,styleCandle);
> >
> >Regards,
> >Jayson
> >-----Original Message-----
> >From: Steve Almond [mailto:steve2@xxxxxxxxxxxxxxxxxxxx]
> >Sent: Tuesday, July 29, 2003 11:01 AM
> >To: Ami
> >Subject: [amibroker] Foreign Problem
> >
> >
> >I'm trying to plot the VIX as a 'Foreign' plot in AB. If ^VIX is the base security, it works as I expect. Anything else gives a
strange plot (see attached pictures).
> >
> >Formula I'm using is simply:
> >
> >
> >
> >VIX=Foreign("^VIX","C");
> >
> >Plot(VIX,"VIX",1,styleCandle);
> >
> >
> >
> >any help appreciated,
> >
> >
> >
> >Steve
> >
> >Send BUG REPORTS to bugs@xxxxxxxxxxxxx
> >Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
> >-----------------------------------------
> >Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> >(Web page: http://groups.yahoo.com/group/amiquote/messages/)
> >--------------------------------------------
> >Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> >
> >Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
> _____________________________________________________________
> Sent by OnBoards: a bulletin board browser
> Free at http://www.automatedenterprises.com
>
>
>
>
> Send BUG REPORTS to bugs@xxxxxxxxxxxxx
> Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Toner for Your Printer or Fax at LaserTonerSuperstore.com-Save 55%!
We have your brand: HP, IBM, Canon, Xerox, Apple and many more for less!
http://www.LaserTonerSuperstore.com
http://us.click.yahoo.com/YmQqWC/qicGAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

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