When trying to go long and short on the same security using this syntax my position is zero. Is it because am buy then selling as pose to buy 50% long and shorting 50%
order_target_percent(context.spy, .50)
order_target_percent(context.spy, -.50)