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

RE: [amibroker] coloring in bands



PureBytes Links

Trading Reference Links

Hi Guys

Thought I would share this.  The solution was provided to me by Glenn.  I am
sure this will be documented in the next major release.  However this is a
solution, using the current beta.

u2=BBandTop(C,20,2);
u3=BBandTop(C,20,3);
l2=BBandBot(C,20,2);
l3=BBandBot(C,20,3);

Plot(u3, "Upper Bollinger Band 3 stds", colorBlack );
Plot(u2, "Upper Bollinger Band 2 stds", colorBlack );

Plot(l2, "Lower Bollinger Band 2 stds", colorBlack );
Plot(l3, "Lower Bollinger Band 3 stds", colorBlack );

PlotOHLC(u3,u3,u2,u3, "Upper", ParamColor("Upper Bollinger Band",
colorLightGrey), styleCloud); 

PlotOHLC(l2,l2,l3,l2, "Lower", ParamColor("Lower Bollinger Band",
colorLightGrey), styleCloud);

Sexy or what !

Regards

Dave


-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of david
Sent: Tuesday, 28 March 2006 7:49 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] coloring in bands

Hello

I was wondering how to do something like the following, say color in the
bands between the upper second deviation and the upper third standard
deviation, say green. 

And color in the bands between the lower second deviation and the lower
third standard deviation, say red.

Example

u3=BBandTop(C,20,3);
u2=BBandTop(C,20,2);

l2=BBandBot(C,20,2);
l3=BBandBot(C,20,3);

Plot(u3, "Upper Bollinger Band 3 stds", colorBlack );
Plot(u2, "Upper Bollinger Band 2 stds", colorBlack );

Plot(l2, "Lower Bollinger Band 2 stds", colorBlack );
Plot(l3, "Lower Bollinger Band 3 stds", colorBlack );

Many thanks

Regards

Dave



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



 





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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/

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