{"id":39,"date":"2007-03-17T21:01:15","date_gmt":"2007-03-18T02:01:15","guid":{"rendered":"http:\/\/www.amibroker.com\/kb\/2007\/03\/17\/how-to-fill-the-area-between-two-lines-with-a-solid-color\/"},"modified":"2014-12-04T08:30:57","modified_gmt":"2014-12-04T13:30:57","slug":"how-to-fill-the-area-between-two-lines-with-a-solid-color","status":"publish","type":"post","link":"https:\/\/www.amibroker.com\/wordpress\/kb\/2007\/03\/17\/how-to-fill-the-area-between-two-lines-with-a-solid-color\/","title":{"rendered":"How to fill the area between two lines with a solid color"},"content":{"rendered":"

This example shows how to fill the area between Bollinger Bands with a solid color. <\/p>

To plot areas filled with solid color it is necessary to use styleCloud<\/strong> style:<\/p>

To display a new indicator – do the following:
– Analysis -> Formula Editor
– enter:
\u00a0

Plot<\/span>( <\/span>Close<\/span>, <\/span>"Price"<\/span>, <\/span>colorBlack<\/span>, <\/span>styleCandle<\/span>); 

<\/span>btop <\/span>= <\/span>BBandTop<\/span>(<\/span>Close<\/span>);
<\/span>bbot <\/span>= <\/span>BBandBot<\/span>(<\/span>Close<\/span>);
<\/span>Plot<\/span>( <\/span>bbot <\/span>, <\/span>"BBot"<\/span>, <\/span>colorGreen<\/span>, <\/span>styleThick<\/span>);
<\/span>Plot<\/span>( <\/span>btop <\/span>, <\/span>"BTop"<\/span>, <\/span>colorGreen<\/span>, <\/span>styleThick<\/span>); 

<\/span>PlotOHLC<\/span>( <\/span>btop<\/span>, <\/span>btop<\/span>, <\/span>bbot<\/span>, <\/span>bbot<\/span>, <\/span>""<\/span>, <\/span>colorYellow<\/span>,<\/span>styleCloud <\/span>)<\/code>\u00a0
\u00a0
– Tools -> Apply Indicator<\/p>","protected":false},"excerpt":{"rendered":"

This example shows how to fill the area between Bollinger Bands with a solid color.<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[53,55],"_links":{"self":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/39"}],"collection":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/comments?post=39"}],"version-history":[{"count":1,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/39\/revisions"}],"predecessor-version":[{"id":816,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/39\/revisions\/816"}],"wp:attachment":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/media?parent=39"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/categories?post=39"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/tags?post=39"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}