March 17, 2007
How to fill the area between two lines with a solid color
This example shows how to fill the area between Bollinger Bands with a solid color.
To plot areas filled with solid color it is necessary to use styleCloud style:
To display a new indicator – do the following:
– Analysis -> Formula Editor
– enter:
Plot( Close, "Price", colorBlack, styleCandle);
btop = BBandTop(Close);
bbot = BBandBot(Close);
Plot( bbot , "BBot", colorGreen, styleThick);
Plot( btop , "BTop", colorGreen, styleThick);
PlotOHLC( btop, btop, bbot, bbot, "", colorYellow,styleCloud )
– Tools -> Apply Indicator
Filed by AmiBroker Support at 9:01 pm under Indicators
2 Comments
Hi,
How do fill area between 2 price line over a fixed time duration(between 2 different time)?
Regards,
What shall i do if i want to fill the area between two EMAs with two different colors depending wether the longer EMA is above or below the shorter EMA. So the “cloudcolor” will change from red to green e.g.
Thanks in advance