If the viewer displays even the last trend value (the last value in the buffer of the tvPoints object), then the prediction allows to draw the line from this point to the future.
The prediction is drawn only by the tvGraph objects with setting the tvGraph.Type property to "Stairs", "StairsHoriz" or "Const(x)".
The property is used only if the graphic mode is set.
var oTView = pMe.Items("../TrendView");
var oTrend = oTView.Trends(0);
if (oTrend)
oTrend.DrawAfterPointsType = 1;