I want to find at which position the min price is there in the history data
def initialize(context):
context.security = symbol('SPY')
set_benchmark(symbol('SPY'))
schedule_function(func=trade, date_rule=date_rules.every_day(), time_rule=time_rules.market_open(minutes=1))
pass
def trade(context, data):
days = 7
dump = history(bar_count=(days), frequency='1d', field='price')
price_min = dump[context.security].min()
log.info(price_min)
#How do I find the N where N is Nth position of price_max ? in dump
def handle_data(context, data):
pass