OptionalbarOn a transformed chart, 'underlying' computes on the host's bars instead of the elements drawn.
OptionalinstanceThe id to give the study, to bring a removed one back under its own identity.
OptionalpaneThe pane: an existing one, or panes().length for a new one. Default: the price pane for an overlay, a new pane otherwise.
OptionalplotA scale per plot key, for a study whose plots belong on different scales.
OptionalpolicyWhat the user may do with the study; see IndicatorPolicy.
OptionalpriceThe scale the study's plots map to on that pane.
Where
chart.addIndicatorputs a study, and how the host holds it.