> ## Documentation Index
> Fetch the complete documentation index at: https://docs.baibaibot.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Timeframes

> Timeframes are custom time ranges to use for your backtests.

<img noZoom src="https://mintcdn.com/baibai/Q0FEDFNQDcX1j3TO/images/separator.jpg?fit=max&auto=format&n=Q0FEDFNQDcX1j3TO&q=85&s=5350c337aa3613424b48079d872b63e6" width="721" height="5" data-path="images/separator.jpg" />

## General

When backtesting your trading bots and signals on historical data, you can use custom time ranges called **Timeframes**. Timeframes allow you to test your signals on specific time ranges of an asset, such as a bull market, bear market, or sideways market.

Another good use case for Timeframes is to test your signals on specific events, such as a stock market crash or a cryptocurrency bubble period.

\[PIC] todo

<img noZoom src="https://mintcdn.com/baibai/Q0FEDFNQDcX1j3TO/images/separator-small.png?fit=max&auto=format&n=Q0FEDFNQDcX1j3TO&q=85&s=8a26d422be09963b7e375935747563ae" width="721" height="1" data-path="images/separator-small.png" />

## Groups

Timeframe Groups allow you to organize your Timeframes into categories.

<Tip>
  As an example, you could create a Timeframe Group called "Dip Buy" and add Timeframes for specific market dips of assets that you want to test your signals on.
</Tip>

\[PIC] todo

<img noZoom src="https://mintcdn.com/baibai/Q0FEDFNQDcX1j3TO/images/separator-small.png?fit=max&auto=format&n=Q0FEDFNQDcX1j3TO&q=85&s=8a26d422be09963b7e375935747563ae" width="721" height="1" data-path="images/separator-small.png" />

## Favorites

Favorites allow you to quickly access your most used Timeframes when backtesting your trading bots and signals.

\[PIC] todo

<img noZoom src="https://mintcdn.com/baibai/Q0FEDFNQDcX1j3TO/images/separator-small.png?fit=max&auto=format&n=Q0FEDFNQDcX1j3TO&q=85&s=8a26d422be09963b7e375935747563ae" width="721" height="1" data-path="images/separator-small.png" />

## Generator

The Timeframe Generator allows you to create custom Timeframes within specific start and end dates based on your own [Patterns](/sdk-reference/quick-start#patterns) or custom configuration.

\[PIC] todo
