def ratio_to_reference(ticker_df, ref_df, trade_date):
    """ compute the ratio between a given ticker (history) and a reference ticker (history), at trade date """
    return ticker_df.loc[trade_date, 'Close'] / ref_df.loc[trade_date, 'Close']