you have not shown any calculations or definitions of any of the function inputs so do not expect any other responses until you do add those to the thread.
But i do recommend that you reset error at start of the function, and the result line, change it to if(OrderSend()<0) This might be all you need.
The above will not show errors because it will only show if error is -1 but there are many error codes below 0.
you have not shown any calculations or definitions of any of the function inputs so do not expect any other responses until you do add those to the thread.
But i do recommend that you reset error at start of the function, and the result line, change it to if(OrderSend()<0) This might be all you need.
The above will not show errors because it will only show if error is -1 but there are many error codes below 0.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi guys i am in MT5 i try to open inthe same time one order in NZDJPY in buy and one order SELL in NZDUSD i have create an expert i place over NZDJPY and push the button , the button call some function and open only a BUY NZDJPY and not openNZDUSD
this is my part of code
the variable result return 2024.10.24 17:51:36.558 SPREAD_ROBOT (NZDJPY+,H1) RISULTATO -1_NZDUSD+
but why not return GetLastError ? anyone can help me thanks
,GetLastError()