See what type returns MarketInfo(), and what type requests OrderClose() in place of type mismatch. And put the correct type in parentheses in front of MarketInfo.
Thank you very much. All fixed.... Question then one more I have a piece of code which also gave out this error. Do you think my change will have any effect on functional execution after replacement?
It will greatly change result of work because comparison is used here, so I thought what if suddenly change in data type will change result of this comparison. What do you think?
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.
The answer is here.
I don't see a function. Where are the parentheses?
I don't see the function. Where are the parentheses?
Aren't they in my answer? I showed you what to change, I think that should be enough to make you realise...
I don't see the function. Where are the parentheses?
There are more links and one of them has this example
And there are probably others, too...
And the link that the forum engine inserted has such a great example
()
[]
.
Call of the function
Select array element
Allocate a structure element
Left to right
Aren't they in my answer? Showed you what to change, I think that should be enough to make you realise...
Thank you, Alexei. Understood.
Hi all!
Remind me, was there a function in mql4 to check if there was enough money to open a position? Something like:
PositionCheck(Symbol()lot);Something to quickly check if the deposit is enough to open a position.Hi all!
Remind me, was there a function in mql4 to check if there was enough money to open a position? Something like:
Something to quickly check if the deposit is enough to open a position.Hi all, can you tell me why this line outputs a warning ???? And how do I fix it so it doesn't show????
Warning:
possible loss of data due to type conversion.
It frowns in the vicinity of
Hi all, can you tell me why this line outputs a warning ???? And how do I fix it so it doesn't show????
Warning:
possible loss of data due to type conversion.
It frowns in the vicinity of
Hi all, can you tell me why this line outputs a warning ???? And how do I fix it so it doesn't show????
Warning:
possible loss of data due to type conversion.
It frowns in the vicinity of
Thank you very much. All fixed.... Question then one more I have a piece of code which also gave out this error. Do you think my change will have any effect on functional execution after replacement?
It was like this and it gave me an error.
I did that and the error went away.
It will greatly change result of work because comparison is used here, so I thought what if suddenly change in data type will change result of this comparison. What do you think?