Download MetaTrader 5

How to return OrderOpenPrice?

To add comments, please log in or register
hee gian xua
9
hee gian xua  
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
157
peter.MT4Web  

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  
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