I wrote three versions of the EA, all compiled without errors, but in the tester something strange happens - on M5 it opens one position and does not close it, but on M1 it opens on every tick and closes on the next one, regardless of the prescribed conditions.
I wrote three versions of the EA, all compiled without errors, but in the tester something strange happens - on M5 it opens one position and does not close it, but on M1 it opens on every tick and closes on the next one, regardless of the prescribed conditions.
Tell me please, if you write a multiplying function
I get it. the only thing I don't understand is which ones?
ZS: and which error might behave differently in different TFs?
ZZY: for example, where is the logical error here:
The logical error here is that the program structure is wrong. After the comment "Not found ... " the code will continue executing as if it had been found. Vladimir, read a textbook, will you?
Did you think I had nothing else to do? I'm surprised to hear that...
No one can find a logical error but you, because no one knows what you're up to. And everyone has a different writing style and for me personally it's hard to read your code, I can't see pairing of parentheses. Each closing parenthesis is located below opening one and each pair of parentheses is not equidistant from left edge. This was worked out when the brackets weren't highlighted, and they aren't highlighted in the forum now either.
What is (condition A, B, C, D, D, E)? Apparently there is an error here, but not for sure. And you are sure that the orders are opened with the listed magicians? Do you understand the methods of finding logical errors? You have been repeatedly advised to unprint the code and see where the execution comes in and where it does not, and you keep asking for help.
You could, for example, switch the timeframe programmatically and then switch it back if necessary.
Or try saving the template and then loading it back in
I don't know what...
I wrote three versions of the EA, all compiled without errors, but in the tester something strange happens - on M5 it opens one position and does not close it, but on M1 it opens on every tick and closes on the next one, regardless of the prescribed conditions.
I don't think that's how variables are reset.
Great idea! Is that possible?
I don't know what...
I wrote three versions of the EA, all compiled without errors, but in the tester something strange happens - on M5 it opens one position and does not close it, but on M1 it opens on every tick and closes on the next one, regardless of the prescribed conditions.
Tell me please, if you write a multiplying function
Will this function ever result in 2*2=4 or not?
I mean that no compiler checks the code's logic. And your Expert Advisors are full of logical errors.
Tell me please, if you write a multiplication function
Will this function ever result in 2*2=4 or not?
I mean, no compiler checks the logic of code. And your Expert Advisors are full of logical errors.
I got it. only one thing I don't understand.
ZZY: and which error may behave differently in different TFs?
ZZZY: for example, where is the logical error here:
Ow! Guru! Did you break your finger in the palm?
I get it. the only thing I don't understand is which ones?
ZS: and which error might behave differently in different TFs?
ZZY: for example, where is the logical error here:
Ow! Guru! Did you break your finger in the palm?
Did you think I had nothing else to do? I'm surprised to hear that...
No one can find a logical error but you, because no one knows what you're up to. And everyone has a different writing style and for me personally it's hard to read your code, I can't see pairing of parentheses. Each closing parenthesis is located below opening one and each pair of parentheses is not equidistant from left edge. This was worked out when the brackets weren't highlighted, and they aren't highlighted in the forum now either.
What is (condition A, B, C, D, D, E)? Apparently there is an error here, but not for sure. And you are sure that the orders are opened with the listed magicians? Do you understand the methods of finding logical errors? You have been repeatedly advised to unprint the code and see where the execution comes in and where it does not, and you keep asking for help.