Back

Semi-automatic strategy - question

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

Update Backtest








Please check the official answer from Jared in this thread/post:

trading

0

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.

0

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

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