what's wrong with my code?
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; }
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?