Table of Contents

Class Strategy.SubscriptionHandler<T>

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

Subscription handler.

protected class Strategy.SubscriptionHandler<T>

Type Parameters

T

Market-data type.

Inheritance
Strategy.SubscriptionHandler<T>
Inherited Members
Extension Methods

Properties

Subscription

public Subscription Subscription { get; }

Property Value

Subscription

Methods

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

Bind indicators to the subscription.

public Strategy.SubscriptionHandler<T> Bind(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

Strategy.SubscriptionHandler<T>

Strategy.SubscriptionHandler<T>

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

Bind indicator to the subscription.

public Strategy.SubscriptionHandler<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

Strategy.SubscriptionHandler<T>

Strategy.SubscriptionHandler<T>

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

Bind indicators to the subscription.

public Strategy.SubscriptionHandler<T> Bind(IIndicator indicator1, IIndicator indicator2, Action<T, IIndicatorValue, IIndicatorValue> callback)

Parameters

indicator1 IIndicator

Indicator.

indicator2 IIndicator

Indicator.

callback Action<T, IIndicatorValue, IIndicatorValue>

Callback.

Returns

Strategy.SubscriptionHandler<T>

Strategy.SubscriptionHandler<T>

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

Bind indicator to the subscription.

public Strategy.SubscriptionHandler<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

Strategy.SubscriptionHandler<T>

Strategy.SubscriptionHandler<T>

Bind(IIndicator, Action<T, IIndicatorValue>)

Bind indicator to the subscription.

public Strategy.SubscriptionHandler<T> Bind(IIndicator indicator, Action<T, IIndicatorValue> callback)

Parameters

indicator IIndicator

Indicator.

callback Action<T, IIndicatorValue>

Callback.

Returns

Strategy.SubscriptionHandler<T>

Strategy.SubscriptionHandler<T>

Bind(IIndicator, Action<T, decimal>)

Bind indicator to the subscription.

public Strategy.SubscriptionHandler<T> Bind(IIndicator indicator, Action<T, decimal> callback)

Parameters

indicator IIndicator

Indicator.

callback Action<T, decimal>

Callback.

Returns

Strategy.SubscriptionHandler<T>

Strategy.SubscriptionHandler<T>

Bind(Action<T>)

Bind the subscription.

public Strategy.SubscriptionHandler<T> Bind(Action<T> callback)

Parameters

callback Action<T>

Callback.

Returns

Strategy.SubscriptionHandler<T>

Strategy.SubscriptionHandler<T>

Start()

Start subscription.

public Strategy.SubscriptionHandler<T> Start()

Returns

Strategy.SubscriptionHandler<T>

Strategy.SubscriptionHandler<T>