
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Please how do I get the indicator??
https://www.mql5.com/en/code/download/130/fourier_extrapolator_of_price.mq5 if you go to the top of the indicator posted there is a file with .mq5
HI,
I like the incicator. However, when I create a iCustom EA using it, it stops working during the backtest, tester freezes.
For instance, when I do a backtest of EURUSD for the last year, it hangs after 1 month of backtest.
See images too for settings, the graph is where it hangs. Compter is fine, but tester is frozen but can be stopped without issue.
Any ideas?
Any ideas?
Run it under debugger. Look into the logs.
It looks promising except for a tiny detail.
It redraw/repaint/recalculate on new data entirely .
Normally indicators shouldnt do that (despite applying whathever regression model to preset number of data/bars).
Can somebody please fix it to change indicator value at last bar only ?
Thanks.
It looks promising except for a tiny detail.
It redraw/repaint/recalculate on new data entirely .
Normally indicators shouldnt do that (despite applying whathever regression model to preset number of data/bars).
Can somebody please fix it to change indicator value at last bar only ?
Your requirement is unclear. Due to specificity of the approach with Fourier transform, the indicator will completely redraw on new data - no matter if it's a bar or a tick.
If you like, you can add the line into OnCalculate:
Your requirement is unclear. Due to specificity of the approach with Fourier transform, the indicator will completely redraw on new data - no matter if it's a bar or a tick.
If you like, you can add the line into OnCalculate:
Yes, you can run Fourier transform (or nonlinear regression reconstruction) through entire history of the chart and take each last value of result and draw them in a dedicated buffer. You'll get a kind of static MA, which is less informative than dynamic forecasts - they are considered a positive feature of algorithms like Fourier/Wavelets/etc, and you're asking to downgrade them and cut off the forecasts in order to get MA-like curve, if I understand you correctly.
Here is an example of Fourier traces on history in the tester, but I'm not sure this is what you mean.
The source code is attached.
Here is an example of Fourier traces on history in the tester, but I'm not sure this is what you mean.
The source code is attached.
Yes, you understand correctly.
Of course I modified something - you said that I understood correctly, but from your next words it looks like you did not understand what I did. So the orange line is the trace of the point where blue and red curves connect to each other - the static estimation of fitting over time. Technically you can take a snapshot of any point on the curves, or even "freeze" all the curves.