Login Page - Create Account

Support Board


Date/Time: Fri, 10 Jan 2025 16:23:44 +0000



Post From: ACSIL - Unexpected reversal when using sc.SellOrder() and sc.BuyOrder() to flatten

[2016-09-16 05:56:19]
William O - Posts: 16
Thanks for the reply. I discovered this issue when working with a larger more complicated example than shown above. In my case I can most easily work around this behaviour by setting SupportReversals to 0.

However, I think this is a still a problem with unmanaged trading. I was hoping you'd be able to address this more thoroughly. If sc.BuyOrder is set to buy 1 contract and it buys 2, that certainly isn't correct. The only other thing I can add is that this does not happen when I'm flattening another symbol; It only happens when I'm flattening the same symbol as the chart. Whether o.Symbol or o.TradeAccount is set does not impact this problem.

Thanks again for your support.