Since you wish to plot ALL the MAs' on the SAME time frame you can use
paramtoggle. It would work like this:

ma14=ma(c,14);
MA14_plot=ParamToggle("Plot 14BAR MA","(N) OR (Y)",0);
if(MA14_PLOT)        Plot(MA14,"14BAR_MA",colorYellow,styleThick|styleLine);
                        else
Plot(MA14,"16BAR_MA",colorYellow,styleHIDDEN|styleNoLabel|styleNoTitle);



On Sat, Jul 12, 2008 at 3:18 PM, Christopher <[EMAIL PROTECTED]> wrote:

> Hi Louis,
>
> Maybe an example, if I add a trend line and then go to the properties
> box of the trend line, at the bottom of the properties box (in the
> colour and style) is an option of "layer" where I can select where I
> choose the trend line to be seen such as only on weekly charts OR on a
> layer of my choosing that I created for a specific purpose.
>
> What I wish to do is the same thing with the ma's, I wish to plot 4
> ma's on one layer and 3 different ma's on another layer on the same
> chart on the same timeframe.
>
> Basically I don't want to see all 7 ma's at the same time. I want to
> be able to hide one or the other set and this can be done with layers
> but I don't know how to add layers to the ma's codes
>
> I hope thats a little clearer
>
> --- In [email protected], "Louis Préfontaine" <[EMAIL PROTECTED]>
> wrote:
> >
> > Hi Christopher,
> >
> > I am not sure to understand your question.  Can you be more precise?
> > Thanks,
> >
> > Louis
> >
> > 2008/7/10 Christopher <[EMAIL PROTECTED]>:
> >
> > >   Hi, I don't know if anybody can help but is there some code that
> could
> > > be added to a ma so that it can be on a particular layer (as it can be
> > > done with trend lines etc).
> > >
> > > If so what would the code be? I do play with changing others
> > > programming if I think I can but I'm not good enough (yet) to write a
> > > piece of my own.
> > >
> > > I'm awaiting that AmiBroker programming guide as that will help me
> a lot.
> > > Thanks....
> > > Chris2var
> > >
> > >
> > >
> >
>
>
>
> ------------------------------------
>
> Please note that this group is for discussion between users only.
>
> To get support from AmiBroker please send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> For other support material please check also:
> http://www.amibroker.com/support.html
> Yahoo! Groups Links
>
>
>
>

Reply via email to