Back

Help Using Quant Connect

Hello,

I am new to using Quant Connect and have taken the boot camp and read the documentation, but I am still confused with how to do the following things (FYI: I'm using python):
1) how to calculate an EMA every hour using historic closing prices.
2) how to get and store the last 5 hours worth of highs.
3) how to place a stop order every hour (both long and short positions).
4) how to place a stop loss order with the stop order every hour.
5) how to place a take profit order with a stop order every hour.
6) how to cancel tickets (stop orders, SL orders, and take profit orders)
7) how to modify tickets (stop orders, SL orders, and take profit orders).

If anyone could help me with this I would greatly appreciate it!

Thanks

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.


Hi Derek,

Welcome to QuantConnect! To help with your questions, I've provided links to sections of our documentation that provide information and examples, but our Tutorials section and community forum contain a lot of helpful resources and examples as well.  

1) Documentation on indicators, including self.EMA(), and how to implement them

2) Documentation on RollingWindow to help stash previous Highs

3) Documentation on Scheduled Events and using self.Schedule.On() to help place an order (or another event) every hour

4) Community post about how to implement Stop Loss orders

5/6/7) The documentation on Trading and Orders will provide instruction and examples for canceling tickets and modifying orders

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.


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