Suppose we have
schedule_function(rebalance,
date_rules.every_day(),
time_rules.market_open(minutes = 20))
and then
def rebalance(context,data):
H = data.history(context.secs, fields="high", bar_count=5, frequency="1d")
is yesterday's high now accessed as H.iloc[-1] or H.iloc[-2] ?
Many thanks in advance.