So let's say I have this very simple code on quantopian:
def initialize(context):
context.stock=sid(24)
def handle_data(context, data):
order_target_percent(context.stock, -0.5)
Running the backtest from 10/24/2007 to 11/24/2007 will give a certain result.
What do i have to add in order to implement this code on a normal python IDE, with zipline installed?