[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Multiple Moving Average



PureBytes Links

Trading Reference Links

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 amibroker@xxxxxxxxxxxxxxx, "reinsley" <reinsley@xxx> wrote:
>
> 
> //------------------------------------------------------------------
------------
> //
> //  Formula Name:    Guppy moving averages
> //  Author/Uploader: Tomasz Janeczko 
> //  E-mail:          tj@xxx
> //  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 amibroker@xxxxxxxxxxxxxxx, "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
> >
>




------------------------------------

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL 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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/