Your question is not totally clear, but let me try.
You want to issue buy order and sell order at the same time for the same data and gave position open. Right?
You can do this only if order sizes are different. Or you use different data feeds for buy and sell orders. Otherwise it will be zero position after both orders processing.
yes, I just want to have both of the two direction orders(long-open, short-open) at the same time.
I see. thank you