IndicatorHelper

StockSharp.Algo.Indicators

インジケーターの拡張クラス。

メソッド

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.

戻り値: Copy.

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

Create empty IIndicatorValue.

indicator
インジケーター
time
タイムタイム

戻り値: Empty IIndicatorValue.

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

インジケータを作成します。.

type
担当: 佐藤 宏

戻り値: インジケーター

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

正規指標を除外します。

types
すべてのインジケータタイプ。

戻り値: フィルタリングされたコレクション。

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

インジケータの現在の値を取得するには.

indicator
インジケーター。

戻り値: 現在の値。

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

インジケータの現在の値を取得するには.

indicator
インジケーター。

戻り値: 現在の値。

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

インジケータの最初の値を取得するには.

indicator
インジケーター。

戻り値: 現在の値。

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

インジケータの現在の値を取得するには.

indicator
インジケーター。

戻り値: 現在の値。

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

インジケータの最初の値を取得するには.

indicator
インジケーター。

戻り値: 現在の値。

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

インデックス(0 - 最後の値)でインジケータ値を取得する。

indicator
インジケーター。
index
値のインデックス。

戻り値: インジケータ値。

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.

戻り値: 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.

戻り値: 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.

戻り値: Settable parameter properties.

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

インデックス(0 - 最後の値)でインジケータ値を取得する。

indicator
インジケーター。
index
値のインデックス。

戻り値: インジケータ値。

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

指定したインジケーターの値タイプを取得します。

indicatorType
インジケータタイプ。
isInput
入力です。

戻り値: 値タイプ。

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

インデックス(0 - 最後の値)でインジケータ値を取得する。

indicator
インジケーター。
index
値のインデックス。

戻り値: インジケータ値。

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

インジケータが非決定出力値かどうかを決定します。

indicator
インジケータタイプ。

戻り値: 結果をチェックする。

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)

プリミティブ・トゥプルを使用してバルク・プレロード。 実装は上書きするかもしれません。 デフォルトはNotSupportedExceptionをスローします。

indicator
インジケーター
items
ToValues出力に対応する値(時間、値)の配列。
Process
public static IIndicatorValue Process(IIndicator indicator, object inputValue, DateTime time, bool isFinal)
result = IndicatorHelper.Process(indicator, inputValue, time, isFinal)

新規価値のあるインジケータを更新する。

indicator
インジケーター。
inputValue
入力値。
time
タイムタイム
isFinal
担当: 佐藤 宏

戻り値: 代表取締役社長 佐藤 浩

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

数値でインジケータを更新するには.

indicator
インジケーター。
value
数値化値。
time
タイムタイム
isFinal
値が最終(インジケータは最終的にその値を形成し、もうこの時点では変更されません)。 デフォルトは .

戻り値: インジケータの新しい値。

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

キャンドル閉幕価格ClosePriceでインジケータを更新するには.

indicator
インジケーター。
candle
キャンドル。

戻り値: インジケータの新しい値。

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

数値でインジケータを更新するには.

indicator
インジケーター。
input
担当: 佐藤 宏
value
数値化値。

戻り値: インジケータの新しい値。

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

数値ペアでインジケータを更新するには.

indicator
インジケーター。
value
値のペア。
time
タイムタイム
isFinal
ペアファイナル(インジケータは最終的にその値を形成し、もうこの時点で変更されません)の場合。 デフォルトは .

戻り値: インジケータの新しい値。

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

インジケータの入力値を新しい値(例えば別のインジケータから受け取った)に置き換える。

input
担当: 佐藤 宏
indicator
インジケーター。
value
値。

戻り値: 入力値を含む新しいオブジェクト。

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

代表取締役社長 佐藤 浩一

value
担当: 佐藤 宏

戻り値: 担当: 佐藤 宏

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

変換IIndicatorValueをDecimalに。

value
担当: 佐藤 宏
source
フィールド指定値のソース。

戻り値: スケジュール

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

IIndicatorValueをDecimalに変換するか、値が空の場合に変換します。

value
担当: 佐藤 宏
source
フィールド指定値のソース。

戻り値: 値が空の場合、または値が空の場合。

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

インジケータを作成します。.

type
担当: 佐藤 宏

戻り値: インジケーター

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

Try find IndicatorType by identifier.

provider
担当: 佐藤 宏
id
識別子。

戻り値: IndicatorType or .

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

Try find IndicatorType by type.

provider
担当: 佐藤 宏
type
インフォメーション

戻り値: IndicatorType or .