Indicator structure
import { IndicatorImplementation } from "forex-tester-custom-indicator-api";
export default class IndicatorName extends IndicatorImplementation {
// parameters
public Init(): void {
// initialization logic
}
public Calculate(index: number): void {
// calculation logic
}
public OnParamsChange(): void {
// logic after parameters change
}
public Done(): void {
// logic after finishing the calculation
}
public OnHide(): void {
// logic after hiding the indicator
}
public OnShow(): void {
// logic after showing the indicator
}
}Description of the structure
Last updated