
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
I willingly believe that it is possible to do a lot of functions with accelerated calculation. Like subtract a value from the end of a period and add a new value to the beginning, without a cycle.
In particular, here is an example of how you can calculate several types of filter from simple waving to linear regression without a cycle.
Here at N=0 - normal SMA, N=1 - linear-weighted, N=3 - linear regression. And you can also get intermediate values as N is fractional. I also calculated the RMS in a similar way. I think polynomial regression can be done the same way. It would be a practical necessity. At least, I have not managed to use polynomial regression in profitable Expert Advisors yet. Channels on EMAs are simpler and work well in practice.
Here is a slightly contrived variant of linear regression on mq4 with RMS without cycle. There is a cycle once at initiation, or more precisely, when calculating the first set of values, and that's all, - then there are only sums and differences. Of course, it is much faster than with cycles. One subtlety is that the period is specified in hours and is recalculated when switching timeframes.
Why did Fedoseyev self-depart, reasoning correctly?
Because he reasoned incorrectly.
Read the thread.
How much does it speed up code execution?
What does "no loop" do for you?
How much faster does it make your code run?
I willingly believe that it is possible to do a lot of functions with accelerated calculation. Like subtract a value from the end of a period and add a new value to the beginning, without a cycle.
In particular, here is an example of how you can calculate several kinds of filter from simple waving to linear regression, without cycle.
Here at N=0 - normal SMA, N=1 - linear-weighted, N=3 - linear regression. And you can also get intermediate values as N is fractional. I also calculated the RMS in a similar way. I think polynomial regression can be done the same way. It would be a practical necessity. At least, I have not managed to use polynomial regression in profitable Expert Advisors yet. Channels on EMAs are simpler and work well in practice.
Here is a slightly complex variant of the linear regression in mq4 with RMS without loops. There is a cycle once at initiation, or more precisely, when calculating the first reading, and that's it - then there are only sums and differences. Of course it calculates many times faster than with cycles.
Yes. That is correct. This is a real example of cycle-free RMS calculation in linear regression.
True, there is a small error somewhere in the algorithm, leading to all three lines (centre, upper and lower limits of the channel) being shifted upwards.
Yes. That is correct. This is a real example of cycle-free RMS calculation in linear regression.
True, there is a small error somewhere in the algorithm, leading to all three lines (centre, upper and lower limits of the channel) being shifted upwards.
What does this "no loop" do for you?
How much faster does it make your code run?
The RMS calculation alone can give a gain of about 10 to 1,000 times, depending on the period.
And there's just half of the spread added in. I did this once to test a trading Expert Advisor to have alignment relative to - Ask-Bid. If we set SPR=0, there will be no offset. It will count purely on bid prices.
Yes, exactly. A complete match to my linear regression implementation.
How is the Sultonov indicator doing? Has it broken its back to forex yet or is it in the process of doing so?
The indicator is working on one cent real account at UPU on a "run and forget" basis with a deposit of 48 c.u. The second month it has been hovering around 50, apparently, waiting for its time. It is impossible to receive more than 10 % per annum on Forex, stably and without risk, provided reinvestment of profits for many years - these are my conclusions on the backbone of Forex. The hasty conclusions of 8 years ago are shattered by the reality of the market. The powerful universal regression model has failed miserably, producing bankable profits. The URM does a great job on all the technical, social, mining (extracting gold from poor ores) and other processeso except the market element. The conclusion is that regression models have limited potential to extract profits from the market.