Detecting cycles has the same basic problem as many other trade algorithms. Using a short time period, you can detect cycles fast, but are then not safe against false cycles by random effects. If you sample over a long period, you can better distinguish real market cycles, but they may be over when you start exploiting them.

We will however implement a new spectrum function where you can set up the sample period, so you have at least control over that.