Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Backward Difference Gradient

Anyone happen to know how to find the gradient of a slope via a backwards difference (Ex: funding the gradient of an exponential average at some period of time). I understand that numpy has a gradient syntax, but I am having some trouble applying it without consistently running into errors.