Back

Long and Short same security

Hello, May I know how to long and short same security.

Problem is: When I place a long order and then a short order, it combines both and the quantity shows only one of them (long or short based on which is higher). i.e., long 100, short -225 results in quantity to be -125. I would like to have both long and short and liquidate when needed

Can you pl let me know if this is possible
Update Backtest








Hey @Bharath, sorry its currently not supported. You can submit an issue requesting this feature on Github.

Can you share an example of why you'd want to do this? (vs simply selling part of your holdings)
0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


it seems options would be a more viable strategy...would you agree?
0

Update Backtest





0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Loading...

This discussion is closed