How to return OrderOpenPrice?

Back to topics list To post a new topic, please log in or register
avatar
2
tomnyhee84 2016.06.25 19: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:



Attached files:
  forum.txt  (0.63 KB)
avatar
108
eddie 2016.06.25 19: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.


avatar
2
tomnyhee84 2016.06.26 01: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...

Back to topics list  

To add comments, please log in or register