When I want to get full long position:
It works good.
But When I want to get full short position:
It does not work. So I have to use
self.order_target_percent(target=-0.9), but it has some deviations.
Is it a bug?
I guess you are having a similar margin problem as my previous post. Hope it helps.
It is not a bug with quite high confidence.
I use broker.set_checksubmit(False) , there is some trade is working well, but some not