IndicatorHelper

StockSharp.Algo.Indicators

Erweiterungsklasse für Indikatoren.

Methoden

CreateEmptyValue
public static IIndicatorValue CreateEmptyValue(IIndicator indicator, DateTime time)
result = IndicatorHelper.CreateEmptyValue(indicator, time)

Erstellen Sie leer IIndicatorValue.

indicator
IIndikator
time
Uhrzeit

Rückgabe: Leer IIndicatorValue.

CreateIndicator
public static IIndicator CreateIndicator(IndicatorType type)
result = IndicatorHelper.CreateIndicator(type)

Erstellen Sie einen Indikator.

type
IndicatorType

Rückgabe: IIndikator

ExcludeObsolete
public static IEnumerable<IndicatorType> ExcludeObsolete(IEnumerable<IndicatorType> types)
result = IndicatorHelper.ExcludeObsolete(types)

Beendet nicht mehr vorhandene Indikatoren.

types
Alle Indikatortypen.

Rückgabe: Gefilterte Sammlung.

GetCurrentValue
public static decimal GetCurrentValue(IIndicator indicator)
result = IndicatorHelper.GetCurrentValue(indicator)

Um den aktuellen Wert des Indikators zu erhalten.

indicator
Indikator.

Rückgabe: Der aktuelle Wert.

GetCurrentValue``1
public static T GetCurrentValue<T>(IIndicator indicator)
result = IndicatorHelper.GetCurrentValue(indicator)

Um den aktuellen Wert des Indikators zu erhalten.

indicator
Indikator.

Rückgabe: Der aktuelle Wert.

GetFirstValue
public static decimal GetFirstValue(IIndicator indicator)
result = IndicatorHelper.GetFirstValue(indicator)

Um den ersten Wert des Indikators zu erhalten.

indicator
Indikator.

Rückgabe: Der aktuelle Wert.

GetNullableCurrentValue
public static decimal? GetNullableCurrentValue(IIndicator indicator)
result = IndicatorHelper.GetNullableCurrentValue(indicator)

Um den aktuellen Wert des Indikators zu erhalten.

indicator
Indikator.

Rückgabe: Der aktuelle Wert.

GetNullableFirstValue
public static decimal? GetNullableFirstValue(IIndicator indicator)
result = IndicatorHelper.GetNullableFirstValue(indicator)

Um den ersten Wert des Indikators zu erhalten.

indicator
Indikator.

Rückgabe: Der aktuelle Wert.

GetNullableValue
public static decimal? GetNullableValue(IIndicator indicator, int index)
result = IndicatorHelper.GetNullableValue(indicator, index)

Um den Indikatorwert durch den Index (0 - letzter Wert) zu erhalten.

indicator
Indikator.
index
Der Wertindex.

Rückgabe: Indikatorwert.

GetValue
public static decimal GetValue(IIndicator indicator, int index)
result = IndicatorHelper.GetValue(indicator, index)

Um den Indikatorwert durch den Index (0 - letzter Wert) zu erhalten.

indicator
Indikator.
index
Der Wertindex.

Rückgabe: Indikatorwert.

GetValueType
public static Type GetValueType(Type indicatorType, bool isInput)
result = IndicatorHelper.GetValueType(indicatorType, isInput)

Werttyp für einen angegebenen Indikator abrufen.

indicatorType
Art des Indikators.
isInput
Ist Input.

Rückgabe: Wertart.

GetValue``1
public static T GetValue<T>(IIndicator indicator, int index)
result = IndicatorHelper.GetValue(indicator, index)

Um den Indikatorwert durch den Index (0 - letzter Wert) zu erhalten.

indicator
Indikator.
index
Der Wertindex.

Rückgabe: Indikatorwert.

IsNonDecimalOutputValue
public static bool IsNonDecimalOutputValue(Type indicator)
result = IndicatorHelper.IsNonDecimalOutputValue(indicator)

Bestimmt, ob der Indikator ein nicht dezimaler Ausgabewert ist.

indicator
Art des Indikators.

Rückgabe: Prüfergebnis.

Preload
public static void Preload(IIndicator indicator, IEnumerable<ValueTuple<DateTime, object[]>> items)
IndicatorHelper.Preload(indicator, items)

Massenvorladung mit primitiven Tupeln. Implementierungen können außer Kraft treten; Standard wirft NotSupportedException.

indicator
IIndikator
items
Sequenz von (Zeit, Werte), wobei Werte ToValues Ausgabe entsprechen.
Process
public static IIndicatorValue Process(IIndicator indicator, decimal value, DateTime time, bool isFinal)
result = IndicatorHelper.Process(indicator, value, time, isFinal)

Um den Indikator mit numerischem Wert zu erneuern.

indicator
Indikator.
value
Zahlenwert.
time
Uhrzeit
isFinal
Ist der Wert endgültig (der Indikator bildet schließlich seinen Wert und wird in diesem Zeitpunkt nicht mehr geändert).

Rückgabe: Der neue Wert des Indikators.

Process
public static IIndicatorValue Process(IIndicator indicator, ICandleMessage candle)
result = IndicatorHelper.Process(indicator, candle)

Um den Indikator mit Kerzenschlusskurs ClosePrice zu erneuern.

indicator
Indikator.
candle
Kerzen.

Rückgabe: Der neue Wert des Indikators.

Process
public static IIndicatorValue Process(IIndicator indicator, IIndicatorValue input, decimal value)
result = IndicatorHelper.Process(indicator, input, value)

Um den Indikator mit numerischem Wert zu erneuern.

indicator
Indikator.
input
IIndicatorValue
value
Zahlenwert.

Rückgabe: Der neue Wert des Indikators.

Process
public static IIndicatorValue Process(IIndicator indicator, object inputValue, DateTime time, bool isFinal)
result = IndicatorHelper.Process(indicator, inputValue, time, isFinal)

Um den Indikator mit neuem Wert zu erneuern.

indicator
Indikator.
inputValue
Inputwert.
time
Uhrzeit
isFinal
IsFinal

Rückgabe: IIndicatorValue.

Process``1
public static IIndicatorValue Process<TValue>(IIndicator indicator, ValueTuple<TValue, TValue> value, DateTime time, bool isFinal)
result = IndicatorHelper.Process(indicator, value, time, isFinal)

Um den Indikator mit numerischem Paar zu erneuern.

indicator
Indikator.
value
Das Wertepaar.
time
Uhrzeit
isFinal
Wenn das Paar endgültig ist (der Indikator bildet schließlich seinen Wert und wird in diesem Zeitpunkt nicht mehr geändert).

Rückgabe: Der neue Wert des Indikators.

SetValue
public static IIndicatorValue SetValue(IIndicatorValue input, IIndicator indicator, decimal value)
result = IndicatorHelper.SetValue(input, indicator, value)

Um den Indikatoreingangswert durch einen neuen zu ersetzen (zum Beispiel wird er von einem anderen Indikator empfangen).

input
IIndicatorValue
indicator
Indikator.
value
Wert.

Rückgabe: Neues Objekt, das den Eingabewert enthält.

ToCandle
public static ICandleMessage ToCandle(IIndicatorValue value)
result = IndicatorHelper.ToCandle(value)

Konvertieren Sie IIndicatorValue zu ICandleMessage.

value
IIndicatorValue

Rückgabe: ICandleMessage

ToDecimal
public static decimal ToDecimal(IIndicatorValue value, Level1Fields? source)
result = IndicatorHelper.ToDecimal(value, source)

Konvertieren Sie IIndicatorValue in Decimal.

value
IIndicatorValue
source
Angabe der Wertequelle.

Rückgabe: Dezimalzahl

ToNullableDecimal
public static decimal? ToNullableDecimal(IIndicatorValue value, Level1Fields? source)
result = IndicatorHelper.ToNullableDecimal(value, source)

Konvertieren Sie IIndicatorValue in Decimal oder wenn der Wert leer ist.

value
IIndicatorValue
source
Angabe der Wertequelle.

Rückgabe: Dezimal oder wenn der Wert leer ist.

TryCreateIndicator
public static IIndicator TryCreateIndicator(IndicatorType type)
result = IndicatorHelper.TryCreateIndicator(type)

Erstellen Sie einen Indikator.

type
IndicatorType

Rückgabe: IIndikator

TryGetById
public static IndicatorType TryGetById(IIndicatorProvider provider, string id)
result = IndicatorHelper.TryGetById(provider, id)

Versuchen Sie, IndicatorType @ nach Identifikator zu finden.

provider
IIndicatorProvider
id
Kennung.

Rückgabe: IndicatorType oder .

TryGetByType
public static IndicatorType TryGetByType(IIndicatorProvider provider, Type type)
result = IndicatorHelper.TryGetByType(provider, type)

Versuchen Sie, IndicatorType nach Typ zu finden.

provider
IIndicatorProvider
type
Indikator

Rückgabe: IndicatorType oder .