Is there an example algo that implements the following?
- Fetch data for an signal index, such as VIX
- get history() / 200 day warmup on traded security
- start the benchmark and algo trading at the same point in time
- Run at a reasonable speed and not crash
A number of posts touch on some of these issues and then trail off without including the successful example.
Thanks
I was running a modified clone of Trading on the RSI of VIX and SPY. I had added Yahoo as my fetch source of ^VIX, and a check for open orders. It was running slowly and losing money in backtests. I was running minutely, in quick backtest mode.
So, I reverted to and exact copy of Trading on the RSI of VIX and SPY, and ran a full backtest, beginning in 2002 with $10,000. I let it run overnight, and it produced the "Something went wrong" error message, and no log output.
Try CREATED BACKTEST DATE RANGE FREQUENCY BACKTEST OVERALL RETURN STATUS
8 Jul 26 2014, 11:19 PM Jan 03 2002 - Jun 23 2014 Minute -55.9% Exception
Algo transactions begin 200 days late 2002-10-18 08:31:00
and end about 3 years in (2005-06-03 08:56:00), presumably when the Exception was thrown.
For comparison, I just launched a full backtest of the modified clone.