For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
order_target_percent() problem
-
When I want to get full long position:
self.order_target_percent(target=1.0)
It works good.
But When I want to get full short position:
self.order_target_percent(target=-1.0)
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.
-
Thanks!
-
I use broker.set_checksubmit(False) , there is some trade is working well, but some not