PureBytes Links
Trading Reference Links
|
Terry --
Thanks for the help. As you suggested, using SetForeign() displays the
correct graphics.
However, the "y-axis no 'Middle' values displayed" is still the same for
both StyleOwnScale and StyleLeftAxisScale. I do have 'Middle' checked
under grid lines in Indicator Builder.
My new code looks like:
SetForeign("FVX--X");
O=O/10; H=H/10; L=L/10; C=C/10;
//I tried each of the following:
Plot(C,"5yrTreas",colorBlack,styleCandle); // now Works as expected
// the following plot but with no 'Middle' values displayed
Plot(C,"5yrTreas",colorBlack,1+styleLeftAxisScale);
Plot(C,"5yrTreas",colorBlack,1+styleLeftAxisScale,0,5);
Plot(C,"5yrTreas",colorBlack,1+styleLeftAxisScale+styleOwnScale,0,5);
Plot(C,"5yrTreas",colorBlack,1+styleOwnScale,0,5);
Plot(C,"5yrTreas",colorBlack,1+styleOwnScale);
// The following gives error message "too many arguments"
Plot(C,"5yrTreas",colorBlack,1+styleOwnScale,-0,5,1.5);
RestorePriceArrays();
-- Keith
MagicTH@xxxxxxxxxxx wrote:
> Keith,
>
> I ran your tests and have the following observations:
>
> StyleCandle, StyleBar, StylePointAndFigure...all these plots requires
> more than just the
> Close, which is all you have stored in your variable fiveC. The only
> way I know to get all the
> values is to use SetForeign, do your plots, then RestorePriceArrays().
> Thus your plots are
> being distorted due to not having those values (O,H,L).
>
> StyleOwnScale and StyleLeftAxisScale. I don't understand your
> statement "middle values
> are missing". The plots look OK to me. What middle values? Maybe you
> mean need to use
> the check boxes in the lower left area such as Middle?
>
> Also, StyleOwnScale does nothing different that not using it unless
> you specify a range to
> scale to. I've found it useful to display, for example, the Buy/Sell
> signals, which have a
> value of 1 or 0 so they are visible on a price graph which may have a
> value of 10000 if
> plotting the DOW as in Plot(Buy,"Buy",ColorBlack,StyleOwnScale,-0,5,1.5);
>
> Y axis label. Assuming you mean the values at the top of the chart
> window, this will show
> the currently selected symbol unless you change it using Title command
> or if you use
> SetForeign, it will correctly show the current Foreign Symbol. Using
> foreign just stores the
> values in your fiveC variable.
>
> Terry
>
> --- In amibroker@xxxxxxxxxxxxxxx, "keithmccombs" <kmccombs@xxxx> wrote:
> > I am trying to plot values from a 'Foreign' equity with mixed
> > success. I don't know if I am doing something wrong or have
> > encountered a bug. The actual code with commented results follow. I
> > test using only one 'Plot' statement at a time. Any and all help is
> > appreciated.
> > -- Keith
> >
> > fiveC=Foreign("FVX--X","C")/10;
> > //These plots are ok
> > Plot(fiveC,"5yr",colorGreen,styleLine);
> > //Plot(fiveC,"5yr",colorGreen,styleThick);
> > //Plot(fiveC,"5yr",colorGreen,styleDots);
> > //Plot(fiveC,"5yr",colorGreen,styleNoLine);
> > //Plot(fiveC,"5yr",colorGreen,styleStaircase);
> > //Plot(fiveC,"5yr",colorGreen,styleArea);
> > //Plot(fiveC,"5yr",colorGreen,styleHistogram);
> >
> > // below plots have one or more problems
> > // y-axis bad = mistakenly labeled y-axis using values from
> > // selected equity instead of 'fiveC'
> >
> > //Plot(fiveC,"5yr",colorGreen,styleCandle);
> > // looks like styleHistogram but thick with black outline,
> > // y-axis bad
> >
> > //Plot(fiveC,"5yr",colorGreen,styleBar);
> > // graphics ok, y-axis bad
> >
> > //Plot(fiveC,"5yr",colorGreen,stylePointAndFigure);
> > // no graphics, y-axis ok
> >
> > //Plot(fiveC,"5yr",colorGreen,styleOwnScale);
> > // graphics ok, y-axis no 'Middle' values displayed
> > //Plot(fiveC,"5yr",colorGreen,styleLeftAxisScale);
> > // graphics ok, y-axis no 'Middle' values displayed
> > // and not shown on left either
>
>
>
> Check AmiBroker web page at:
> http://www.amibroker.com/
>
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
>
> *Yahoo! Groups Sponsor*
> ADVERTISEMENT
> click here
> <http://us.ard.yahoo.com/SIG=1295te36i/M=295196.4901138.6071305.3001176/D=groups/S=1705632198:HM/EXP=1094009307/A=2128215/R=0/SIG=10se96mf6/*http://companion.yahoo.com>
>
>
>
> ------------------------------------------------------------------------
> *Yahoo! Groups Links*
>
> * To visit your group on the web, go to:
> http://groups.yahoo.com/group/amibroker/
>
> * To unsubscribe from this group, send an email to:
> amibroker-unsubscribe@xxxxxxxxxxxxxxx
> <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>
>
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/>.
>
>
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> 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/
|