Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 491
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
Hello, could you please tell me how to show/remove a certain symbol programmatically in the "market overview" window?
See SymbolSelect function.
Good afternoon, could you please tell me where there might be an error in this code snippet?
Hi all, I am facing the following problem:
I open a trade without stoploss and takeprofit:
I want to close this order
I get this error: OrderClose error 131
If instead ofOrderOpenPrice() I point 0.1 or OrderLots() there is an error: OrderClose error 138
What is the problem?
Hi all, I am facing the following problem:
I open a trade without stoploss and takeprofit:
I want to close this order
I get this error: OrderClose error 131
If instead ofOrderOpenPrice() I point 0.1 or OrderLots() there is an error: OrderClose error 138
What is the problem?
You're closing at the wrong price
Can you be more specific about what it should be? Thank you
Can you be more specific about what it should be? Thank you
Good afternoon!
I have carefully read the tutorial about include files, and nowhere does it say that an include file cannot be "included" twice in the EA.
I have the first one "triggered", the second one (with the same name) is skipped/ignored.
What I do - I make a copy of the included file, add a letter/digit to the file name and in the EA line, and everything works.
Question: is it the mql4 language or me?
Thanks in advance!!!
Good afternoon!
I have carefully read the tutorial about include files, and nowhere does it say that an include file cannot be "included" twice in the EA.
I have the first one "triggered", the second one (with the same name) is skipped/ignored.
What I do - I make a copy of the included file, add a letter/digit to the file name and in the EA line, and everything works.
Question: is it the mql4 language or me?
Thanks in advance!!!
Why would you include the same thing twice in the listing?
If the include file has function f(), then by including it twice in your code, you will get a compilation error about already declared function f()
Why would you include the same thing twice in your listing?
If there is an f() function in the include file, then including it twice in your code will result in a compilation error about an already declared f() function
If I use the include file not as a custom function, but as a "substitution"/insertion of a simple code fragment, such as search for the last order by my symbol (or presence of an order at all). And this search can be used in a program several times. And there can be a lot of such "classic operations".
This is where you get confused. There can be many such useful functions in a include file. Include the file once and use the available functions from the file.