SetOutputWindow
Sets the window where the indicator will be displayed.
Syntax
SetOutputWindow(outputWindow: TOutputWindow): void
Parameters
outputWindow
- A value from the TOutputWindow enum specifying where the indicator should be displayed.
Return Value
This method does not return a value.
Description
The SetOutputWindow
method determines where the indicator will be displayed on the chart. Indicators can be displayed either in the main chart window or in a separate window below the main chart.
See TOutputWindow for the complete list of available window types.
Example
// Display indicator in the main chart window (like Moving Averages, Bollinger Bands)
this.api.SetOutputWindow(TOutputWindow.CHART_WINDOW);
// Display indicator in a separate window (like RSI, MACD, Stochastic)
this.api.SetOutputWindow(TOutputWindow.SEPARATE_WINDOW);
Last updated