def initialize(context):
context.stock=sid(8554)
def handle_data(context, data):
closev = history(7, "1d", "close_price")
if (closev.iloc[-2] > closev.iloc[-1] and closev.iloc[-3] > closev.iloc[-4] and closev.iloc[-1] > closev.iloc[-3] and closev.iloc[-5] > closev.iloc[-6]) and closev.iloc[-4] > closev.iloc[-5] :
order_target_percent(context.stock, 1)
This does not build. I get " SyntaxError: expected an indented block" for the last line