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
And in simplified form, it works as fast as ComparePrice:
If the values differ by Point, it will give false results half the time.
And what has simplified mode got to do with it anyway? ComparePrice in simplified form can be as slow as unsimplified equal.
First, write a few Expert Advisors on your own order, feel the storm of a customer that suddenly the stop-loss was 1 point wrong... And then explain them about absurdity of NormalizeDouble() function, I wonder how it will work out for you=)
Let me tell you a secret.
I have written many more custom Expert Advisors than needed to start with. I have never felt the urge to buy them because I have never gave any reason to do so. In my programs, the stoploss is guaranteed to be (and not "appears") where it should be. Accordingly, I don't have to explain anything of the kind to the customer, especially about some very specific function. It seems to me that the whole point of writing an EA is to get rid of such questions and explanations for the client.
And how can it be reliably located where it should be without the NormalizeDouble() function? And how do you free yourself from explanations without using NormalizeDouble()?
And it turns out that even the price taken from the server from your order still needs to be normalised!!!
There were and are a lot of talks about incomprehensible performance of the Expert Advisor when tested on incomprehensible historical data.
And how do you deal with indicator dubs when comparing to 0 etc without normalise. Very interesting.
And how do you deal with indicator dubs when comparing to 0 etc. without normalise. Very interesting.
And how do you deal with indicator dubs when comparing to 0 etc. without normalise. Very interesting.
Yeah, well... - that's understandable. I understood your approach, that in each specific situation the simplest solution is sought.
and the results of his work
09:04:13 NormExperiment EURUSD,M5: Metod 1: 1.11111 != 1.11115 Metod 2: 1.11111 = 1.11115
09:04:13 NormExperiment EURUSD,M5: Metod 1: 1.11111 != 1.11116 Metod 2: 1.11111 = 1.11116
09:04:13 NormExperiment EURUSD,M5: Metod 1: 1.11112 != 1.11115 Metod 2: 1.11112 = 1.11115
09:04:13 NormExperiment EURUSD,M5: Metod 1: 1.11112 != 1.11116 Metod 2: 1.11112 = 1.11116
09:04:13 NormExperiment EURUSD,M5: Metod 1: 1.11112 != 1.11117 Metod 2: 1.11112 = 1.11117
09:04:13 NormExperiment EURUSD,M5: Metod 1: 1.11113 != 1.11115 Metod 2: 1.11113 = 1.11115
09:04:13 NormExperiment EURUSD,M5: Metod 1: 1.11113 != 1.11116 Metod 2: 1.11113 = 1.11116
09:04:13 NormExperiment EURUSD,M5: Metod 1: 1.11113 != 1.11117 Metod 2: 1.11113 = 1.11117
09:04:13 NormExperiment EURUSD,M5: Metod 1: 1.11114 != 1.11115 Metod 2: 1.11114 = 1.11115
09:04:13 NormExperiment EURUSD,M5: Metod 1: 1.11114 != 1.11116 Metod 2: 1.11114 = 1.11116
09:04:13 NormExperiment EURUSD,M5: Metod 1: 1.11114 != 1.11117 Metod 2: 1.11114 = 1.11117
09:04:13 NormExperiment EURUSD,M5: Metod 1: 1.11114 != 1.11118 Metod 2: 1.11114 = 1.11118
09:04:13 NormExperiment EURUSD,M5: Metod 1: 1.11114 != 1.11119 Metod 2: 1.11114 = 1.11119
09:04:13 NormExperiment EURUSD,M5: Metod 1: 1.11115 != 1.11111 Metod 2: 1.11115 = 1.11111
09:04:13 NormExperiment EURUSD,M5: Metod 1: 1.11115 != 1.11112 Metod 2: 1.11115 = 1.11112
09:04:13 NormExperiment EURUSD,M5: Metod 1: 1.11115 != 1.11113 Metod 2: 1.11115 = 1.11113
09:04:13 NormExperiment EURUSD,M5: Metod 1: 1.11115 != 1.11114 Metod 2: 1.11115 = 1.11114
09:04:13 NormExperiment EURUSD,M5: Metod 1: 1.11116 != 1.11111 Metod 2: 1.11116 = 1.11111
09:04:13 NormExperiment EURUSD,M5: Metod 1: 1.11116 != 1.11112 Metod 2: 1.11116 = 1.11112
09:04:13 NormExperiment EURUSD,M5: Metod 1: 1.11116 != 1.11113 Metod 2: 1.11116 = 1.11113
09:04:13 NormExperiment EURUSD,M5: Metod 1: 1.11116 != 1.11114 Metod 2: 1.11116 = 1.11114
09:04:13 NormExperiment EURUSD,M5: Metod 1: 1.11117 != 1.11112 Metod 2: 1.11117 = 1.11112
09:04:13 NormExperiment EURUSD,M5: Metod 1: 1.11117 != 1.11113 Metod 2: 1.11117 = 1.11113
09:04:13 NormExperiment EURUSD,M5: Metod 1: 1.11117 != 1.11114 Metod 2: 1.11117 = 1.11114
09:04:13 NormExperiment EURUSD,M5: Metod 1: 1.11118 != 1.11114 Metod 2: 1.11118 = 1.11114
09:04:13 NormExperiment EURUSD,M5: Metod 1: 1.11119 != 1.11114 Metod 2: 1.11119 = 1.11114
Decide for yourself which arithmetic you prefer.
When determining the crossing of the indicator line (for example MA) with the price (of the type Price_Now>MA_Now and Previous_Price<=Previous_MA), you must always normalize to 8 digits.
it is mandatory to normalise to 8 digits.
No, why down to 8? :) There's also a 7, 9, or 6. Some people go for 4.
Really, why an 8? What are the criteria?
Correction. The most suitable and, if possible, effective one. Unfortunately, it is not always the easiest one.
it is mandatory to normalise to 8 digits.
No, why up to 8? :) There's also a 7, 9, or 6. Some people go for 4.
Really, why an 8? What are the criteria?
Suppose
price = 1.1111
ma = 1.11110001
If you normalize to 8 digits, ma>price is correct. Normalizing to a lower number of digits will make them equal - incorrect. This way maximum accuracy is achieved.
Normalizing to 9 digits does not work. It is as if the price has 9 digits and the indictor has 8 or vice versa (I don't remember), in short it is covered by the mystery of the unknown.
This method passes. So far, no one has noticed the resulting margin of error.)