Good afternoon. I tried to "feel the difference" and this is what came out of it... I.e. we can (with some stretch) REALLY define a GV-variable as follows. A GV-variable is a so to say "box" into which you can store a variable of any type (except string, because a GV-variable is of double type only, while the typecasting rule does not permit type reduction, i.e. you cannot make a string a double). And this variable, which we'll insert into a GV-variable, "will take the form of this box" (i.e. it will be casted from source type to double type)... Anyway, is it like this?
Thank you in advance for the answer.
You got it right. Further, when we take a value out of the box, it is of type double, but if we give a command to write the result into a variable of type int, the compiler will automatically take all necessary steps to put the value into the new box.
Returns the net profit value (excluding swaps and commissions) for the selected order. For open positions, this is the current unrealized profit. For closed orders, it is the fixed profit. The order must be pre-selected using the OrderSelect() function.
How do I write a string of several words into a file, so that all the words are in one cell? When recording, all words separated by a space and even a string consisting of several variables are written in different cells.
Sorry for the dumb question. How do I get the order number? GetTickCount() returns some random number and OrderTicket() returns the queue number. I need the full order number, e.g. the first of the queue (it's the first to go here).
Sorry for the dumb question. How do I get the order number? GetTickCount() returns some random number and OrderTicket() returns the queue number. I need the full order number, e.g. the first of the queue (it's the first to go here).
The OrderTicket is the ticket (unique number) of the order, by which the server identifies it.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I forgot my password on my old demo account. Where can I find it?
You do not have it anywhere, if you did not take care of saving it yourself - I checked with the support team of one of the brokerage companies.
You have to check your email - when you open an account they send you all its parameters, including passwords...
Good afternoon. I tried to "feel the difference" and this is what came out of it... I.e. we can (with some stretch) REALLY define a GV-variable as follows. A GV-variable is a so to say "box" into which you can store a variable of any type (except string, because a GV-variable is of double type only, while the typecasting rule does not permit type reduction, i.e. you cannot make a string a double). And this variable, which we'll insert into a GV-variable, "will take the form of this box" (i.e. it will be casted from source type to double type)... Anyway, is it like this?
Thank you in advance for the answer.Good day to all!
Can you please tell me how to calculate the profit/loss in open orders on the current pair (on which the EA is installed)?
The order must be pre-selected using the OrderSelect() function.
Good day to all!
Can you please tell me how to calculate the profit/loss in open orders on the current pair (on which the EA is installed)?
Use it. See everything .
How do I write a string of several words into a file, so that all the words are in one cell? When recording, all words separated by a space and even a string consisting of several variables are written in different cells.
What if I have to add up to four variables
string text = a + b + c + d;
and write it all in one cell
Hello, everyone,
Sorry for the dumb question. How do I get the order number? GetTickCount() returns some random number and OrderTicket() returns the queue number.
I need the full order number, e.g. the first of the queue (it's the first to go here).
Hello, everyone,
Sorry for the dumb question. How do I get the order number? GetTickCount() returns some random number and OrderTicket() returns the queue number.
I need the full order number, e.g. the first of the queue (it's the first to go here).
The OrderTicket is the ticket (unique number) of the order, by which the server identifies it.
GetTickCount is different))