Hi all,
This is my first algo, let call it Robotus. It buys and sells SPY depending on market sentiment (recession, VIX, etc).
Drawdown is acceptable howerver there is a bias because history takes some time to collect bars and benchmark starts from the first day.
- There is no possibility to backtest before 01/01/2008, I have no idea what is wrong with the code.
- Reducing drawdown could be achieve with buying and selling per slice of 25% of the protfolio value using the order_percent function set to 0.25 as long signal is true but the value of the positions open becomes over portfolio (it must be the normal behavior so there is a need to implement a limit to avoid this).
Advise and comment are welcome,
Florent