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
Methods
Bind(IIndicator, IIndicator, IIndicator, IIndicator, Action<T, decimal, decimal, decimal, decimal>)
Bind indicators to the subscription.
ISubscriptionHandler<T> Bind(IIndicator indicator1, IIndicator indicator2, IIndicator indicator3, IIndicator indicator4, Action<T, decimal, decimal, decimal, decimal> callback)
Parameters
indicator1
IIndicatorIndicator.
indicator2
IIndicatorIndicator.
indicator3
IIndicatorIndicator.
indicator4
IIndicatorIndicator.
callback
Action<T, decimal, decimal, decimal, decimal>Callback.
Returns
Bind(IIndicator, IIndicator, IIndicator, Action<T, decimal, decimal, decimal>)
Bind indicators to the subscription.
ISubscriptionHandler<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, decimal, decimal>)
Bind indicators to the subscription.
ISubscriptionHandler<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, decimal>)
Bind indicator to the subscription.
ISubscriptionHandler<T> Bind(IIndicator indicator, Action<T, decimal> callback)
Parameters
indicator
IIndicatorIndicator.
callback
Action<T, decimal>Callback.
Returns
Bind(IIndicator[], Action<T, decimal[]>)
Bind indicator to the subscription.
ISubscriptionHandler<T> Bind(IIndicator[] indicators, Action<T, decimal[]> callback)
Parameters
indicators
IIndicator[]Indicators.
callback
Action<T, decimal[]>Callback.
Returns
Bind(Action<T>)
Bind the subscription.
ISubscriptionHandler<T> Bind(Action<T> callback)
Parameters
callback
Action<T>Callback.
Returns
BindEx(IIndicator, IIndicator, IIndicator, IIndicator, Action<T, IIndicatorValue, IIndicatorValue, IIndicatorValue, IIndicatorValue>, bool)
Bind indicators to the subscription.
ISubscriptionHandler<T> BindEx(IIndicator indicator1, IIndicator indicator2, IIndicator indicator3, IIndicator indicator4, Action<T, IIndicatorValue, IIndicatorValue, IIndicatorValue, IIndicatorValue> callback, bool allowEmpty = false)
Parameters
indicator1
IIndicatorIndicator.
indicator2
IIndicatorIndicator.
indicator3
IIndicatorIndicator.
indicator4
IIndicatorIndicator.
callback
Action<T, IIndicatorValue, IIndicatorValue, IIndicatorValue, IIndicatorValue>Callback.
allowEmpty
boolIf true, then the callback will be called even if one of the indicators returns empty value.
Returns
BindEx(IIndicator, IIndicator, IIndicator, Action<T, IIndicatorValue, IIndicatorValue, IIndicatorValue>, bool)
Bind indicators to the subscription.
ISubscriptionHandler<T> BindEx(IIndicator indicator1, IIndicator indicator2, IIndicator indicator3, Action<T, IIndicatorValue, IIndicatorValue, IIndicatorValue> callback, bool allowEmpty = false)
Parameters
indicator1
IIndicatorIndicator.
indicator2
IIndicatorIndicator.
indicator3
IIndicatorIndicator.
callback
Action<T, IIndicatorValue, IIndicatorValue, IIndicatorValue>Callback.
allowEmpty
boolIf true, then the callback will be called even if one of the indicators returns empty value.
Returns
BindEx(IIndicator, IIndicator, Action<T, IIndicatorValue, IIndicatorValue>, bool)
Bind indicators to the subscription.
ISubscriptionHandler<T> BindEx(IIndicator indicator1, IIndicator indicator2, Action<T, IIndicatorValue, IIndicatorValue> callback, bool allowEmpty = false)
Parameters
indicator1
IIndicatorIndicator.
indicator2
IIndicatorIndicator.
callback
Action<T, IIndicatorValue, IIndicatorValue>Callback.
allowEmpty
boolIf true, then the callback will be called even if one of the indicators returns empty value.
Returns
BindEx(IIndicator, Action<T, IIndicatorValue>, bool)
Bind indicator to the subscription.
ISubscriptionHandler<T> BindEx(IIndicator indicator, Action<T, IIndicatorValue> callback, bool allowEmpty = false)
Parameters
indicator
IIndicatorIndicator.
callback
Action<T, IIndicatorValue>Callback.
allowEmpty
boolIf true, then the callback will be called even if the indicator returns empty value.
Returns
BindEx(IIndicator[], Action<T, IIndicatorValue[]>, bool)
Bind indicators to the subscription.
ISubscriptionHandler<T> BindEx(IIndicator[] indicators, Action<T, IIndicatorValue[]> callback, bool allowEmpty = false)
Parameters
indicators
IIndicator[]Indicators.
callback
Action<T, IIndicatorValue[]>Callback.
allowEmpty
boolIf true, then the callback will be called even if one of the indicators returns empty value.
Returns
BindWithEmpty(IIndicator, IIndicator, IIndicator, IIndicator, Action<T, decimal?, decimal?, decimal?, decimal?>)
Bind indicators to the subscription with possible empty IsEmpty values.
ISubscriptionHandler<T> BindWithEmpty(IIndicator indicator1, IIndicator indicator2, IIndicator indicator3, IIndicator indicator4, Action<T, decimal?, decimal?, decimal?, decimal?> callback)
Parameters
indicator1
IIndicatorIndicator.
indicator2
IIndicatorIndicator.
indicator3
IIndicatorIndicator.
indicator4
IIndicatorIndicator.
callback
Action<T, decimal?, decimal?, decimal?, decimal?>Callback.
Returns
BindWithEmpty(IIndicator, IIndicator, IIndicator, Action<T, decimal?, decimal?, decimal?>)
Bind indicators to the subscription with possible empty IsEmpty values.
ISubscriptionHandler<T> BindWithEmpty(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
BindWithEmpty(IIndicator, IIndicator, Action<T, decimal?, decimal?>)
Bind indicators to the subscription with possible empty IsEmpty values.
ISubscriptionHandler<T> BindWithEmpty(IIndicator indicator1, IIndicator indicator2, Action<T, decimal?, decimal?> callback)
Parameters
indicator1
IIndicatorIndicator.
indicator2
IIndicatorIndicator.
callback
Action<T, decimal?, decimal?>Callback.
Returns
BindWithEmpty(IIndicator, Action<T, decimal?>)
Bind indicator to the subscription with possible empty IsEmpty values.
ISubscriptionHandler<T> BindWithEmpty(IIndicator indicator, Action<T, decimal?> callback)
Parameters
indicator
IIndicatorIndicator.
callback
Action<T, decimal?>Callback.
Returns
BindWithEmpty(IIndicator[], Action<T, decimal?[]>)
Bind indicators to the subscription with possible empty IsEmpty values.
ISubscriptionHandler<T> BindWithEmpty(IIndicator[] indicators, Action<T, decimal?[]> callback)
Parameters
indicators
IIndicator[]Indicators.
callback
Action<T, decimal?[]>Callback.
Returns
Start()
Start subscription.
ISubscriptionHandler<T> Start()