Back

MACD for m1 timframe stock

 

Hello! how to remake macd for a 1 minute chart, and make a condition for opening deals at 9.30 am and closing at 16.30?

__________________________________________

https://github.com/Quantconnect/Lean/blob/master/Algorithm.CSharp/MACDTrendAlgorithm.cs

 

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,

You can make a 1-minute MACD indicator by simply changing the data and MACD resolution in the example algorithm that you linked to use Resolution.Minute. If you want to use finer resolution data, such as second, then you can specify a 1-minute MACD either by specifying the period argument as 60 and the resolution argument as Resolution.Second, just note that the MACD Resolution cannot be finer grained than the data resolution. Using Scheduled Events can help you force trade executions at specific times, and you can find out more about them here and here.

1

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.


 

Thank you. But where to go for more in-depth training, to understand where exactly to insert this section with the code? As well as other methods, indicators, etc; In the docs manual, this is all there, but there is no in-depth training.

0

The best place to train and get better at this is to practice, log results and debug, and then continue to learn. Our demonstration algorithms do a good job giving users a place to start and then working with this, making them more complex, etc. is a good method for practice. There are a lot of examples in the community forums as well where people are posting interesting ideas and solutions to algorithm designs. Our Boot Camp section is probably the best resource for users who are new to the QC platform, and so I would highly recommend completing this section as well.

1

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