ITextObject

Questions about MultiCharts .NET and user contributed studies.
macs
Posts: 4
Joined: 06 Nov 2013
Has thanked: 3 times

ITextObject

Postby macs » 22 Jun 2014

I'm trying to draw some custom text at points on the chart, and using the programming guide pg28 as a reference.

My indicator code looks like this:

Code: Select all

protected override void CalcBar(){
// indicator logic
if (<my conditions are met>)
{
ChartPoint top = new ChartPoint(Bars.TimeValue, Bars.HighValue);
if (top != null)
{
ITextObject txtObj = DrwText.Create(top, "PT");
txtObj.VStyle = ETextStyleV.Above;
}
}
But when I save, I get an exception
Image

Strangely, this works when I first load VisualStudio then run the solution which then starts Multicharts. But I get an exception when I load Multicharts first.

Any ideas?

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: ITextObject

Postby Henry MultiСharts » 23 Jun 2014

Hello macs,

This issue has been confirmed. The fix is targeted to MultiCharts .NET 9.0 Beta2.


Return to “MultiCharts .NET”