Partial close of position

 

Dear all

For instance, my EA opened an order of 1 lot and I would like to close 0.5 lot now.

If totally 1 lot is closed at final, does it mean that broker does not allow partial close of an order? or I have to adjust any parameter in OrderClose function?

Is there any function like IsDemo() which can tell EA whether partial close is allowed by broker?


Thanks a lot!

 
wing:

Dear all

For instance, my EA opened an order of 1 lot and I would like to close 0.5 lot now.

If totally 1 lot is closed at final, does it mean that broker does not allow partial close of an order? or I have to adjust any parameter in OrderClose function?

Is there any function like IsDemo() which can tell EA whether partial close is allowed by broker?


Thanks a lot!

Are you setting 0.5 lots in your OrderClose() call for the double lots parameter ?
 
solved, thank you all!