CurrentValue: Variant;
CurrentValue: object;
The CurrentValue property returns value of the current series point.
This example describes custom method. Executing the example requires that a data series should be passed by points.
Add links to the MathFin, Ms system assemblies.
Public Function UserCurrentValue(Input: ITimeSeries): Double;
Begin
Return Math.Log10(Input.CurrentValue);
End Function UserCurrentValue;
After executing the example the method returns natural logarithm of series.
The requirements and result of the Fore.NET example execution match with those in the Fore example.
Imports Prognoz.Platform.Interop.MathFin;
Imports Prognoz.Platform.Interop.Ms;
…
Public Function UserCurrentValue(Input: ITimeSeries): Double;
Var
Math: MathClass = New MathClass();
Begin
Return Math.Log10(Input.CurrentValue As double);
End Function UserCurrentValue;
See also: