Done
What is it?
Syntax
public Done(): void {
// cleanup logic here
}What Happens in Done
DoneExample
public Done() {
// custom method to remove all graphical objects created by the strategy
this.clearAllObjects();
// custom method to remove all indicators created by the strategy
this.clearAllIndicators();
// custom method to close all open positions if needed
this.closeAllPositions();
}Why It Matters
Last updated