Dear Community,
I have a manual strategy, I would like to automate only one rule - the exit (super simple, if bar closes below moving average, then sell the position).
I am very new to quant world - is my request even possible? (i.e. to automate only one piece of strategy)
thank you very much in advance
Alex
Michael Manus
Please check the official answer from Jared in this thread/post:
trading
Roberto M
I think you can do it. When your exit rule is true, set your stock postion to zero with self.SetHoldings(stock, 0). It does not require to enter previously a position with the algo.
Michael Manus
hm the problem is that if you trade manually in IB or something different, lets say with two users the same account, it will shutdown the automated strategy because it will see the trading /orders which were not initiated from the programm/strategy itself.
like you would drive a self driving car....only one is the driver
hopefully i understand your question correctly.
and yes turning it on after trading and going to bed would work
Alex Ursu
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.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!