Function overrideFrameSchema

  • Overrides an existing timeframe configuration for backtesting.

    This function partially updates a previously registered frame with new configuration. Only the provided fields will be updated, other fields remain unchanged.

    Parameters

    • frameSchema: TFrameSchema

      Partial frame configuration object

      • frameName

        Unique frame identifier (must exist)

      • interval

        Optional: Timeframe interval

      • startDate

        Optional: Start date for timeframe generation

      • endDate

        Optional: End date for timeframe generation

      • callbacks

        Optional: Callback for timeframe events

    Returns Promise<IFrameSchema>

    overrideFrame({
    frameName: "1d-backtest",
    endDate: new Date("2024-03-01T00:00:00Z"), // Only extend end date
    });