ITimeSeries.StartIndex

Syntax

StartIndex: Integer;

Description

The StartIndex property returns start index for series.

Comments

To get the number of series calculation dates use the following formula: ITimeSeries.EndIndex - 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 UserFunc(Input: ITimeSeries): Double;
Begin
    
If (Input.EndIndex - Input.StartIndex) > 50
        
Then Return Math.Log10(Input.CurrentValue);
        
Else Return Double.Nan
    
End If;
End Function UserFunc;

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

See also:

ITimeSeries