backtest-kit 2.2.17 → 2.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backtest-kit",
3
- "version": "2.2.17",
3
+ "version": "2.2.18",
4
4
  "description": "A TypeScript library for trading system backtest",
5
5
  "author": {
6
6
  "name": "Petr Tripolsky",
package/types.d.ts CHANGED
@@ -12562,219 +12562,258 @@ declare class RiskUtils {
12562
12562
  */
12563
12563
  declare const Risk: RiskUtils;
12564
12564
 
12565
+ /**
12566
+ * Type alias for signal storage row identifier.
12567
+ * Extracted from IStorageSignalRow for type safety and reusability.
12568
+ */
12565
12569
  type StorageId = IStorageSignalRow["id"];
12566
12570
  /**
12567
- * Utility class for managing backtest signal history.
12568
- *
12569
- * Stores trading signal history for admin dashboard display during backtesting
12570
- * with automatic initialization, deduplication, and storage limits.
12571
- *
12572
- * @example
12573
- * ```typescript
12574
- * import { StorageBacktestUtils } from "./classes/Storage";
12575
- *
12576
- * const storage = new StorageBacktestUtils();
12577
- *
12578
- * // Handle signal events
12579
- * await storage.handleOpened(tickResult);
12580
- * await storage.handleClosed(tickResult);
12581
- *
12582
- * // Query signals
12583
- * const signal = await storage.findById("signal-123");
12584
- * const allSignals = await storage.list();
12585
- * ```
12571
+ * Base interface for storage adapters.
12572
+ * All storage adapters must implement this interface.
12586
12573
  */
12587
- declare class StorageBacktestUtils {
12588
- private _signals;
12574
+ interface IStorageUtils {
12589
12575
  /**
12590
- * Initializes storage by loading existing signal history from persist layer.
12591
- * Uses singleshot to ensure initialization happens only once.
12576
+ * Handles signal opened event.
12577
+ * @param tick - The opened signal tick data
12592
12578
  */
12593
- private waitForInit;
12579
+ handleOpened(tick: IStrategyTickResultOpened): Promise<void>;
12594
12580
  /**
12595
- * Persists current signal history to storage.
12596
- * Sorts by priority and limits to MAX_SIGNALS entries.
12597
- *
12598
- * @throws Error if storage not initialized
12581
+ * Handles signal closed event.
12582
+ * @param tick - The closed signal tick data
12583
+ */
12584
+ handleClosed(tick: IStrategyTickResultClosed): Promise<void>;
12585
+ /**
12586
+ * Handles signal scheduled event.
12587
+ * @param tick - The scheduled signal tick data
12588
+ */
12589
+ handleScheduled(tick: IStrategyTickResultScheduled): Promise<void>;
12590
+ /**
12591
+ * Handles signal cancelled event.
12592
+ * @param tick - The cancelled signal tick data
12593
+ */
12594
+ handleCancelled(tick: IStrategyTickResultCancelled): Promise<void>;
12595
+ /**
12596
+ * Finds a signal by its ID.
12597
+ * @param id - The signal ID to search for
12598
+ * @returns The signal row or null if not found
12599
+ */
12600
+ findById(id: StorageId): Promise<IStorageSignalRow | null>;
12601
+ /**
12602
+ * Lists all stored signals.
12603
+ * @returns Array of all signal rows
12599
12604
  */
12600
- private _updateStorage;
12605
+ list(): Promise<IStorageSignalRow[]>;
12606
+ }
12607
+ /**
12608
+ * Constructor type for storage adapters.
12609
+ * Used for custom storage implementations.
12610
+ */
12611
+ type TStorageUtilsCtor = new () => IStorageUtils;
12612
+ /**
12613
+ * Backtest storage adapter with pluggable storage backend.
12614
+ *
12615
+ * Features:
12616
+ * - Adapter pattern for swappable storage implementations
12617
+ * - Default adapter: StoragePersistBacktestUtils (persistent storage)
12618
+ * - Alternative adapters: StorageMemoryBacktestUtils, StorageDummyBacktestUtils
12619
+ * - Convenience methods: usePersist(), useMemory(), useDummy()
12620
+ */
12621
+ declare class StorageBacktestAdapter implements IStorageUtils {
12622
+ /** Internal storage utils instance */
12623
+ private _signalBacktestUtils;
12601
12624
  /**
12602
12625
  * Handles signal opened event.
12603
- *
12604
- * @param tick - Tick result containing opened signal data
12605
- * @returns Promise resolving when storage is updated
12626
+ * Proxies call to the underlying storage adapter.
12627
+ * @param tick - The opened signal tick data
12606
12628
  */
12607
12629
  handleOpened: (tick: IStrategyTickResultOpened) => Promise<void>;
12608
12630
  /**
12609
12631
  * Handles signal closed event.
12610
- *
12611
- * @param tick - Tick result containing closed signal data
12612
- * @returns Promise resolving when storage is updated
12632
+ * Proxies call to the underlying storage adapter.
12633
+ * @param tick - The closed signal tick data
12613
12634
  */
12614
12635
  handleClosed: (tick: IStrategyTickResultClosed) => Promise<void>;
12615
12636
  /**
12616
12637
  * Handles signal scheduled event.
12617
- *
12618
- * @param tick - Tick result containing scheduled signal data
12619
- * @returns Promise resolving when storage is updated
12638
+ * Proxies call to the underlying storage adapter.
12639
+ * @param tick - The scheduled signal tick data
12620
12640
  */
12621
12641
  handleScheduled: (tick: IStrategyTickResultScheduled) => Promise<void>;
12622
12642
  /**
12623
12643
  * Handles signal cancelled event.
12624
- *
12625
- * @param tick - Tick result containing cancelled signal data
12626
- * @returns Promise resolving when storage is updated
12644
+ * Proxies call to the underlying storage adapter.
12645
+ * @param tick - The cancelled signal tick data
12627
12646
  */
12628
12647
  handleCancelled: (tick: IStrategyTickResultCancelled) => Promise<void>;
12629
12648
  /**
12630
- * Finds a signal by its unique identifier.
12631
- *
12632
- * @param id - Signal identifier
12633
- * @returns Promise resolving to signal row or null if not found
12649
+ * Finds a signal by its ID.
12650
+ * Proxies call to the underlying storage adapter.
12651
+ * @param id - The signal ID to search for
12652
+ * @returns The signal row or null if not found
12634
12653
  */
12635
12654
  findById: (id: StorageId) => Promise<IStorageSignalRow | null>;
12636
12655
  /**
12637
- * Lists all stored backtest signals.
12638
- *
12639
- * @returns Promise resolving to array of signal rows
12656
+ * Lists all stored signals.
12657
+ * Proxies call to the underlying storage adapter.
12658
+ * @returns Array of all signal rows
12640
12659
  */
12641
12660
  list: () => Promise<IStorageSignalRow[]>;
12642
- }
12643
- /**
12644
- * Utility class for managing live trading signal history.
12645
- *
12646
- * Stores trading signal history for admin dashboard display during live trading
12647
- * with automatic initialization, deduplication, and storage limits.
12648
- *
12649
- * @example
12650
- * ```typescript
12651
- * import { StorageLiveUtils } from "./classes/Storage";
12652
- *
12653
- * const storage = new StorageLiveUtils();
12654
- *
12655
- * // Handle signal events
12656
- * await storage.handleOpened(tickResult);
12657
- * await storage.handleClosed(tickResult);
12658
- *
12659
- * // Query signals
12660
- * const signal = await storage.findById("signal-123");
12661
- * const allSignals = await storage.list();
12662
- * ```
12663
- */
12664
- declare class StorageLiveUtils {
12665
- private _signals;
12666
12661
  /**
12667
- * Initializes storage by loading existing signal history from persist layer.
12668
- * Uses singleshot to ensure initialization happens only once.
12662
+ * Sets the storage adapter constructor.
12663
+ * All future storage operations will use this adapter.
12664
+ *
12665
+ * @param Ctor - Constructor for storage adapter
12669
12666
  */
12670
- private waitForInit;
12667
+ useStorageAdapter: (Ctor: TStorageUtilsCtor) => void;
12671
12668
  /**
12672
- * Persists current signal history to storage.
12673
- * Sorts by priority and limits to MAX_SIGNALS entries.
12674
- *
12675
- * @throws Error if storage not initialized
12669
+ * Switches to dummy storage adapter.
12670
+ * All future storage writes will be no-ops.
12676
12671
  */
12677
- private _updateStorage;
12672
+ useDummy: () => void;
12673
+ /**
12674
+ * Switches to persistent storage adapter (default).
12675
+ * Signals will be persisted to disk.
12676
+ */
12677
+ usePersist: () => void;
12678
+ /**
12679
+ * Switches to in-memory storage adapter.
12680
+ * Signals will be stored in memory only.
12681
+ */
12682
+ useMemory: () => void;
12683
+ }
12684
+ /**
12685
+ * Live trading storage adapter with pluggable storage backend.
12686
+ *
12687
+ * Features:
12688
+ * - Adapter pattern for swappable storage implementations
12689
+ * - Default adapter: StoragePersistLiveUtils (persistent storage)
12690
+ * - Alternative adapters: StorageMemoryLiveUtils, StorageDummyLiveUtils
12691
+ * - Convenience methods: usePersist(), useMemory(), useDummy()
12692
+ */
12693
+ declare class StorageLiveAdapter implements IStorageUtils {
12694
+ /** Internal storage utils instance */
12695
+ private _signalLiveUtils;
12678
12696
  /**
12679
12697
  * Handles signal opened event.
12680
- *
12681
- * @param tick - Tick result containing opened signal data
12682
- * @returns Promise resolving when history is updated
12698
+ * Proxies call to the underlying storage adapter.
12699
+ * @param tick - The opened signal tick data
12683
12700
  */
12684
12701
  handleOpened: (tick: IStrategyTickResultOpened) => Promise<void>;
12685
12702
  /**
12686
12703
  * Handles signal closed event.
12687
- *
12688
- * @param tick - Tick result containing closed signal data
12689
- * @returns Promise resolving when history is updated
12704
+ * Proxies call to the underlying storage adapter.
12705
+ * @param tick - The closed signal tick data
12690
12706
  */
12691
12707
  handleClosed: (tick: IStrategyTickResultClosed) => Promise<void>;
12692
12708
  /**
12693
12709
  * Handles signal scheduled event.
12694
- *
12695
- * @param tick - Tick result containing scheduled signal data
12696
- * @returns Promise resolving when history is updated
12710
+ * Proxies call to the underlying storage adapter.
12711
+ * @param tick - The scheduled signal tick data
12697
12712
  */
12698
12713
  handleScheduled: (tick: IStrategyTickResultScheduled) => Promise<void>;
12699
12714
  /**
12700
12715
  * Handles signal cancelled event.
12701
- *
12702
- * @param tick - Tick result containing cancelled signal data
12703
- * @returns Promise resolving when history is updated
12716
+ * Proxies call to the underlying storage adapter.
12717
+ * @param tick - The cancelled signal tick data
12704
12718
  */
12705
12719
  handleCancelled: (tick: IStrategyTickResultCancelled) => Promise<void>;
12706
12720
  /**
12707
- * Finds a signal by its unique identifier.
12708
- *
12709
- * @param id - Signal identifier
12710
- * @returns Promise resolving to signal row or null if not found
12721
+ * Finds a signal by its ID.
12722
+ * Proxies call to the underlying storage adapter.
12723
+ * @param id - The signal ID to search for
12724
+ * @returns The signal row or null if not found
12711
12725
  */
12712
12726
  findById: (id: StorageId) => Promise<IStorageSignalRow | null>;
12713
12727
  /**
12714
- * Lists all stored live signals.
12715
- *
12716
- * @returns Promise resolving to array of signal rows
12728
+ * Lists all stored signals.
12729
+ * Proxies call to the underlying storage adapter.
12730
+ * @returns Array of all signal rows
12717
12731
  */
12718
12732
  list: () => Promise<IStorageSignalRow[]>;
12733
+ /**
12734
+ * Sets the storage adapter constructor.
12735
+ * All future storage operations will use this adapter.
12736
+ *
12737
+ * @param Ctor - Constructor for storage adapter
12738
+ */
12739
+ useStorageAdapter: (Ctor: TStorageUtilsCtor) => void;
12740
+ /**
12741
+ * Switches to dummy storage adapter.
12742
+ * All future storage writes will be no-ops.
12743
+ */
12744
+ useDummy: () => void;
12745
+ /**
12746
+ * Switches to persistent storage adapter (default).
12747
+ * Signals will be persisted to disk.
12748
+ */
12749
+ usePersist: () => void;
12750
+ /**
12751
+ * Switches to in-memory storage adapter.
12752
+ * Signals will be stored in memory only.
12753
+ */
12754
+ useMemory: () => void;
12719
12755
  }
12720
12756
  /**
12721
- * Main storage adapter for signal history management.
12722
- *
12723
- * Provides unified interface for accessing backtest and live signal history
12724
- * for admin dashboard. Subscribes to signal emitters and automatically
12725
- * updates history on signal events.
12726
- *
12727
- * @example
12728
- * ```typescript
12729
- * import { Storage } from "./classes/Storage";
12730
- *
12731
- * // Enable signal history tracking
12732
- * const unsubscribe = Storage.enable();
12733
- *
12734
- * // Query signals
12735
- * const backtestSignals = await Storage.listSignalBacktest();
12736
- * const liveSignals = await Storage.listSignalLive();
12737
- * const signal = await Storage.findSignalById("signal-123");
12757
+ * Main storage adapter that manages both backtest and live signal storage.
12738
12758
  *
12739
- * // Disable tracking
12740
- * Storage.disable();
12741
- * ```
12759
+ * Features:
12760
+ * - Subscribes to signal emitters for automatic storage updates
12761
+ * - Provides unified access to both backtest and live signals
12762
+ * - Singleshot enable pattern prevents duplicate subscriptions
12763
+ * - Cleanup function for proper unsubscription
12742
12764
  */
12743
12765
  declare class StorageAdapter {
12744
- _signalLiveUtils: StorageLiveUtils;
12745
- _signalBacktestUtils: StorageBacktestUtils;
12746
12766
  /**
12747
- * Enables signal history tracking by subscribing to emitters.
12767
+ * Enables signal storage by subscribing to signal emitters.
12768
+ * Uses singleshot to ensure one-time subscription.
12748
12769
  *
12749
- * @returns Cleanup function to unsubscribe from all emitters
12770
+ * @returns Cleanup function that unsubscribes from all emitters
12750
12771
  */
12751
12772
  enable: (() => () => void) & functools_kit.ISingleshotClearable;
12752
12773
  /**
12753
- * Disables signal history tracking by unsubscribing from emitters.
12774
+ * Disables signal storage by unsubscribing from all emitters.
12775
+ * Safe to call multiple times.
12754
12776
  */
12755
12777
  disable: () => void;
12756
12778
  /**
12757
- * Finds a signal by ID across both backtest and live history.
12779
+ * Finds a signal by ID across both backtest and live storage.
12758
12780
  *
12759
- * @param id - Signal identifier
12760
- * @returns Promise resolving to signal row
12761
- * @throws Error if signal not found in either storage
12781
+ * @param id - The signal ID to search for
12782
+ * @returns The signal row or throws if not found
12783
+ * @throws Error if StorageAdapter is not enabled
12784
+ * @throws Error if signal is not found in either storage
12762
12785
  */
12763
12786
  findSignalById: (id: StorageId) => Promise<IStorageSignalRow | null>;
12764
12787
  /**
12765
- * Lists all backtest signal history.
12788
+ * Lists all backtest signals from storage.
12766
12789
  *
12767
- * @returns Promise resolving to array of backtest signal rows
12790
+ * @returns Array of all backtest signal rows
12791
+ * @throws Error if StorageAdapter is not enabled
12768
12792
  */
12769
12793
  listSignalBacktest: () => Promise<IStorageSignalRow[]>;
12770
12794
  /**
12771
- * Lists all live signal history.
12795
+ * Lists all live signals from storage.
12772
12796
  *
12773
- * @returns Promise resolving to array of live signal rows
12797
+ * @returns Array of all live signal rows
12798
+ * @throws Error if StorageAdapter is not enabled
12774
12799
  */
12775
12800
  listSignalLive: () => Promise<IStorageSignalRow[]>;
12776
12801
  }
12802
+ /**
12803
+ * Global singleton instance of StorageAdapter.
12804
+ * Provides unified signal storage management for backtest and live trading.
12805
+ */
12777
12806
  declare const Storage: StorageAdapter;
12807
+ /**
12808
+ * Global singleton instance of StorageLiveAdapter.
12809
+ * Provides live trading signal storage with pluggable backends.
12810
+ */
12811
+ declare const StorageLive: StorageLiveAdapter;
12812
+ /**
12813
+ * Global singleton instance of StorageBacktestAdapter.
12814
+ * Provides backtest signal storage with pluggable backends.
12815
+ */
12816
+ declare const StorageBacktest: StorageBacktestAdapter;
12778
12817
 
12779
12818
  /**
12780
12819
  * Utility class for exchange operations.
@@ -19697,4 +19736,4 @@ declare const backtest: {
19697
19736
  loggerService: LoggerService;
19698
19737
  };
19699
19738
 
19700
- export { ActionBase, type ActivePingContract, Backtest, type BacktestStatisticsModel, Breakeven, type BreakevenAvailableNotification, type BreakevenCommit, type BreakevenCommitNotification, type BreakevenContract, type BreakevenData, Cache, type CancelScheduledCommit, type CandleData, type CandleInterval, type ClosePendingCommit, type ColumnConfig, type ColumnModel, Constant, type CriticalErrorNotification, type DoneContract, type EntityId, Exchange, ExecutionContextService, type FrameInterval, type GlobalConfig, Heat, type HeatmapStatisticsModel, type IBidData, type IBreakevenCommitRow, type ICandleData, type ICommitRow, type IExchangeSchema, type IFrameSchema, type IHeatmapRow, type IMarkdownDumpOptions, type IOrderBookData, type IPartialLossCommitRow, type IPartialProfitCommitRow, type IPersistBase, type IPositionSizeATRParams, type IPositionSizeFixedPercentageParams, type IPositionSizeKellyParams, type IPublicSignalRow, type IReportDumpOptions, type IRiskActivePosition, type IRiskCheckArgs, type IRiskSchema, type IRiskSignalRow, type IRiskValidation, type IRiskValidationFn, type IRiskValidationPayload, type IScheduledSignalCancelRow, type IScheduledSignalRow, type ISignalDto, type ISignalRow, type ISizingCalculateParams, type ISizingCalculateParamsATR, type ISizingCalculateParamsFixedPercentage, type ISizingCalculateParamsKelly, type ISizingParams, type ISizingParamsATR, type ISizingParamsFixedPercentage, type ISizingParamsKelly, type ISizingSchema, type ISizingSchemaATR, type ISizingSchemaFixedPercentage, type ISizingSchemaKelly, type IStorageSignalRow, type IStrategyPnL, type IStrategyResult, type IStrategySchema, type IStrategyTickResult, type IStrategyTickResultActive, type IStrategyTickResultCancelled, type IStrategyTickResultClosed, type IStrategyTickResultIdle, type IStrategyTickResultOpened, type IStrategyTickResultScheduled, type IStrategyTickResultWaiting, type ITrailingStopCommitRow, type ITrailingTakeCommitRow, type IWalkerResults, type IWalkerSchema, type IWalkerStrategyResult, type InfoErrorNotification, Live, type LiveStatisticsModel, Markdown, MarkdownFileBase, MarkdownFolderBase, type MarkdownName, MethodContextService, type MetricStats, Notification, type NotificationModel, Partial$1 as Partial, type PartialData, type PartialEvent, type PartialLossAvailableNotification, type PartialLossCommit, type PartialLossCommitNotification, type PartialLossContract, type PartialProfitAvailableNotification, type PartialProfitCommit, type PartialProfitCommitNotification, type PartialProfitContract, type PartialStatisticsModel, Performance, type PerformanceContract, type PerformanceMetricType, type PerformanceStatisticsModel, PersistBase, PersistBreakevenAdapter, PersistCandleAdapter, PersistPartialAdapter, PersistRiskAdapter, PersistScheduleAdapter, PersistSignalAdapter, PersistStorageAdapter, PositionSize, type ProgressBacktestContract, type ProgressWalkerContract, Report, ReportBase, type ReportName, Risk, type RiskContract, type RiskData, type RiskEvent, type RiskRejectionNotification, type RiskStatisticsModel, Schedule, type ScheduleData, type SchedulePingContract, type ScheduleStatisticsModel, type ScheduledEvent, type SignalCancelledNotification, type SignalClosedNotification, type SignalData, type SignalInterval, type SignalOpenedNotification, type SignalScheduledNotification, Storage, type StorageData, Strategy, type StrategyActionType, type StrategyCancelReason, type StrategyCloseReason, type StrategyCommitContract, type StrategyEvent, type StrategyStatisticsModel, type TMarkdownBase, type TPersistBase, type TPersistBaseCtor, type TReportBase, type TickEvent, type TrailingStopCommit, type TrailingStopCommitNotification, type TrailingTakeCommit, type TrailingTakeCommitNotification, type ValidationErrorNotification, Walker, type WalkerCompleteContract, type WalkerContract, type WalkerMetric, type SignalData$1 as WalkerSignalData, type WalkerStatisticsModel, addActionSchema, addExchangeSchema, addFrameSchema, addRiskSchema, addSizingSchema, addStrategySchema, addWalkerSchema, commitBreakeven, commitCancelScheduled, commitClosePending, commitPartialLoss, commitPartialProfit, commitTrailingStop, commitTrailingTake, emitters, formatPrice, formatQuantity, get, getActionSchema, getAveragePrice, getBacktestTimeframe, getCandles, getColumns, getConfig, getContext, getDate, getDefaultColumns, getDefaultConfig, getExchangeSchema, getFrameSchema, getMode, getOrderBook, getRawCandles, getRiskSchema, getSizingSchema, getStrategySchema, getSymbol, getWalkerSchema, hasTradeContext, backtest as lib, listExchangeSchema, listFrameSchema, listRiskSchema, listSizingSchema, listStrategySchema, listWalkerSchema, listenActivePing, listenActivePingOnce, listenBacktestProgress, listenBreakevenAvailable, listenBreakevenAvailableOnce, listenDoneBacktest, listenDoneBacktestOnce, listenDoneLive, listenDoneLiveOnce, listenDoneWalker, listenDoneWalkerOnce, listenError, listenExit, listenPartialLossAvailable, listenPartialLossAvailableOnce, listenPartialProfitAvailable, listenPartialProfitAvailableOnce, listenPerformance, listenRisk, listenRiskOnce, listenSchedulePing, listenSchedulePingOnce, listenSignal, listenSignalBacktest, listenSignalBacktestOnce, listenSignalLive, listenSignalLiveOnce, listenSignalOnce, listenStrategyCommit, listenStrategyCommitOnce, listenValidation, listenWalker, listenWalkerComplete, listenWalkerOnce, listenWalkerProgress, overrideActionSchema, overrideExchangeSchema, overrideFrameSchema, overrideRiskSchema, overrideSizingSchema, overrideStrategySchema, overrideWalkerSchema, parseArgs, roundTicks, set, setColumns, setConfig, setLogger, stopStrategy, validate };
19739
+ export { ActionBase, type ActivePingContract, Backtest, type BacktestStatisticsModel, Breakeven, type BreakevenAvailableNotification, type BreakevenCommit, type BreakevenCommitNotification, type BreakevenContract, type BreakevenData, Cache, type CancelScheduledCommit, type CandleData, type CandleInterval, type ClosePendingCommit, type ColumnConfig, type ColumnModel, Constant, type CriticalErrorNotification, type DoneContract, type EntityId, Exchange, ExecutionContextService, type FrameInterval, type GlobalConfig, Heat, type HeatmapStatisticsModel, type IBidData, type IBreakevenCommitRow, type ICandleData, type ICommitRow, type IExchangeSchema, type IFrameSchema, type IHeatmapRow, type IMarkdownDumpOptions, type IOrderBookData, type IPartialLossCommitRow, type IPartialProfitCommitRow, type IPersistBase, type IPositionSizeATRParams, type IPositionSizeFixedPercentageParams, type IPositionSizeKellyParams, type IPublicSignalRow, type IReportDumpOptions, type IRiskActivePosition, type IRiskCheckArgs, type IRiskSchema, type IRiskSignalRow, type IRiskValidation, type IRiskValidationFn, type IRiskValidationPayload, type IScheduledSignalCancelRow, type IScheduledSignalRow, type ISignalDto, type ISignalRow, type ISizingCalculateParams, type ISizingCalculateParamsATR, type ISizingCalculateParamsFixedPercentage, type ISizingCalculateParamsKelly, type ISizingParams, type ISizingParamsATR, type ISizingParamsFixedPercentage, type ISizingParamsKelly, type ISizingSchema, type ISizingSchemaATR, type ISizingSchemaFixedPercentage, type ISizingSchemaKelly, type IStorageSignalRow, type IStorageUtils, type IStrategyPnL, type IStrategyResult, type IStrategySchema, type IStrategyTickResult, type IStrategyTickResultActive, type IStrategyTickResultCancelled, type IStrategyTickResultClosed, type IStrategyTickResultIdle, type IStrategyTickResultOpened, type IStrategyTickResultScheduled, type IStrategyTickResultWaiting, type ITrailingStopCommitRow, type ITrailingTakeCommitRow, type IWalkerResults, type IWalkerSchema, type IWalkerStrategyResult, type InfoErrorNotification, Live, type LiveStatisticsModel, Markdown, MarkdownFileBase, MarkdownFolderBase, type MarkdownName, MethodContextService, type MetricStats, Notification, type NotificationModel, Partial$1 as Partial, type PartialData, type PartialEvent, type PartialLossAvailableNotification, type PartialLossCommit, type PartialLossCommitNotification, type PartialLossContract, type PartialProfitAvailableNotification, type PartialProfitCommit, type PartialProfitCommitNotification, type PartialProfitContract, type PartialStatisticsModel, Performance, type PerformanceContract, type PerformanceMetricType, type PerformanceStatisticsModel, PersistBase, PersistBreakevenAdapter, PersistCandleAdapter, PersistPartialAdapter, PersistRiskAdapter, PersistScheduleAdapter, PersistSignalAdapter, PersistStorageAdapter, PositionSize, type ProgressBacktestContract, type ProgressWalkerContract, Report, ReportBase, type ReportName, Risk, type RiskContract, type RiskData, type RiskEvent, type RiskRejectionNotification, type RiskStatisticsModel, Schedule, type ScheduleData, type SchedulePingContract, type ScheduleStatisticsModel, type ScheduledEvent, type SignalCancelledNotification, type SignalClosedNotification, type SignalData, type SignalInterval, type SignalOpenedNotification, type SignalScheduledNotification, Storage, StorageBacktest, type StorageData, StorageLive, Strategy, type StrategyActionType, type StrategyCancelReason, type StrategyCloseReason, type StrategyCommitContract, type StrategyEvent, type StrategyStatisticsModel, type TMarkdownBase, type TPersistBase, type TPersistBaseCtor, type TReportBase, type TStorageUtilsCtor, type TickEvent, type TrailingStopCommit, type TrailingStopCommitNotification, type TrailingTakeCommit, type TrailingTakeCommitNotification, type ValidationErrorNotification, Walker, type WalkerCompleteContract, type WalkerContract, type WalkerMetric, type SignalData$1 as WalkerSignalData, type WalkerStatisticsModel, addActionSchema, addExchangeSchema, addFrameSchema, addRiskSchema, addSizingSchema, addStrategySchema, addWalkerSchema, commitBreakeven, commitCancelScheduled, commitClosePending, commitPartialLoss, commitPartialProfit, commitTrailingStop, commitTrailingTake, emitters, formatPrice, formatQuantity, get, getActionSchema, getAveragePrice, getBacktestTimeframe, getCandles, getColumns, getConfig, getContext, getDate, getDefaultColumns, getDefaultConfig, getExchangeSchema, getFrameSchema, getMode, getOrderBook, getRawCandles, getRiskSchema, getSizingSchema, getStrategySchema, getSymbol, getWalkerSchema, hasTradeContext, backtest as lib, listExchangeSchema, listFrameSchema, listRiskSchema, listSizingSchema, listStrategySchema, listWalkerSchema, listenActivePing, listenActivePingOnce, listenBacktestProgress, listenBreakevenAvailable, listenBreakevenAvailableOnce, listenDoneBacktest, listenDoneBacktestOnce, listenDoneLive, listenDoneLiveOnce, listenDoneWalker, listenDoneWalkerOnce, listenError, listenExit, listenPartialLossAvailable, listenPartialLossAvailableOnce, listenPartialProfitAvailable, listenPartialProfitAvailableOnce, listenPerformance, listenRisk, listenRiskOnce, listenSchedulePing, listenSchedulePingOnce, listenSignal, listenSignalBacktest, listenSignalBacktestOnce, listenSignalLive, listenSignalLiveOnce, listenSignalOnce, listenStrategyCommit, listenStrategyCommitOnce, listenValidation, listenWalker, listenWalkerComplete, listenWalkerOnce, listenWalkerProgress, overrideActionSchema, overrideExchangeSchema, overrideFrameSchema, overrideRiskSchema, overrideSizingSchema, overrideStrategySchema, overrideWalkerSchema, parseArgs, roundTicks, set, setColumns, setConfig, setLogger, stopStrategy, validate };