Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
range of floats?

Hello, hope everyone has a good weekend, just a small problem here, kind of struggling to express a range of floating numbers in my algo.
The idea is to generate some signals out of updating trailing window of historical data. So when I'm trying to do it with just a "range" function it wouldn't generate any logs, obviously because in almost all of the cases the generated signal values have decimals and I need a range of floats so the signal can be recognised.

Would be great if someone knows how it can be done.

Sorry if the question is dumb, I'm a beginner.

2 responses

numpy.arange?

Thank you Simon!!! I came across this one earlier, will try it tonight