Back

Overlay on Stock Order Plotting

Hello All,

I am looking to either overlay a couple series on the Stock Order Plot (that shows the trades) and/or create another plot that has a stacked plot with the upper plot containing (3) series and the bottom plot containing (2) series.

I checked out the custom charts tutorial and I didn't see a way to overlay on the Stock Order Plot and have tried to match the name to maybe apply series to it that way with no luck. I also saw how to stack OR overlay, but I can't figure out how to do both.

Anyone have ideas?

Thanks!
Update Backtest








Having same issue!! University doesn't explain how to do this
0

If you'd like to overlay buy/sell points on your chart, I typically produce a scatter plot in the OnOrderEvent method.public override void OnOrderEvent(OrderEvent fill)
{
if (fill.Status.IsFill())
{
Plot("myChartName", "mySeriesName", indicatorValue);
}
}
This will need to be set up in the initialize method properly to be a scatter plot using the following:var chart = new Chart("myChartName");
chart.AddSeries(new Series("mySeriesName", SeriesType.Scatter));
AddChart(chart);
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.


Michael,

Thanks for the response!

This will definitely work to add buy/sell points. But I'm looking to have a stacked plot of (2) plots with each plot having multiple series. It seems like this should be simple to do, but I can't seem to figure it out.

SC
0

Just an update - today we shipped this feature so you can stack or overlay indicators in anyway you'd like! Check out the announcement with examples: https://www.quantconnect.com/forum/discussion/924

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