Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 893
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
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.