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
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
IIndicatorIndicator.
indicator2
IIndicatorIndicator.
indicator3
IIndicatorIndicator.
callback
Action<T, IIndicatorValue, IIndicatorValue, IIndicatorValue>Callback.
Returns
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
IIndicatorIndicator.
indicator2
IIndicatorIndicator.
indicator3
IIndicatorIndicator.
callback
Action<T, decimal, decimal, decimal>Callback.
Returns
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
IIndicatorIndicator.
indicator2
IIndicatorIndicator.
callback
Action<T, IIndicatorValue, IIndicatorValue>Callback.
Returns
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
IIndicatorIndicator.
indicator2
IIndicatorIndicator.
callback
Action<T, decimal, decimal>Callback.
Returns
Bind(IIndicator, Action<T, IIndicatorValue>)
Bind indicator to the subscription.
public Strategy.SubscriptionHandler<T> Bind(IIndicator indicator, Action<T, IIndicatorValue> callback)
Parameters
indicator
IIndicatorIndicator.
callback
Action<T, IIndicatorValue>Callback.
Returns
Bind(IIndicator, Action<T, decimal>)
Bind indicator to the subscription.
public Strategy.SubscriptionHandler<T> Bind(IIndicator indicator, Action<T, decimal> callback)
Parameters
indicator
IIndicatorIndicator.
callback
Action<T, decimal>Callback.
Returns
Bind(Action<T>)
Bind the subscription.
public Strategy.SubscriptionHandler<T> Bind(Action<T> callback)
Parameters
callback
Action<T>Callback.
Returns
Start()
Start subscription.
public Strategy.SubscriptionHandler<T> Start()