That code is obsolete. The preferred way of doing this is to use the 
Plot statement as follows:

/* blue lines */
Plot(MA( Close, 3 ), "MA3", colorBlue);
Plot(MA( Close, 5 ), "MA5", colorBlue);
Plot(MA( Close, 8 ), "MA8", colorBlue);
Plot(MA( Close, 12 ), "MA12", colorBlue);
Plot(MA( Close, 15 ), "MA15", colorBlue);

/* red lines */
Plot(MA( Close, 30 ), "MA30", colorRed);
... etc. 

Mike

--- In [email protected], "reinsley" <reins...@...> wrote:
>
> 
> //------------------------------------------------------------------
------------
> //
> //  Formula Name:    Guppy moving averages
> //  Author/Uploader: Tomasz Janeczko 
> //  E-mail:          t...@...
> //  Date/Time Added: 2001-06-16 08:38:56
> //  Origin:          Originally developed by Darryl Guppy
> //  Keywords:        moving average
> //  Level:           basic
> //  Flags:           indicator
> //  Formula URL:     http://www.amibroker.com/library/formula.php?
id=17
> //  Details URL:     http://www.amibroker.com/library/detail.php?
id=17
> //
> //------------------------------------------------------------------
------------
> //
> //  A set of moving averages of different periods. An example on 
using
> multiple
> //  graphs in single indicator window.
> //
> //------------------------------------------------------------------
------------
> 
> MaxGraph = 10;
> /* blue lines */
> Graph0= MA( Close, 3 );
> Graph1= MA( Close, 5 );
> Graph2= MA( Close, 8 );
> Graph3 = MA( Close, 12 );
> Graph4 = MA( Close, 15 );
> Graph0Style = Graph1Style = Graph2Style = Graph3Style =Graph4Style = 
1;
> Graph0Color = Graph1Color = Graph2Color = Graph3Color =Graph4Color = 
7;
> 
> /* red lines */
> Graph5= MA( Close, 30 );
> Graph6= MA( Close, 35 );
> Graph7= MA( Close, 40 );
> Graph8 = MA( Close, 45 );
> Graph9 = MA( Close, 50 );
> Graph5Style = Graph6Style = Graph7Style = Graph8Style =Graph9Style = 
1;
> Graph5Color = Graph6Color = Graph7Color = Graph8Color =Graph9Color = 
5;
> 
> 
> 
> --- In [email protected], "kml_soni1973" <kml_soni1973@> 
wrote:
> >
> > Hi,
> > Anybody can help me regarding How to add more than 3 moving 
average
> > (default) on the chart. I will be thankful to him, who help me in 
this 
> > regard.
> > 
> > Thanks,
> > With regard,
> > Kamal
> >
>



Reply via email to