PureBytes Links
Trading Reference Links
|
Terry --
Still moving forward:
SetForeign("FVX--X");
O=O/10; H=H/10; L=L/10; C=C/10;
Plot(C,"5yrTreas",colorBlack,1+styleOwnScale,-0.5,5);
for(i=-5;i<51;i++){
Plot(i/10,"",colorLightBlue,styleOwnScale,-0.5,5);
}
RestorePriceArrays();
Draws the lines and labels them in light blue, but the labels are _wrong_!
However, I have a fix. In Indicator Builder, change from Automatic to
Custom and set min to -0.5 and max to 5. Then the above code works
correctly. And then, in fact, the code below works just fine as well.
SetForeign("FVX--X");
O=O/10; H=H/10; L=L/10; C=C/10;
Plot(C,"5yrTreas",colorBlack); //styleOwnScale not used
for(i=-5;i<51;i++){
Plot(i/10,"",colorLightBlue); //styleOwnScale not used
// or PlotGrid(i/10,colorBack); works also
}
RestorePriceArrays();
or just:
SetForeign("FVX--X");
O=O/10; H=H/10; L=L/10; C=C/10;
Plot(C,"5yrTreas",colorBlack); //styleOwnScale not used
and check 'Middle' under grid lines for default spacing.
As for the purpose of:
Plot(C,"5yrTreas",colorBlack,1+styleOwnScale,-0.5,5);
I believe that it can be used to show a compressed plot (of secondary
interest only), if the actual grid or scale on the right hand side is
not important to you. The statement below plots the volume and its
moving average at half its max height so that it might not interfere
with a price plot on the same graph.
Vmax = LastValue(Highest(Volume))*2; // better to limit to bars in view
(for a later exercise)
Plot( V, "Volume", colorBlue, styleHistogram | styleThick |
styleOwnScale,0,Vmax);
Plot( MA( V,15), "MAV", colorLightBlue, styleOwnScale,0,Vmax);
As for 'styleLeftAxisStyle, I still don't "get it".
BTW, both Graham and Herman made interesting comments. However, they
didn't address my real problem, getting a displayed grid to properly
match a foreign equity.
Thanks to all.
-- Keith
Terry wrote:
> Keith,
>
> Please read my entire reply :--)
>
> Terry --
> Getting closer. Yes only 2 arguments (I mistook a '.' for a ',').
>
> However,
>
> SetForeign("FVX--X");
> O=O/10; H=H/10; L=L/10; C=C/10;
> Plot(C,"5yrTreas",colorBlack,1+styleOwnScale,-0.5,5);
> for(i=0;i<51;i++){
> PlotGrid(i/10,colorBlack);
> }
>
> makes a serious error.
> Terry wrote:
>
> > PlotGrid(level,color); //Probably won't work with your own scale
> >
> > or
> >
> > Plot(level,"",color,StyleOwnScale,-0.5,1.5); //Where level is the
> > number for the middle line such as 0 in this example
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
> 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=129nvkdcs/M=298184.5285298.6392945.3001176/D=groups/S=1705632198:HM/EXP=1094078282/A=2319501/R=0/SIG=11tq0u909/*http://www.netflix.com/Default?mqso=60185353&partid=5285298>
>
>
>
> ------------------------------------------------------------------------
> *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 --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/
|