Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 698
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
Until you get tired of writing them
seriously?))
Yeah. But as a rule you don't write more than three, because such code is hard to read afterwards, especially if it's been a long time since it was written. It is better to divide these many nested ifs into separate functions. Or use switch operator ... case
MessageBox()
is there any way to make if I click after a new tick comes in, a new window won't appear, but the values of the first window will be used?
Good afternoon, in tests trailing works as expected, but in real life does not, or only once in a while, from time to time spams with error OrderModify error 4108, I can not understand what is wrong, please correct it, I understand that the EA does not correctly select orders for modification.
I would like to describe my EA:
When two MAs cross, open 2 positions, one short and one long by magik. The short one closes either at Takei or at the MA crossing over, the long one should trawl. Selection of a long position for a trawl is done on magic number.
Perhaps I made an error in some part of code on position opening:
I don't know, maybe I should open orders via a loop? And how to correctly write this code so that correct stops and Take Profits would be set? As I've written it - it works for Sell only, for Buy it sets Stop at 0.
(Please, help me on the right track))
) comes in.
Can you elaborate on what goes in? What I wrote was a quote from an acquaintance. I just copied it and pasted it in. He's trying to teach me MQL. I'm racking my brains, so please write down what goes in.
a ) question mark ( ?)
b) backslash (\ )
Can you elaborate on what goes in? What I wrote was a quote from an acquaintance. I just copied it and pasted it in. He's trying to teach me MQL. I'm racking my brains, so please write down what goes in.
a ) a question mark ( ?)
b ) backslash ( \ )
The use of Cyrillic characters is an undocumented feature
Characters that can be used in an ID are: digits 0-9, lowercase and uppercase letters a-z and A-Z, recognizable as different characters, underscore character (_). The first character cannot be a number.
syntax.
Hello, could you please tell me why ZigD[0] is not output in sommente?