Hi all,
I am currently working on a modified version of the algorithm
https://www.quantopian.com/posts/how-to-build-a-pairs-trading-strategy-on-quantopian
and have encountered a problem. Whenever I try to build the algorithm, I get the following message:
There was a runtime error.
NameError: global name 'get_pricing' is not defined
...
USER ALGORITHM:34, in initialize
securities_panel = get_pricing(symbol_list, fields=['price']
If anyone can tell me why I am unable to use get_pricing(), that would be great.
symbol_list = symbols('ABT', 'ABBV', 'ACN', 'ACE', 'ADBE', 'ADT', 'AAP', 'AES', 'AET', 'AFL', 'AMG', 'A', 'GAS',
'APD', 'ARG', 'AKAM', 'AA', 'AGN', 'ALXN', 'ALLE', 'ADS', 'ALL', 'ALTR', 'MO', 'AMZN', 'AEE',
'AAL', 'AEP', 'AXP', 'AIG', 'AMT', 'AMP', 'ABC', 'AME', 'AMGN', 'APH', 'APC', 'ADI', 'AON',
'APA', 'AIV', 'AMAT', 'ADM', 'AIZ', 'T', 'ADSK', 'ADP', 'AN', 'AZO', 'AVGO', 'AVB', 'AVY',
'BHI', 'BLL', 'BAC', 'BK', 'BCR', 'BXLT', 'BAX', 'BBT', 'BDX', 'BBBY', 'BRK-B', 'BBY', 'BLX',
'HRB', 'BA', 'BWA', 'BXP', 'BMY', 'BRCM', 'BF-B', 'CHRW', 'CA', 'CVC', 'COG', 'CAM', 'CPB',
'COF', 'CAH', 'HSIC', 'KMX', 'CCL', 'CAT',)
securities_panel = get_pricing(symbol_list, fields=['price']
, start_date='2014-01-01', end_date='2015-01-01')
Cheers, Ben