Here i'm draw trendline...
Code: Select all
bottom = new ChartPoint(datetimelow,mtlow);
top = new ChartPoint(MT_RIAL_DATATIME_MAX,mtlow);
Tl2.Value=DrwTrendLine.Create(bottom, top);
is correct the following instruction :
Code: Select all
if (Tl2.Value!=null)
{Tl2.Value.Begin=(new ChartPoint(datetimehigh,mtlow));
Tl2.Value.End=(new ChartPoint(datetimelow,mtlow));
}