
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 downloaded a program that calculates Hurst index. I have created a file with bar opening prices in the script.
I opened the file and the program calculated the Hurst index. But whatever sample I select the program always shows indicator values close to 1. But it does not fit the theory, does it? That is, the reading should vary from 0 to 1 for different samples? But in this program this parameter is glued to 1 :o(. In general, I'm glad that the ready calculation functions are available on the site. And now I'm afraid to use them to calculate something.
I've got this coefficient so far within the range 0.21-0.39. I don't know why :o(.
Here is my code of the script, which I based on your code:
Vladislav, maybe you can just take a look and tell me where to tweak in order to calculate the coefficient correctly? After all, according to the theory all calculations are elementary and I don't even know where my error is :o(
And then such a number of function calls on an algorithm which is already not much lightened by calculations..... IMHO it will slow down considerably. (The function call is the longest procedure, then comes the floating point division operation).
What's wrong with the standard algorithm for calculating standard deviation? It is available, but the forecast takes the value of a muving on the corresponding bar - take what you need, this is it and no function calls. You just run a loop through an array and squared the differences between the forecast price on a given bar and the real price, then square root it once - that's it.
Good luck and good luck with trends.
http://forex.ua/forum/viewtopic.php?t=1634&postdays=0&postorder=asc&start=50
There was a short term comparison of FA and TA forecasts here (after some flam in the thread just got fed up).
http://forex.ua/forum/viewtopic.php?t=1780
Thanks for the links! Have a read. Very informative! It once again confirmed to me that I correctly understand the essence of your strategy. I have already started to program something in this direction myself. I've already written above about the current problems on the agenda. But even the first calculation results are very impressive! Indeed, until you try it yourself you can not understand why things really happen the way you say! This is what makes your strategy so unpopular with the majority of traders. It is much more attractive to look at beautiful multi-coloured charts of different oscillators ;o) and read different paid analysts, than to base your Forex trading strategy on knowledge accumulated by people for a long time. Although, in principle, as long as this state of affairs remains, it will be possible to earn good money on Forex!
:).
Good luck and good trends.
What's wrong with the standard algorithm for calculating standard deviation? It is available, but it takes the value of a muving on the corresponding bar as a prognosis - take what you need, this is it and no function calls. Just run a loop through the array and take the squares of the differences between the forecast price on the given bar and the real one, then take the square root once - that's it.
In this example I've used sample arithmetic mean as the centr variable.
Also yesterday I tried setting a linear regression line as this variable. So then we get that S=SCO of linear regression errors. But for some reason the result didn't impress me either :o(.
Here is the code of the script, in which we take a linear regression line as a forecast. Moreover, the current EURUSD trend fits this very well.
Let's take the H1 period on EURUSD. We take a sample of 500 bars Hearst's coefficient = 0.26
300 bars - 0.31, 100 bars - 0.39, 30 bars - 0.51. I don't understand why :o(.
We will try your recommended muving. Although i do not know yet why the results will fundamentally differ from what i have.
Here's the link where the screenshots are located https://c.mql5.com/mql4/forum/2006/05/Herst.zip
At first I tried to upload these picture files to the site, so it would be convenient to look them in the theme itself, but for some reason these gif files on www.mql4.com site after the engine change persistently do not want to be inserted :o(. Never mind the good thing that at least zip uploaded.
A brief explanation of the script. The script draws a thick yellow line of the linear regression channel in the chart and at the same time it plots the projection of the channel in future with a thin red line.
Judging by the screenshots, I must be right in my calculations :o). Although I will need to double-check in the future.
PS: Vladislav, I think the Hurst index calculation by muving is a bit dubious, because it is unknown which value of the averaging period should be taken. I assume that this value for each particular calculation should somehow change depending on the number of tochets. That's why I've settled on a linear regression channel for now.
This is what I understood (probably incorrectly).
This indicator is taken from this strategy
http://fxovereasy.50webs.com/Example1.html
You can download the necessary indicators for this strategy for MT4 from the website.
http://fxovereasy.50webs.com/Indicators.html
Everything seems to make sense at first glance. There is no other strategy description ;o).