
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
Simple MA with length 5 is essentially a FIR filter with coefficients {0.2, 0.2, 0.2, 0.2, 0.2}
An oscillator is already a bandpass or upper-pass filter. Bingo, take a bandpass filter, calculate it on your knee in a minute, and give it to the Market as a mega-graphic super oscillator by Volchansky! )) The main thing is to color the curve sections in canary colours )))
Of course they do. If you mean school, they already know how to calculate the average on an interval at school.
I hope the USE hasn't got to the average yet ))
I hope the USE hasn't reached the average yet ))
It reminds me of an old joke.
An exam on the history of the Communist Party of the Soviet Union. A student cannot answer a single question.
The teacher pulls out a portrait of Karl Marx and shows the student
- That's Karl Marx, isn't it?
I see, it's the same subject in another interpretation.
This is what I was talking about. Here is the formula of FIR filter I use myself. But I have already written - everything depends on coefficients. Yes, they are given, but without any description, so I can't judge right away. But there is an advertisement of the company ))
I'm referring to this piece of the article
----------
For example, you could try to build code in MQL5 for a digital filter like Finware's FATL.
In general terms the formula for calculating a digital filter is:
FILTER = SUM (K(i) * CLOSE (i), FilterPeriod)
where:
SUM - sum;
K(i) - weighting factor;
CLOSE (i) - closing price of the current bar;
FilterPeriod - number of bars for averaging.
I'm not familiar with filters, maybe you can give me a hint? RSI indicator "compares the absolute value of the currency pair price rise over a certain period of time with its fall over the same period". I have not found the formula of its calculation yet. But it seems that it cannot be presented in the form of SUM (K(i) * CLOSE (i)), because the weights depend on the sign of the difference of neighboring CLOSE (i). Do I understand it correctly?
RSI has nothing to do with digital filters in their pure form. You are right, it cannot be represented as a highlighted expression. It's also difficult to derive the formula as there are at least two steps. See the comments in the code.
1. Get the sum of SumP increments and SumN decreases for the RSI period
Then they are further processed excruciatingly, but this step is the main one.
It's funny that the material is discussed before it's published :-)
Alexey, interesting topic, I wish you a speedy completion of the article!
It's funny that the material is discussed before it's published :-)
Alexey, it's an interesting topic, I wish you to finish the article as soon as possible!
Denis, it was quite unclear what to do with these coefficients. Now it is clear - they are ready. The simplest solution is the best.
I'll definitely finish it in March, I'm already slowed down )
Why is the MACD bandpass? The difference of two Exponential MA is taken, it is shown as a histogram (vertical bars), then a slightly modified Simple MA is taken from the difference and shown as a dashed line.
You're wrong about wavelets, I do them. You cannot simulate a wavelet with digital filters. You can very roughly mimic the Fourier transform with bandpass filtering. But FFT is better and faster.
Perhaps my next article will be on wavelet filtering, where latency is minimal, incomparable to DF.
It's more a matter of terminology (or philosophy).
Macd is considered a difference of LPF, but at the output we have a filtered trend and an HF component, rather than a bandpass filter.
Again, can wavelets be considered a special case of filters. Does the spectrum of the original signal change? It changes, sort of like a filter.
It would be interesting to read, there hasn't been anything on this topic for a long time.