Open nlothian opened 4 years ago
Looking over the code the abcd strategy seems to look for trends in forms of s
the problem is that the decision on a point i should be based only on the result when d = i (in the code). This is simply not true. This code precisely eliminates the biggest failures that this method would have, that is, forecasting a sale and having had to buy or vice versa
This is pretty dense code so I'm probably wrong here, but it looks to me like this takes values derived from the (backwards) moving average (which fine), but it loops forward over the time period (which isn't).
The easiest way to see this is to pass in different length datasets. The trading strategies should be identical up to the end of the shortest strategy. However, they diverge significantly before this.
In this example, I pass in 60 days vs 80 days of data, and the trading strategy diverges after 8 days