OnShow
What is it?
Syntax
public OnShow(): void {
// logic after showing the indicator
}When and Why to Use It
Example
Important Notes
Last updated
public OnShow(): void {
// logic after showing the indicator
}Last updated
public OnShow(): void {
// Custom method to re-draw label when the indicator is shown
this.CreateTextLabel("InfoLabel", 0, this.api.High(0), "SMA Active", "blue")
}