Plot properties

Where to place the indicator

In which chart will the indicator be plotted

How many plots will be addded to chart

In the case of the BB we need two Arrays (orBuffers) to store the data for the upper and lower bands. Here you can also indicate that the indicator will use 2 lines. We also will need a buffer to store the data on whether to go long or short.

“indicator_buffers” should indicate the number of arrays to use. Think of it like number of data containers that the indicator needs.

“indicator_plots” should indicate the number of plots to draw in the chart.

Plot attributures

In this section you need to define things like whether the indicator will deploy a line, its color, and the name of the line. In the case of the BB, we need two lines. Each line also need to have a unique name, because later if we want to delete them, we need to call them by their name to remove them.

All other attributes of the indictor are self explanatory. Each attribute of the indicator needs to be reference by the number at the end… like “indicator_color2” will indicate the color of the second line. “indicator_color1” the color of the first line.