this6767:
Hi, i'm trying to do a reverse position, but for some reason if i keep clicking to reverse sometimes it just closes the position and doesn't reverse .. i think i have to check if the order was successful before allowing it to open the other order ... this return for me error retcode 10004 or 100021
But even though I know this, I don't even know how I do the checks to change this in this code, if someone can give me an example I would appreciate it
My code:
retcode return 100021 [no quotes]
deviation i set = 100 but return 100021 again

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
Hi, i'm trying to do a reverse position, but for some reason if i keep clicking to reverse sometimes it just closes the position and doesn't reverse .. i think i have to check if the order was successful before allowing it to open the other order ... this return for me error retcode 10004 or 100021
But even though I know this, I don't even know how I do the checks to change this in this code, if someone can give me an example I would appreciate it
My code: