Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Question about Quantopian Lecture45 Sample: Basic Pairs Trading

Hello Everyone,
I'm a freshman in this community. When I studied a simple basic pair trading strategy from Quantopian Lecture45 , I met one simple question as following:
1.How I can debug this strategy step by step so that I can see each result?

For example, I want to see the prices data, how can it be possible?
def check_pair_status(context, data)
# For notational convenience
s1 = context.stock1
s2 = context.stock2

# Get pricing history  
prices = data.history([s1, s2], "price", context.long_ma_length, '1d')

Many thanks for your help