questions about sellshort/buy  [SOLVED]

Questions about MultiCharts and user contributed studies.
zxlee
Posts: 2
Joined: 07 Jan 2014
Has thanked: 3 times

questions about sellshort/buy

Postby zxlee » 04 May 2016

Code: Select all

if marketposition=1 then sellshort next bar at market;
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.

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 ?

User avatar
TJ
Posts: 7743
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: questions about sellshort/buy  [SOLVED]

Postby TJ » 04 May 2016

Code: Select all

if marketposition=1 then sellshort next bar at market;
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.

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 ?
Why do you want to do that?

User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Re: questions about sellshort/buy

Postby JoshM » 28 May 2016

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.

winnie

Re: questions about sellshort/buy

Postby winnie » 07 Jun 2016

Code: Select all

if marketposition=1 then sellshort next bar at market;
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.

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 ?
Why do you want to do that?
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.

If use sell to close, then sellshort to open, sellshort just can open in next bar or next tick, it's too late.
If sellshort can send 2 orders, it will open and close in the same bar or same tick, that can crap the real-time quote and the good trading opportunity.

User avatar
TJ
Posts: 7743
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: questions about sellshort/buy

Postby TJ » 07 Jun 2016

Code: Select all

if marketposition=1 then sellshort next bar at market;
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.

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 ?
Why do you want to do that?
Maybe he trades Chinese market...
I don't guess.
I don't assume.
This is trading.


Return to “MultiCharts”