if the code doesnt stop to execute it can only be because of
if ((PartClosePercent>0) && (Order_total>0))
condition is still true.
Marco vd Heijden:
if the code doesnt stop to execute it can only be because of
condition is still true.
right, how can avoid this and run it once per order? Any suggestion?
Thanks
it depends on your platform.
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
Hey guys,
I have a small issue with this part of code.
I need to close partially an order which is opened manually (so no magic)...
The problem is that the code doesn't stop to execute, so any order after will be resized as the first one till will go to 0. Ie. starting from 1 lot, will go to 0.5, 0.25 etc. but I just need to split it once.
I even added the datetime function but this didn't help...