ChartWindowFind
Description
Syntax
public ChartWindowFind(chartId: number, name: string): numberParameters
Return Value
Example
try {
const chartId = this.api.GetCurrentChartId()
const windowNumber = this.api.ChartWindowFind(chartId, 'RSI')
if (windowNumber !== -1) {
console.log(`RSI indicator found in subwindow ${windowNumber}`)
} else {
console.log('RSI indicator not found')
}
} catch (error) {
console.error('Failed to find indicator window:', error.message)
}Last updated