"Doesn't work"...how are you expecting someone to help ?
- "Doesn't work" is meaningless - just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires - meaningless. There are no mind readers here and our crystal balls are cracked.
- Posted code is without context. We have no idea where it is, or even if it is being called.
- Posted code simply sets some variables. We have no idea wether your "close code" is correct or even if it is being called.
- Use the debugger or print out your variables, including _LastError and find out why.
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
I'm trying to calculate the account balance percentage but this code does not help. Any advice?
I want to use account profit to close all orders when profit of all open orders exceeds 30 percent. All close code is correct but does seem to work is the code below right?