Syntax
declare upper;
Description
Enables you to place a study either on the base subgraph or on the volume subgraph. Note that a study is placed on the volume subgraph in case only volume values are used in the study. This declaration is applied by default to all studies not containing the lower
and on_volume
declarations.
Example (Price Oscillator)
declare upper;
input price = close;
input length = 9;
plot AvgWtd = wma(price, length);
In this example, the upper
declaration places the weighted moving average plot on the main chart.