def filter_dates(df, start_date, end_date):
    """Filters the DataFrame so that all ticks are
    between start_date and end_date"""
    return df[(df['date'] >= start_date) & (df['date'] <= end_date)]