Hi,
The library contains this indicator “Fourier Transform” …
https://www.prorealcode.com/prorealtime-indicators/fourier-transform/
I understand that you want to convert the time domain to a frequency domain using the Fourier Transform, but what added value does this have on average…?
The characteristics of an average are fully captured in the time domain by means of the impulse response… (here the frequency domain has no added value)
What you can do in PRT, as Roberto points out, is code your system (with average) in PRT and then back test it…
A simple strategy with average:
// Moving Average type
//0=SMA, 1=EMA, 2=WMA, 3=Wilder, 4=Triangular, 5=End point, 6=TimeSeries Forecast, 7=Hull, 8=ZeroLag
DefParam CumulateOrders=False
Once SlowPeriod=20
Once FastPeriod=10
MASlow=Average[SlowPeriod,MAtype]
MAFast=Average[FastPeriod,MAtype]
If MAFast crosses over MASlow then
Buy 1 contract at Market
EndIf
If MAFast crosses under MASlow then
SellShort 1 contract at Market
EndIf
You can then back test the above system in PRT…