RemoveIndicator
Description
Syntax
public RemoveIndicator(
chartId: number,
subWindow: number,
indicatorShortName: string
): booleanParameters
Return Value
Example
Last updated
public RemoveIndicator(
chartId: number,
subWindow: number,
indicatorShortName: string
): booleanLast updated
const chartId = this.api.GetCurrentChartId()
try {
const removed = this.api.RemoveIndicator(chartId, 0, 'MA')
if (removed) {
console.log('Moving Average indicator removed successfully')
}
} catch (error) {
console.error('Failed to remove indicator:', error.message)
}