ziyang2048:
Hi guys, I have some question
May I ask what's wrong with my code, it successfully place an order and modify position sltp,
but it can't close the position, why?
Did you check the retcode?
Btw change
else if(Request.type == ORDER_TYPE_BUY) { Request.sl = 26261.00; Request.tp = 21222.00; }
to
else if(Request.type == ORDER_TYPE_SELL) { Request.sl = 26261.00; Request.tp = 21222.00; }
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 guys, I have some question
May I ask what's wrong with my code, it successfully place an order and modify position sltp,
but it can't close the position, why?