PureBytes Links
Trading Reference Links
|
Hi Don,
Could you not create a custom indicator for the second price chart and
add the additional moving averages.
Here is some sample code that will create a candlestick price chart and a
252 bar moving average. Open indicator builder and create a new indicator,
enter in this code and click apply on the desired tab.
// - Code begin
Plot( MA( C, 252 ), "MA", colorGold, styleThick );
Plot( O, "Open", colorBlue, styleNoLine + styleLeftAxisScale + styleNoDraw );
Plot( H, "High", colorGreen, styleNoLine + styleLeftAxisScale + styleNoDraw );
Plot( L, "Low", colorGreen, styleNoLine + styleLeftAxisScale + styleNoDraw );
Plot( C, "Close", colorGreen, styleCandle );
Plot( V, "Vol", colorGreen, styleNoLine + styleLeftAxisScale + styleNoDraw );
GraphXSpace = 3;
Title = Name() + " " + WriteVal( DateTime(), formatDateTime ) +
" Open " + O + ", Hi " + H + ", Lo " + L + ", Close " + C + ", Volume: " + WriteVal(V,1);
// - end
You can add as many MA's as you like to the above code.
Regards,
William Peters (AmiBroker Group Moderator)
www.amitools.com
Tuesday, December 28, 2004, 12:53:57 AM, you wrote:
m> Don, the solution that I suggested will work (IF and ONLY IF)
m> The Amibroker software is able to know which chart Tab# you
m> happen to be viewing. This is not my area of interest, so I have
m> not checked to see if Amibroker has this capability. I seriously
m> doubt that the Amibroker Program is aware of which chart pane you
m> happen to be viewing. Perhaps of our friends from Down Under
m> "Australia" know about this. Ron D
m> ----- Original Message -----
m> From: donpickdonpick
m> To: amibroker@xxxxxxxxxxxxxxx
m> Sent: Monday, December 27, 2004 10:12 PM
m> Subject: [amibroker] Re: Multiple price charts - same stock
m> Have you been able to use nested IIF statements as you discuss below?
m> --- In amibroker@xxxxxxxxxxxxxxx, "mrdavis9" <mrdavis9@xxxx> wrote:
m> > Don, do you want to have the Amibroker builtin chart tab#1 showing
m> moving average #1, and the Amibroker builtin chart tab #2 showing
m> moving average #2, and Tab#3 showing moving average #3, and so on?
m> >
m> > If so, then you could do that with nested IIF( ); statements "ONLY"
m> if the Amibroker software recognizes which tab# you are currently
m> using, and I don't know if this Amibroker is aware of which chart tab#
m> you are viewing as you are viewing it.
m> >
m> > I think that Tab# recognition would ba a nice addition if Amibroker
m> does not have this ability already.
m> >
m> > Ron D
m> >
m> >
m> >
m> > ----- Original Message -----
m> > From: donpickdonpick
m> > To: amibroker@xxxxxxxxxxxxxxx
m> > Sent: Thursday, December 23, 2004 12:50 PM
m> > Subject: [amibroker] Multiple price charts - same stock
m> >
m> >
m> >
m> >
m> > I have Amibroker 4.50. How do I display one price chart with a set of
m> > moving averages and another price chart of same stock with a totally
m> > different set of moving averages? I've read the tutorial and I cannot
m> > find an answer to this.
m> >
m> > Thanks for the help.
------------------------ Yahoo! Groups Sponsor --------------------~-->
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/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/
|