Charting with buy and sell signals

How do I see my code reflected on a chart with graphically drawn buy and sell signals?

Update Backtest

Hi Ted,

Hope this helps:
In the backtest i am posting there is an example algo for Custom Charting with several features demonstration. After running take a look at "Trade Plot" Chart.

// Chart - Master Container for the Chart:
var stockPlot = new Chart("Trade Plot");
// On the Trade Plotter Chart we want 3 series: trades and price:
var buyOrders = new Series("Buy", SeriesType.Scatter, 0);
var sellOrders = new Series("Sell", SeriesType.Scatter, 0);
var assetPrice = new Series("Price", SeriesType.Line, 0);

// Later in your OnData(Slice data):
Plot("Trade Plot", "Price", data.Bars["SPY"].Close);



Fantastic. Thank you for assisting. Please accept my apologies as I am not

quite sure how to implement what you have posted and I don't see any

buy/sell markers in the screenshot to indicate that it might be capable of

producing them.

I know I am missing a lot of newbie stuff here. Any further direction would

be helpful.

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.


This discussion is closed