Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1480

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
For the sake of interest, I removed the d variable. I left only the function. The result of printing has not changed. To be honest, I don't understand about the three values at all.
Regards, Vladimir.
It has not changed because this value was not printed.
Just add printing and you will see.
Not changed because this value was not printed.
Just add print and you will see.
Printed it. It stayed the same.
Maybe I misunderstood something again? Or did you need to print thedvariable? Is this what we were talking about?
Regards, Vladimir.
Printed it out. As it was, everything remains the same.
Regards, Vladimir.Printed where?
Printed it where?
Now I've got it all figured out. )) Thank you all!
Regards, Vladimir.
I ran it on a symbol, where there are open positions. It works properly, the information is printed correctly. Next. Started on the symbol where there are no open positions. The information about the fact that there are no open positions is displayed correctly, but the code of the cause of the error, for some reason no. Can you please help me to understand why the error code is not displayed?
Regards, Vladimir.
Started it on a symbol with open positions. It works properly, the information is displayed correctly. Next. I ran it on a symbol with no open positions. The information about the fact that there are no open positions is displayed correctly, but the code of the cause of the error, for some reason no. Can you please help me to understand why the error code is not displayed?
Where does the error code come from if there is no error? It is just the wrong symbol for the position.
Why would there be an error code if there's no error? It's just the wrong symbol for the position.
Thanks for the response! I expected that at least this error code would be displayed:
ERR_TRADE_POSITION_NOT_FOUND
4753
Position not found
I disagree about the symbol. The symbol is exactly the one on whose chart this script was thrown. I have no open positions on the symbol GBPUSDrfd now, but there is no error either. It is not clear!!!
Regards, Vladimir.
Thanks for the response! I expected at least this error code to be displayed:
ERR_TRADE_POSITION_NOT_FOUND
4753
Position not found
I disagree about the symbol. The symbol is exactly the one, on the chart of which this script was thrown. I don't have any open positions on the symbol GBPUSDrfd, but I don't have an error either. I don't understand!!!
Regards, Vladimir.
All positions have been found! But none of the found positions has the symbol we need.
All positions found! But none of the found positions has the symbol we need.
I get it now. Thank you!!! It turns out that if there is at least one open position, the error code 4753 will never appear.
Regards, Vladimir.
Got it now. Thank you!!! It turns out that if there is at least one open position, the error code 4753 will never appear.
Regards, Vladimir.
It will appear if you write the following