IRubricatorFactor.FactData

Syntax

FactData: IRubricatorFactData;

Description

The FactData property returns indicator data.

Example

Executing the example requires a form, a button named Button1 on the form, the TabSheetBox component and the UiErAnalyzer component named UiErAnalyzer1 that is a data source for TabSheetBox. A working area of the time series database must be loaded to UiErAnalyzer1. The calculated series is supposed to be in the working area.

Click the button to execute the example.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    ErAn: IEaxAnalyzer;
    Laner: ILaner;
    Serie: ILanerSerie;
    CalculateSerie: ILanerCalculateSerie;
    Factor: IRubricatorFactor;
    i: integer;
    FData: IRubricatorFactData;
Begin
    ErAn := UiErAnalyzer1.ErAnalyzer;
    Laner := ErAn.Laner;
    For i := 0 To Laner.Series.Count - 1 Do
        Serie := Laner.Series.Item(i);
        If Serie.Kind = LnSerieKind.Calculate Then
            CalculateSerie := Serie As ILanerCalculateSerie;
            Factor := CalculateSerie.CreateFactor;
            FData := Factor.FactData;
            Debug.WriteLine(FData.FactorKey);
        End If;
    End For;
End Sub Button1OnClick;

After executing the example the console window displays keys of the indicators that correspond to the calculated series.

See also:

IRubricatorFactor