# Hook: onPeriodClose()

Called when the candlestick of a watched symbol is closed. The hook is active only for the symbols with watchPeriods directive enabled and for the timeframes specified in the timeframes directive.

  • Interface
class MidaTradingSystem {
    protected onPeriodClose (period: MidaPeriod): Promise<void>;
}