def check_max_drawdown(
    initial_balance: float, current_balance: float, max_drawdown: float
) -> bool:
    """
    check if the loss exceed the max given drawdown
    """
    percentage = 0.01
    max_drawdown_percentage = max_drawdown * percentage
    is_in_drawdown = False
    if current_balance < (initial_balance - initial_balance * max_drawdown_percentage):
        is_in_drawdown = True

    return is_in_drawdown