You can use ChartChange() to remove an indicator from a chart. This removes a type of indicator.
The extra settings in the call to
| Property | Description |
| indicatorType | The class name of an indicator in the FXB.ta library, such as |
| indicatorSettings | Optional. Calculation parameters to match against the indicators to remove. If |
For example, to remove all instances of the RSI indicator from a chart:
Framework.ChartChange({
mode: "active", // or "all", or "single" plus a .chartId value
command: "remove-indicator",
indicatorType: "RSI"
});
Same effect:
Framework.ChartChange({
mode: "active", // or "all", or "single" plus a .chartId value
command: "remove-indicator",
indicatorType: "RSI",
indicatorSettings: {}
});
The optional
// Remove all EMA indicators where the bar-period is 10
// (leaving EMA indicators where the period is any other value)
Framework.ChartChange({
mode: "active", // or "all", or "single" plus a .chartId value
command: "remove-indicator",
indicatorType: "EMA",
indicatorSettings: {
period: 10
}
});
It is not compulsory to supply all the calculation parameters which the
// Removes all instances of the MACD indicator which have 26 for
// their "slow" period, regardless of their "fast" period, their "smoothing" etc.
Framework.ChartChange({
mode: "active", // or "all", or "single" plus a .chartId value
command: "remove-indicator",
indicatorType: "MACD",
indicatorSettings: {
slow: 26
}
});