HomeKnowledge Base

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:


btop BBandTop(Close);
bbot BBandBot(Close);
Plotbbot "BBot"colorGreenstyleThick);
Plotbtop "BTop"colorGreenstyleThick); 

PlotOHLCbtopbtopbbotbbot""colorYellow,styleCloud )
– Tools -> Apply Indicator

2 Responses to “How to fill the area between two lines with a solid color”

  1. Derek
    August 17th, 2007 | 10:29 pm


    How do fill area between 2 price line over a fixed time duration(between 2 different time)?


  2. joerg
    August 21st, 2007 | 2:25 pm

    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