Back

[Feature] Custom Chart Overlays

Hello All!

Thanks to some JS magic you can now overlay your charts however you'd like :) This means you can do things like:
Top Chart: SPY Price + SPY EMA + Buy-Sell Trades On the Price
Bottom Chart: RSI of the SPY Controlling the Trades

The chart index to controls where on the chart your overlay occurs:
Chart plotter = new Chart("Plotter");
plotter.AddSeries(new Series("EURUSD", SeriesType.Line, index:0));
plotter.AddSeries(new Series("EURUSD-200MA", SeriesType.Line, index:0));
plotter.AddSeries(new Series("Buy", SeriesType.Scatter, index:0));
plotter.AddSeries(new Series("Sell", SeriesType.Scatter, index:0));
plotter.AddSeries(new Series("EURUSD-RSI", SeriesType.Line, index:1));
AddChart(plotter);

Check out the example below:

Happy Coding!
Update Backtest






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.



You guys rock!
0

Hey QC; I'm having some trouble doing this in python as it's pretty hard to piece things together from the API tab. I'd like to simply plot the price of something (let's say SPY). Could you possibly post the python equivilent of this?

Thank You!

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