Download MetaTrader 5
To add comments, please log in or register
Publish your trading signal. Gain access to millions of traders!
hee gian xua
9
hee gian xua 2016.06.25 17:21 
Hi... I newbie mql4...
I want return value of first trade OrderOpenPrice to open pending order. My code get error of " ")"-not all control paths return a value". Please tell me what mistake I maked?

Here my code:


Files:
forum.txt 1 kb
peter.MT4Web
158
peter.MT4Web 2016.06.25 17:52  

Hi!

You only return a value if your function finds an order. You also have to return a value if there is no order found.

hee gian xua
9
hee gian xua 2016.06.25 23:02  
eddie:

Hi!

You only return a value if your function finds an order. You also have to return a value if there is no order found.


Thank eddie... Problem solved...
/
To add comments, please log in or register