Errors, bugs, questions - page 1471
![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
What is the purpose of the const modifier at the end of a method?
What benefits do we get when using this modifier in initialization of variable names?
I am aware of the fact that the variable cannot change and get a different value.
Maybe this modifier speeds up the program's work?
What is the purpose of the const modifier at the end of a method?
What benefits do we get when using this modifier in initialization of variable names?
I am aware of the fact that the variable cannot change and get a different value.
May be this modifier speeds up the program operation?
This is from OOP. It means that the method does not change the object it is called from. Arguments have nothing to do with it.
The benefit is that when you look at the prototype you will see that the object will not be changed, i.e. visibility.
Hi guys all ) Please help me to write a code (more correctly one small part) my goal is to write a function select order history and there i need to see the value at which the last order was closed, positive or negative. Please advise who does this (I'm already wracking my brains )))))
Thank you in advance.
Hi guys all ) Please help me to write a code (more correctly one small part) the purpose is to write a function select order history and there I need to see what value was the last order closed, positive or negative. Who knows the code please advise me (I've already wracked my brains )))))
Thank you in advance.
MQL4
This is how we check:
Hi guys all ) Please help me to write a code (more correctly one small part) my goal is to write a function select order history and there i need to see the value at which the last order was closed, positive or negative. Please advise who does this (I'm already wracking my brains )))))
Thanks in advance.
To find out, you do this:
MQL4
Check it this way:
))))
))))
You do realise you're being silly with your innuendos now, don't you?
The code is mine. I took the logic and variable names from Igor. So I don't take your hint. The function name? Does it reflect the meaning, or are you no clueless in English?
MQL4
Check it this way:
to find out what you're doing:
Thank you very much !!!