IndicatorHelper

StockSharp.Algo.Indicators

Erweiterungsklasse für Indikatoren.

Methoden

ApplyParameters
public static void ApplyParameters(IIndicator indicator, IEnumerable<KeyValuePair<string, object>> parameters)
IndicatorHelper.ApplyParameters(indicator, parameters)

Applies to , keyed by property name and matched case-insensitively. A part of a composite is reached by naming the path to it - K.Length, Macd.LongMa.Length. A key the indicator does not have, or a value it refuses, leaves its own default in place.

indicator
Indicator.
parameters
Parameters.
Clone
public static IIndicator Clone(IIndicator indicator)
result = IndicatorHelper.Clone(indicator)

Create a copy of the indicator.

indicator
Indicator.

Rückgabe: Copy.

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.

GetOutputs
public static IReadOnlyList<ValueTuple<string, IIndicator>> GetOutputs(IIndicator indicator)
result = IndicatorHelper.GetOutputs(indicator)

The series produces: one entry for a plain indicator, one per innermost part for a composite.

indicator
Indicator.

Rückgabe: Series name paired with the part whose value it carries, in a stable order.

GetOutputValues
public static ValueTuple<decimal?[], int?> GetOutputValues(IIndicatorValue value, IReadOnlyList<IIndicator> parts)
result = IndicatorHelper.GetOutputValues(value, parts)

Reads one number per series out of .

value
What IIndicatorValue) returned. May be .
parts
The parts from IIndicator), in the same order.

Rückgabe: One entry per part, where that series has not formed yet, and the bars-back offset when a sparse indicator reports its value later than the candle it belongs to.

GetParameters
public static IEnumerable<PropertyInfo> GetParameters(Type indicatorType)
result = IndicatorHelper.GetParameters(indicatorType)

The properties of a caller may set: what the indicator declares itself, as opposed to the identity and drawing hints it inherits.

indicatorType
Indicator type.

Rückgabe: Settable parameter properties.

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.

NameInnerParts
private static Dictionary<IIndicator, string> NameInnerParts(IComplexIndicator complex)
result = IndicatorHelper.NameInnerParts(complex)

Names the inner parts after the properties exposing them - UpBand, SignalMa, Dx. Their own Name is localized display text, which would make the series keys change with the language the process is running in.

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, 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
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``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 .