Hello together,
Unfortunately I'm new to Python and Quantopian, and I'm currently struggling with following problem:
How can I calculate the standard deviation for the price difference (in %) over let's say 50 days?
standard_dev = context.diff_perc.stddev(context.period)
That was my unsuccessful try.
THX 4 your help
Peter