Implements IPersistSignalInstance
Default file-based implementation of IPersistSignalInstance.
Features:
constructor(symbol: string, strategyName: string, exchangeName: string);
symbol: string
strategyName: string
exchangeName: string
_storage: any
Underlying file-based storage scoped to this context
waitForInit(initial: boolean): Promise<void>;
Initializes the underlying PersistBase storage. Delegates to PersistBase.waitForInit which uses singleshot.
readSignalData(): Promise<ISignalRow | null>;
Reads the persisted signal using symbol as the entity key.
writeSignalData(signalRow: ISignalRow | null): Promise<void>;
Writes the signal (or null to clear) using symbol as the entity key.