wing:
Are you setting 0.5 lots in your OrderClose() call for the
double lots parameter ?
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!
Did you make sure the value passed was valid? Help ... how to know broker's accepted volume ? - MQL4 forum
Did you test the return value and log the error What are Function return values ? How do I use them ? - MQL4 forum
solved, thank you all!
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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!