That code runs at a loss during the GFC. It is a long only uptrend trader.
What about from 1 Jan 2010 to present????
$20000 loss.
There is definitely something wrong, even when I run the code during the bull market, eg 03-07, I am only getting about a 6% p/a return. I cant identify what the problem is..