Depending on how the graph is stretched, we see that for the same segment we have a different angle. Suppose we take the second graph and a set of these points as a reference:
Vasiliy Sokolov:
Point
Value
Time
№1
1
2018.03.21
№2
10348
2018.08.13
Then for a set like this:
Point
Value
Time
№1
1
2018.03.21
№2
10348
2018.08.21
This line will already be like this roughly:
The angle of the blue line is obviously smaller than the angle of the red line. Here it is a success! Pinocchios rejoice! However, the problem is that the originally chosen angle of the red line could have been anything really, like 45% or 20 or 1%. In that case, the angle of the blue line would have changed too. I.e. there is no criterion that objectively tells us that the originally taken coordinate system really has this or that angle. So one user who took picture #2 as a basis for the blue trend angle would have 45%, and another user who took picture #3 as a basis for the same blue trend angle would have only 10%.
Depending on how the graph is stretched, we see that for the same segment we have a different angle. Suppose we took the second graph and a set of these points as a reference:
Then for this set:
Point
Value
Time
№1
1
2018.03.21
№2
10348
2018.08.21
This line will already be like this approximately:
The angle of the blue line is obviously smaller than the angle of the red line. It's a success! The Pinocchios rejoice! But the problem is that the originally chosen angle of the red line could have been anything really, like 45% or 20 or 1%. In that case, the angle of the blue line would have changed too. I.e. there is no criterion that objectively tells us that the originally taken coordinate system really has this or that angle. So one user, who took picture number 2 as a basis, will have 45% angle of the blue trend, and another user, who took picture number 3 as a basis, will have only 10% angle of the same blue trend.
That's what I'm telling you, you need to make a benchmark, you know? A person does not need to share with others (if the benchmark is common, you can share), but to give an estimate of the result in a certain sample. If we took option 2, then we use it.
Haven't read all the comments. Maybe someone has already written it. There is such an error in the CustomR2Equity(double& equity[], ENUM_CORR_TYPE corr_type = CORR_PEARSON) function:
for(int x = 0; x < total; x++)
estimate[x] = x*a+b;
and it should be like this:
for(int x = 0; x < total; x++)
estimate[x] = a+b*x;
In the article it is said that one of the drawbacks of R2 method is that it is "Applicable exclusively for estimation of linear processes or systems trading with a fixed lot". I'm trying optimize my strategy for the stock market and I use dynamic position volume based on the ATR value, so I guess I could not use this method in my case. But my question is how one could optimize a non linear system?
That is genius. Thanks alot for the great article! I wonder how R2 measuring quality compares to measuring standard deviation from an account balance moving average.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Here we have a picture:
Depending on how the graph is stretched, we see that for the same segment we have a different angle. Suppose we take the second graph and a set of these points as a reference:
Then for a set like this:
This line will already be like this roughly:
The angle of the blue line is obviously smaller than the angle of the red line. Here it is a success! Pinocchios rejoice! However, the problem is that the originally chosen angle of the red line could have been anything really, like 45% or 20 or 1%. In that case, the angle of the blue line would have changed too. I.e. there is no criterion that objectively tells us that the originally taken coordinate system really has this or that angle. So one user who took picture #2 as a basis for the blue trend angle would have 45%, and another user who took picture #3 as a basis for the same blue trend angle would have only 10%.
Here we have a picture:
Depending on how the graph is stretched, we see that for the same segment we have a different angle. Suppose we took the second graph and a set of these points as a reference:
Then for this set:
This line will already be like this approximately:
The angle of the blue line is obviously smaller than the angle of the red line. It's a success! The Pinocchios rejoice! But the problem is that the originally chosen angle of the red line could have been anything really, like 45% or 20 or 1%. In that case, the angle of the blue line would have changed too. I.e. there is no criterion that objectively tells us that the originally taken coordinate system really has this or that angle. So one user, who took picture number 2 as a basis, will have 45% angle of the blue trend, and another user, who took picture number 3 as a basis, will have only 10% angle of the same blue trend.
That's what I'm telling you, you need to make a benchmark, you know? A person does not need to share with others (if the benchmark is common, you can share), but to give an estimate of the result in a certain sample. If we took option 2, then we use it.
Haven't read all the comments. Maybe someone has already written it. There is such an error in the CustomR2Equity(double& equity[], ENUM_CORR_TYPE corr_type = CORR_PEARSON) function:
and it should be like this:
Thank you
Thanks for the great article.
In the article it is said that one of the drawbacks of R2 method is that it is "Applicable exclusively for estimation of linear processes or systems trading with a fixed lot". I'm trying optimize my strategy for the stock market and I use dynamic position volume based on the ATR value, so I guess I could not use this method in my case. But my question is how one could optimize a non linear system?
Hi,
if I try to use R²:
Is okay.
but with
I get:
'Manager' - undeclared identifier
How can I declare it in my EA?
How should I declare Manager in my EA