Dennis,

Here is some code Tomasz posted as an example of a multiple colored MA's

//Example MA rainbow chart (bring up parameters dialog AND play with it):

side = 1;
increment = Param("Increment",2, 1, 10, 1 );
for( i = 10; i < 80; i = i + increment )
{
    up = MA( C, i );
    down = MA( C, i + increment );

   if( ParamToggle("3D effect?", "No|Yes" ) )
    side = IIf(up<=down AND Ref( up<=down, 1 ), 1, 0.6 );

   PlotOHLC( up,up,down,down, "MA"+i, ColorHSB( 3*(i - 10),
   Param("Saturation", 128, 0, 255 ),
    side * Param("Brightness", 255, 0, 255 ) ), styleCloud | styleNoLabel );
}

Regards,

Duke Jones, CMT

Dennis Brown wrote:
> Hi,
>
> I made a simple AFL FOR loop to increment through several moving  
> averages and plot them.  However, it only plots the last one of the  
> series.  Could someone explain how to make this work:
>
> FOR( i=10; i<50; i=i+10);
> {
> MAplot= MA(C,i);
> Plot (MAplot,"MA"+i,24,1);
> }
> Plot (C, "close",1,64);
>
> Thanks,
> Dennis
>
>
> 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 other support material please check also:
> http://www.amibroker.com/support.html
>
>  
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>
>
>
>   

-- 

Regards, Duke Jones, CMT


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 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:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to