Questions from Beginners MQL5 MT5 MetaTrader 5 - page 938
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
So pull the required functionality from the class and write it to yourself.
Especially price is of interest. All results are in MqlTradeResult. I print them all the same way but some of them are printed while others are not. The question - why certain parameters are printed while others are not?
How do I merge arrays?
I understand thatArrayCopy only copies one-dimensional arrays?
How do I merge arrays?
I understand thatArrayCopy only copies one-dimensional arrays?
Thank you. My question is much easier - I opened an order via OrderSend(request,result) and want to immediately operate with its parameters - for example, print them out. Like this: Some of the parameters like retcode, order and volume are printed, but deal and price are not.
Especially price is of interest. All results are available in MqlTradeResult. I print them equally, but some of them are printed while others are not. The question - why certain parameters are printed while others are not?
That's how it was originally
Forum on Trading, Automated Trading Systems and Strategy Tests
Questions from beginners MQL5 MT5 MetaTrader 5
Algotrader18, 2018.10.25 07:39
Afternoon!
I open a position and want to print the content of MqlTradeResult like this:
result.retcode, order and volume are printed but deal and price are always zeros.
Please, could you tell me what I am doing wrong?
Why got lost in the next code.... Question...
I think the return is unacceptable. It will be printed on the next tick.
And I think that return is unacceptable. After all, it will be printed on the next tick.
Learning OrderSend
Returned value
If thebasic structure check (pointer check) is successful, true is returned - this does not indicate successful execution of the trade operation. To get a more detailed description of the result of the function, we should analyze the fields of the result structure .
Exploring OrderSend
If it passes the basic check, only then print it out. All on the same tick. That's why I wrote it.This was originally the case.
why was it lost in the next code... question...
But in my opinion, this one is unacceptable. It will be printed on the next tick.
I tried various variants including this one:
I did not copy everything into the question by mistake...
I've tried different options, including this one:
and copied into the question by mistake...
Hi all!
There is nothing similar. MT5 is multithreaded.