Hi i'm trying to learn quantopian and I've made a Pipeline that scans for stocks greater than $100. How do I get the program to buy those stocks?
def before_trading_start(context, data):
# Access results using the name passed to `attach_pipeline`.
context.output = pipeline_output('my_pipeline')
print context.output.head(5)
# Store pipeline results for use by the rest of the algorithm.
#context.pipeline_results = results
def handle_data(context, data):
order(context.output, 1)
pass
the order function doesn't work so I don't know exactly what to do.