By popular request I've developed an example project with the common indicators, including: Bollinger Bands, Simple Moving Average, Exponential Moving Average, Relative Strength Index, Average True Range and MACD. Down the bottom of the algorithm we plot them together with price. I've also set it up to use Daily consolidators - this way the plots look like characteristic ones you'll see on other stock charting websites.
The engine updates the indicators automatically and feeds the value through to the algorithms output for charting! Its a pretty cool system under the hood. I'd recommend looking at the Github project.
Tadas Talaikis
Jared Broad
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.
Tadas Talaikis
Jared Broad
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.
Tadas Talaikis
var bitcoinIdentityConsolidator = new IdentityDataConsolidator();
Johnny Lee
Michael Handschuh
Johnny Lee
Michael Handschuh
Johnny Lee
public SymbolData(string symbol, QCAlgorithm algorithm) { Symbol = symbol; _bb = new BollingerBands(50, 3, MovingAverageType.Simple); algorithm.RegisterIndicator(Symbol, _bb, TimeSpan.FromMinutes(15)); }
Michael Handschuh
Timothy Comisky
Michael Handschuh
var price = Identity("SPY"); var fast = EMA("SPY", 7); var slow = EMA("SPY", 14); PlotIndicator("SPY", price, fast, slow);
Take a peek at the attached code below which creates a new plot called 'SPY' for the price and EMAs.Stephen
Timothy Comisky
Michael Handschuh
PlotIndicator("MyCustomChartName", Identity("SPY", Resolution.Daily));
This will add the closing daily spy price as a series to the 'MyCustomChartName' chart.Stephen
Michael Handschuh
Stephen
Stephen
fast = EMA(Symbol, 25, Resolution.Minute);
something like this (obviously doesn't work but sort of shows what I mean):fast = EMA(Symbol, 25, Resolution.Minute.Close);
Jared Broad
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!