Hi all,
How it is possible that the leverage will be bigger then 1 (cash<0) in the attached algo?
As I had read that the cause of this is the difference between prices between days, and the solution was to invest only 90% of the money (in line 113 to put 0.9 instead of 1.0) https://www.quantopian.com/posts/negative-cash
But it is not help, there is an idea?
And excuse me for English, it's not my first language.
Thanks.