Profile Picture

How to add a line or chart object to other panels other than Price?

Posted By dssdish 4 Years Ago

How to add a line or chart object to other panels other than Price?

Message
Posted Thursday November 28 2013
The following code adding a line to Price panel. How to add a line or chart object to other panels?
For example, Volume or available indicator panels.
// Setup our X coordinates.
DateTime startDate = DateTime.Now;
DateTime lastWeek = startDate.AddDays(-7);

// Create the line object
ChartLine line = new ChartLine(new ChartPoint(startDate, 20.00), new ChartPoint(lastWeek, 25.00), Color.RoyalBlue, 3);

// Add this object to the chart. "symbol" would equal the current symbol object in the system.
ChartObjects.Add(symbol, line);
Posted Friday November 29 2013
You can call the SetChartPane method on the chart object. IE:

line.SetChartPane("RSIPane");

Thanks,
Daniel


Similar Topics


Reading This Topic


2005-2017 © RightEdge Systems