Code: Select all
if marketposition=1 then sellshort next bar at market;
If so, why sellshort can not just send two orders, one is an exit order to close long position, and the other one is an entry order to open a short position ?
Code: Select all
if marketposition=1 then sellshort next bar at market;
Why do you want to do that?It will send a 2 shares entry order,1 share will close the long position and the other share will open a short position.On the end, I have a short position.Code: Select all
if marketposition=1 then sellshort next bar at market;
If so, why sellshort can not just send two orders, one is an exit order to close long position, and the other one is an entry order to open a short position ?
If you want to do so, you can use the Sell keyword to close the position and then use SellShort to initiate the short position. Note that, I suppose depending on your strategy settings, there needs to be at least one script calculation between these orders so that MultiCharts still won't combine them.If so, why sellshort can not just send two orders, one is an exit order to close long position, and the other one is an entry order to open a short position ?
Maybe he trades Chinese market, in which orders does not support Auto type, that is mean Sellshort 2 can not to be divided to one close order and one open order.Why do you want to do that?It will send a 2 shares entry order,1 share will close the long position and the other share will open a short position.On the end, I have a short position.Code: Select all
if marketposition=1 then sellshort next bar at market;
If so, why sellshort can not just send two orders, one is an exit order to close long position, and the other one is an entry order to open a short position ?
I don't guess.Maybe he trades Chinese market...Why do you want to do that?It will send a 2 shares entry order,1 share will close the long position and the other share will open a short position.On the end, I have a short position.Code: Select all
if marketposition=1 then sellshort next bar at market;
If so, why sellshort can not just send two orders, one is an exit order to close long position, and the other one is an entry order to open a short position ?