declare lower;


Places a study on the lower subgraph. This declaration is used when your study uses values that are considerably lower or higher than price history or volume values.

Example (Price Oscillator)

declare lower;

input price = close;
input fastLength = 9;
input slowLength = 18;

plot PriceOsc = Average(price, fastLength) - Average(price, slowLength);

The example plots the difference between the two average values calculated on 9 and 18-bar intervals. The result value is lower compared to the price value. Therefore, it is reasonable to put the plot on the lower subgraph to avoid scaling the main chart.