ITimeSeries.EndIndex

Syntax

EndIndex: Integer;

Description

The EndIndex property returns series end index.

Comments

To get the number of series calculation dates use the following formula: EndIndex - ITimeSeries.StartIndex + 1.

Example

This example describes custom method. The data series is passed by points.

Add links to the MathFin, Ms system assemblies.

Public Function UserFuncSt(Input: ITimeSeries): Double;
Begin
    
If (Input.EndIndex - Input.StartIndex) > 50
        
Then Return Math.Log10(Input.CurrentValue);
        
Else Return Double.Nan
    
End If;
End Function UserFuncSt;

The method returns base-10 logarithm of the series if it contains more than 50 points.

See also:

ITimeSeries