Answers for "how to get the lowest price quantopian"

0

how to get the lowest price quantopian

def initialize(context):  
   schedule_function(ohlcv, date_rules.week_end())  
   context.stock = sid(24)  #AAPL  
def handle_data(context,data):  
    pass

def ohlcv(context,data):  
    weekly_high = max(history(5, '1d', 'high'))  
    weekly_low = min(history(5, '1d', 'low'))  
    close_prices = history(5, '1d', 'price')  #gives close price for the last 5 days for all stocks in the algo
Posted by: Guest on April-21-2020

Code answers related to "how to get the lowest price quantopian"

Browse Popular Code Answers by Language