paladin80: Print the values pr, stop and take to see what they send to OrderModify
Printed it out, thanks, in different variations, indeed the values sometimes coincide. It's a coincidence as I understand it. The values of modify coincided with the values I set them to originally. But in general, the terminal compares values and if they coincide, it does not modify orders and outputs error 1.
Before comparing fractional numbers, they need to be normalised.
Thank you, I will definitely normalise them later, after a coarse test, so as not to make the work heavier. Or is it better to normalize them right away? The modification parameters there just happened to coincide with the values I was setting them to. That's why the terminal didn't skip such modification.
Thank you, I will definitely normalise later, after a rough test, so as not to weigh down the job. Or is it better to normalise them right away? The modification parameters there just happened to coincide with the values I set them to. That's why the terminal didn't skip such modification.
And what, your religion doesn't allow you to fix all errors first and only after that start testing?
Is there a function that returns the time value of the last time a quote was given? If not, what standard functions can be used to write a custom function for an appropriate purpose?
Doesn't your religion allow you to fix all the bugs first and only then start testing?
"Doesn't religion allow you to guess first" that some errors are shown in the "Logbook" of the terminal, during testing? No programmer can brag that his "log" did not pop up errors, so do not talk nonsense.
vradii: Is there a function that returns the time value of the last time a given quote was given? If not, what standard functions can be used to write a custom function for an appropriate purpose?
I've got it, thanks, in different variations, the values do match up. It's my understanding that it's an accident. The values of the modification coincided with the values I had originally set them to. But in general, the terminal compares values and if they are the same, the order is not modified and error 1 is output.
There should not be any randomness in the programme operation. I have to find out why this happened and correct it.
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.
Print the values pr, stop and take to see what they send to OrderModify
Printed it out, thanks, in different variations, indeed the values sometimes coincide. It's a coincidence as I understand it. The values of modify coincided with the values I set them to originally. But in general, the terminal compares values and if they coincide, it does not modify orders and outputs error 1.
Before comparing fractional numbers, they need to be normalised.
Thank you, I will definitely normalise them later, after a coarse test, so as not to make the work heavier. Or is it better to normalize them right away? The modification parameters there just happened to coincide with the values I was setting them to. That's why the terminal didn't skip such modification.
Hi) can you tell me if it is possible to use mql4 to send e.g. the current price to your personal website?
Yes, supposedly. https://docs.mql4.com/ru/common/SendFTP
https://www.mql5.com/ru/forum/108621
In theory, yes. https://docs.mql4.com/ru/common/SendFTP
https://www.mql5.com/ru/forum/108621
Thank you))
Thank you, I will definitely normalise later, after a rough test, so as not to weigh down the job. Or is it better to normalise them right away? The modification parameters there just happened to coincide with the values I set them to. That's why the terminal didn't skip such modification.
And what, your religion doesn't allow you to fix all errors first and only after that start testing?
Doesn't your religion allow you to fix all the bugs first and only then start testing?
"Doesn't religion allow you to guess first" that some errors are shown in the "Logbook" of the terminal, during testing? No programmer can brag that his "log" did not pop up errors, so do not talk nonsense.
Is there a function that returns the time value of the last time a given quote was given? If not, what standard functions can be used to write a custom function for an appropriate purpose?
https://docs.mql4.com/ru/objects/ObjectGetShiftByValue
or like this:
I've got it, thanks, in different variations, the values do match up. It's my understanding that it's an accident. The values of the modification coincided with the values I had originally set them to. But in general, the terminal compares values and if they are the same, the order is not modified and error 1 is output.