Done
What is it?
Syntax
public Done(): void {
// logic after finishing the calculation
}When and Why to Use It
Example
Important Notes
Last updated
public Done(): void {
// logic after finishing the calculation
}Last updated
public Done(): void {
// Draw a horizontal line based on final SMA value
const lastIndex = 0
const finalValue = this.SMA.getValue(lastIndex)
// custom method CreateHorizontalLine
this.api.CreateHorizontalLine("FinalSMA", finalValue, "red")
}