RankCorrelationIndex

StockSharp.Algo.Indicators

Rangkorrelationsindex (Spearmans Rangkorrelationskoeffizient) Vergleicht Preisbewegungsranking vs. Zeitranking innerhalb des Fensters.

Erbt von: DecimalLengthIndicator

Konstruktoren

RankCorrelationIndex
public RankCorrelationIndex()
rankCorrelationIndex = RankCorrelationIndex()

Initialisiert eine neue Instanz von RankCorrelationIndex.

Eigenschaften

Measure
public override IndicatorMeasures Measure { get; }
value = rankCorrelationIndex.Measure

IndicatorMeasures.

Methoden

CalculateSpearmanCorrelation
private static decimal CalculateSpearmanCorrelation(decimal[] ranks1, decimal[] ranks2)
result = RankCorrelationIndex.CalculateSpearmanCorrelation(ranks1, ranks2)

Pearson Korrelation zwischen zwei Rang-Arrays (funktioniert mit Bindungen).

GetRanks
private static decimal[] GetRanks(IList<decimal> values)
result = RankCorrelationIndex.GetRanks(values)

Produzieren Sie ein Rang-Array mit einem durchschnittlichen Rang für Bindungen.

OnProcess
protected override IIndicatorValue OnProcess(IIndicatorValue input)
result = rankCorrelationIndex.OnProcess(input)

Um den Eingabewert zu verarbeiten.

input
Der Eingangswert.

Rückgabe: Der resultierende Wert.