Table of Contents

Interface ISubscriptionHandler<T>

Namespace
StockSharp.Algo.Strategies
Assembly
StockSharp.Algo.dll

Subscription handler.

public interface ISubscriptionHandler<T>

Type Parameters

T

Market-data type.

Extension Methods

Properties

Subscription

Subscription Subscription { get; }

Property Value

Subscription

Methods

Bind(IIndicator, IIndicator, IIndicator, Action<T, decimal, decimal, decimal>)

Bind indicator to the subscription.

ISubscriptionHandler<T> Bind(IIndicator indicator1, IIndicator indicator2, IIndicator indicator3, Action<T, decimal, decimal, decimal> callback)

Parameters

indicator1 IIndicator

Indicator.

indicator2 IIndicator

Indicator.

indicator3 IIndicator

Indicator.

callback Action<T, decimal, decimal, decimal>

Callback.

Returns

ISubscriptionHandler<T>

ISubscriptionHandler<T>

Bind(IIndicator, IIndicator, Action<T, decimal, decimal>)

Bind indicator to the subscription.

ISubscriptionHandler<T> Bind(IIndicator indicator1, IIndicator indicator2, Action<T, decimal, decimal> callback)

Parameters

indicator1 IIndicator

Indicator.

indicator2 IIndicator

Indicator.

callback Action<T, decimal, decimal>

Callback.

Returns

ISubscriptionHandler<T>

ISubscriptionHandler<T>

Bind(IIndicator, Action<T, decimal>)

Bind indicator to the subscription.

ISubscriptionHandler<T> Bind(IIndicator indicator, Action<T, decimal> callback)

Parameters

indicator IIndicator

Indicator.

callback Action<T, decimal>

Callback.

Returns

ISubscriptionHandler<T>

ISubscriptionHandler<T>

Bind(Action<T>)

Bind the subscription.

ISubscriptionHandler<T> Bind(Action<T> callback)

Parameters

callback Action<T>

Callback.

Returns

ISubscriptionHandler<T>

ISubscriptionHandler<T>

BindEx(IIndicator, IIndicator, IIndicator, Action<T, IIndicatorValue, IIndicatorValue, IIndicatorValue>)

Bind indicators to the subscription.

ISubscriptionHandler<T> BindEx(IIndicator indicator1, IIndicator indicator2, IIndicator indicator3, Action<T, IIndicatorValue, IIndicatorValue, IIndicatorValue> callback)

Parameters

indicator1 IIndicator

Indicator.

indicator2 IIndicator

Indicator.

indicator3 IIndicator

Indicator.

callback Action<T, IIndicatorValue, IIndicatorValue, IIndicatorValue>

Callback.

Returns

ISubscriptionHandler<T>

ISubscriptionHandler<T>

BindEx(IIndicator, IIndicator, Action<T, IIndicatorValue, IIndicatorValue>)

Bind indicators to the subscription.

ISubscriptionHandler<T> BindEx(IIndicator indicator1, IIndicator indicator2, Action<T, IIndicatorValue, IIndicatorValue> callback)

Parameters

indicator1 IIndicator

Indicator.

indicator2 IIndicator

Indicator.

callback Action<T, IIndicatorValue, IIndicatorValue>

Callback.

Returns

ISubscriptionHandler<T>

ISubscriptionHandler<T>

BindEx(IIndicator, Action<T, IIndicatorValue>)

Bind indicator to the subscription.

ISubscriptionHandler<T> BindEx(IIndicator indicator, Action<T, IIndicatorValue> callback)

Parameters

indicator IIndicator

Indicator.

callback Action<T, IIndicatorValue>

Callback.

Returns

ISubscriptionHandler<T>

ISubscriptionHandler<T>

Start()

Start subscription.

ISubscriptionHandler<T> Start()

Returns

ISubscriptionHandler<T>

ISubscriptionHandler<T>