This strategy uses the Fast Fourier Transform inspired from the source code of @tbiktag for the Fast Fourier Transform & @lazybear for the VMA filter. If you are not familiar with the Fast Fourier transform it is a variation of the Discrete Fourier Transform. Veritasium on youtube has a great video on it with a follow up recommendation from...
This Study uses the Real Discrete Fourier Transform algorithm to generate 3 sinusoids possibly indicative of future price. I got information about this RDFT algorithm from "The Scientist and Engineer's Guide to Digital Signal Processing" By Steven W. Smith, Ph.D. It has not been tested thoroughly yet, but it seems that that the RDFT isn't suited for predicting...
Experimental: function for inverse and discrete fourier transform in one, if you notice errors please let me know! use at your own risk...