ISubscriptionHandler

StockSharp.Algo.Strategies

Subscription handler.

Implements: ISubscriptionHandler, IDisposable

Methods

Bind
public ISubscriptionHandler<T> Bind(IIndicator[] indicators, Action<T, decimal[]> callback)
result = iSubscriptionHandler.Bind(indicators, callback)

Bind indicator to the subscription.

indicators
Indicators.
callback
Callback.

Returns: ISubscriptionHandler

Bind
public ISubscriptionHandler<T> Bind(Action<T> callback)
result = iSubscriptionHandler.Bind(callback)

Bind the subscription.

callback
Callback.

Returns: ISubscriptionHandler

Bind
public ISubscriptionHandler<T> Bind(IIndicator indicator, Action<T, decimal> callback)
result = iSubscriptionHandler.Bind(indicator, callback)

Bind indicator to the subscription.

indicator
Indicator.
callback
Callback.

Returns: ISubscriptionHandler

Bind
public ISubscriptionHandler<T> Bind(IIndicator indicator1, IIndicator indicator2, IIndicator indicator3, IIndicator indicator4, IIndicator indicator5, IIndicator indicator6, IIndicator indicator7, IIndicator indicator8, Action<T, decimal, decimal, decimal, decimal, decimal, decimal, decimal, decimal> callback)
result = iSubscriptionHandler.Bind(indicator1, indicator2, indicator3, indicator4, indicator5, indicator6, indicator7, indicator8, callback)

Bind indicators to the subscription.

indicator1
Indicator.
indicator2
Indicator.
indicator3
Indicator.
indicator4
Indicator.
indicator5
Indicator.
indicator6
Indicator.
indicator7
Indicator.
indicator8
Indicator.
callback
Callback.

Returns: ISubscriptionHandler

Bind
public ISubscriptionHandler<T> Bind(IIndicator indicator1, IIndicator indicator2, Action<T, decimal, decimal> callback)
result = iSubscriptionHandler.Bind(indicator1, indicator2, callback)

Bind indicators to the subscription.

indicator1
Indicator.
indicator2
Indicator.
callback
Callback.

Returns: ISubscriptionHandler

Bind
public ISubscriptionHandler<T> Bind(IIndicator indicator1, IIndicator indicator2, IIndicator indicator3, IIndicator indicator4, IIndicator indicator5, IIndicator indicator6, IIndicator indicator7, Action<T, decimal, decimal, decimal, decimal, decimal, decimal, decimal> callback)
result = iSubscriptionHandler.Bind(indicator1, indicator2, indicator3, indicator4, indicator5, indicator6, indicator7, callback)

Bind indicators to the subscription.

indicator1
Indicator.
indicator2
Indicator.
indicator3
Indicator.
indicator4
Indicator.
indicator5
Indicator.
indicator6
Indicator.
indicator7
Indicator.
callback
Callback.

Returns: ISubscriptionHandler

Bind
public ISubscriptionHandler<T> Bind(IIndicator indicator1, IIndicator indicator2, IIndicator indicator3, Action<T, decimal, decimal, decimal> callback)
result = iSubscriptionHandler.Bind(indicator1, indicator2, indicator3, callback)

Bind indicators to the subscription.

indicator1
Indicator.
indicator2
Indicator.
indicator3
Indicator.
callback
Callback.

Returns: ISubscriptionHandler

Bind
public ISubscriptionHandler<T> Bind(IIndicator indicator1, IIndicator indicator2, IIndicator indicator3, IIndicator indicator4, IIndicator indicator5, IIndicator indicator6, Action<T, decimal, decimal, decimal, decimal, decimal, decimal> callback)
result = iSubscriptionHandler.Bind(indicator1, indicator2, indicator3, indicator4, indicator5, indicator6, callback)

Bind indicators to the subscription.

indicator1
Indicator.
indicator2
Indicator.
indicator3
Indicator.
indicator4
Indicator.
indicator5
Indicator.
indicator6
Indicator.
callback
Callback.

Returns: ISubscriptionHandler

Bind
public ISubscriptionHandler<T> Bind(IIndicator indicator1, IIndicator indicator2, IIndicator indicator3, IIndicator indicator4, Action<T, decimal, decimal, decimal, decimal> callback)
result = iSubscriptionHandler.Bind(indicator1, indicator2, indicator3, indicator4, callback)

Bind indicators to the subscription.

indicator1
Indicator.
indicator2
Indicator.
indicator3
Indicator.
indicator4
Indicator.
callback
Callback.

Returns: ISubscriptionHandler

Bind
public ISubscriptionHandler<T> Bind(IIndicator indicator1, IIndicator indicator2, IIndicator indicator3, IIndicator indicator4, IIndicator indicator5, Action<T, decimal, decimal, decimal, decimal, decimal> callback)
result = iSubscriptionHandler.Bind(indicator1, indicator2, indicator3, indicator4, indicator5, callback)

Bind indicators to the subscription.

indicator1
Indicator.
indicator2
Indicator.
indicator3
Indicator.
indicator4
Indicator.
indicator5
Indicator.
callback
Callback.

Returns: ISubscriptionHandler

BindEx
public ISubscriptionHandler<T> BindEx(IIndicator indicator1, IIndicator indicator2, IIndicator indicator3, IIndicator indicator4, Action<T, IIndicatorValue, IIndicatorValue, IIndicatorValue, IIndicatorValue> callback, bool allowEmpty)
result = iSubscriptionHandler.BindEx(indicator1, indicator2, indicator3, indicator4, callback, allowEmpty)

Bind indicators to the subscription.

indicator1
Indicator.
indicator2
Indicator.
indicator3
Indicator.
indicator4
Indicator.
callback
Callback.
allowEmpty
If , then the callback will be called even if one of the indicators returns empty value.

Returns: ISubscriptionHandler

BindEx
public ISubscriptionHandler<T> BindEx(IIndicator indicator1, IIndicator indicator2, IIndicator indicator3, IIndicator indicator4, IIndicator indicator5, IIndicator indicator6, IIndicator indicator7, IIndicator indicator8, Action<T, IIndicatorValue, IIndicatorValue, IIndicatorValue, IIndicatorValue, IIndicatorValue, IIndicatorValue, IIndicatorValue, IIndicatorValue> callback, bool allowEmpty)
result = iSubscriptionHandler.BindEx(indicator1, indicator2, indicator3, indicator4, indicator5, indicator6, indicator7, indicator8, callback, allowEmpty)

Bind indicators to the subscription.

indicator1
Indicator.
indicator2
Indicator.
indicator3
Indicator.
indicator4
Indicator.
indicator5
Indicator.
indicator6
Indicator.
indicator7
Indicator.
indicator8
Indicator.
callback
Callback.
allowEmpty
If , then the callback will be called even if one of the indicators returns empty value.

Returns: ISubscriptionHandler

BindEx
public ISubscriptionHandler<T> BindEx(IIndicator indicator1, IIndicator indicator2, IIndicator indicator3, IIndicator indicator4, IIndicator indicator5, IIndicator indicator6, IIndicator indicator7, Action<T, IIndicatorValue, IIndicatorValue, IIndicatorValue, IIndicatorValue, IIndicatorValue, IIndicatorValue, IIndicatorValue> callback, bool allowEmpty)
result = iSubscriptionHandler.BindEx(indicator1, indicator2, indicator3, indicator4, indicator5, indicator6, indicator7, callback, allowEmpty)

Bind indicators to the subscription.

indicator1
Indicator.
indicator2
Indicator.
indicator3
Indicator.
indicator4
Indicator.
indicator5
Indicator.
indicator6
Indicator.
indicator7
Indicator.
callback
Callback.
allowEmpty
If , then the callback will be called even if one of the indicators returns empty value.

Returns: ISubscriptionHandler

BindEx
public ISubscriptionHandler<T> BindEx(IIndicator indicator1, IIndicator indicator2, IIndicator indicator3, IIndicator indicator4, IIndicator indicator5, IIndicator indicator6, Action<T, IIndicatorValue, IIndicatorValue, IIndicatorValue, IIndicatorValue, IIndicatorValue, IIndicatorValue> callback, bool allowEmpty)
result = iSubscriptionHandler.BindEx(indicator1, indicator2, indicator3, indicator4, indicator5, indicator6, callback, allowEmpty)

Bind indicators to the subscription.

indicator1
Indicator.
indicator2
Indicator.
indicator3
Indicator.
indicator4
Indicator.
indicator5
Indicator.
indicator6
Indicator.
callback
Callback.
allowEmpty
If , then the callback will be called even if one of the indicators returns empty value.

Returns: ISubscriptionHandler

BindEx
public ISubscriptionHandler<T> BindEx(IIndicator indicator1, IIndicator indicator2, IIndicator indicator3, IIndicator indicator4, IIndicator indicator5, Action<T, IIndicatorValue, IIndicatorValue, IIndicatorValue, IIndicatorValue, IIndicatorValue> callback, bool allowEmpty)
result = iSubscriptionHandler.BindEx(indicator1, indicator2, indicator3, indicator4, indicator5, callback, allowEmpty)

Bind indicators to the subscription.

indicator1
Indicator.
indicator2
Indicator.
indicator3
Indicator.
indicator4
Indicator.
indicator5
Indicator.
callback
Callback.
allowEmpty
If , then the callback will be called even if one of the indicators returns empty value.

Returns: ISubscriptionHandler

BindEx
public ISubscriptionHandler<T> BindEx(IIndicator[] indicators, Action<T, IIndicatorValue[]> callback, bool allowEmpty)
result = iSubscriptionHandler.BindEx(indicators, callback, allowEmpty)

Bind indicators to the subscription.

indicators
Indicators.
callback
Callback.
allowEmpty
If , then the callback will be called even if one of the indicators returns empty value.

Returns: ISubscriptionHandler

BindEx
public ISubscriptionHandler<T> BindEx(IIndicator indicator1, IIndicator indicator2, IIndicator indicator3, Action<T, IIndicatorValue, IIndicatorValue, IIndicatorValue> callback, bool allowEmpty)
result = iSubscriptionHandler.BindEx(indicator1, indicator2, indicator3, callback, allowEmpty)

Bind indicators to the subscription.

indicator1
Indicator.
indicator2
Indicator.
indicator3
Indicator.
callback
Callback.
allowEmpty
If , then the callback will be called even if one of the indicators returns empty value.

Returns: ISubscriptionHandler

BindEx
public ISubscriptionHandler<T> BindEx(IIndicator indicator1, IIndicator indicator2, Action<T, IIndicatorValue, IIndicatorValue> callback, bool allowEmpty)
result = iSubscriptionHandler.BindEx(indicator1, indicator2, callback, allowEmpty)

Bind indicators to the subscription.

indicator1
Indicator.
indicator2
Indicator.
callback
Callback.
allowEmpty
If , then the callback will be called even if one of the indicators returns empty value.

Returns: ISubscriptionHandler

BindEx
public ISubscriptionHandler<T> BindEx(IIndicator indicator, Action<T, IIndicatorValue> callback, bool allowEmpty)
result = iSubscriptionHandler.BindEx(indicator, callback, allowEmpty)

Bind indicator to the subscription.

indicator
Indicator.
callback
Callback.
allowEmpty
If , then the callback will be called even if the indicator returns empty value.

Returns: ISubscriptionHandler

BindWithEmpty
public ISubscriptionHandler<T> BindWithEmpty(IIndicator[] indicators, Action<T, decimal?[]> callback)
result = iSubscriptionHandler.BindWithEmpty(indicators, callback)

Bind indicators to the subscription with possible empty IsEmpty values.

indicators
Indicators.
callback
Callback.

Returns: ISubscriptionHandler

BindWithEmpty
public ISubscriptionHandler<T> BindWithEmpty(IIndicator indicator1, IIndicator indicator2, IIndicator indicator3, IIndicator indicator4, Action<T, decimal?, decimal?, decimal?, decimal?> callback)
result = iSubscriptionHandler.BindWithEmpty(indicator1, indicator2, indicator3, indicator4, callback)

Bind indicators to the subscription with possible empty IsEmpty values.

indicator1
Indicator.
indicator2
Indicator.
indicator3
Indicator.
indicator4
Indicator.
callback
Callback.

Returns: ISubscriptionHandler

BindWithEmpty
public ISubscriptionHandler<T> BindWithEmpty(IIndicator indicator1, IIndicator indicator2, IIndicator indicator3, IIndicator indicator4, IIndicator indicator5, IIndicator indicator6, Action<T, decimal?, decimal?, decimal?, decimal?, decimal?, decimal?> callback)
result = iSubscriptionHandler.BindWithEmpty(indicator1, indicator2, indicator3, indicator4, indicator5, indicator6, callback)

Bind indicators to the subscription with possible empty IsEmpty values.

indicator1
Indicator.
indicator2
Indicator.
indicator3
Indicator.
indicator4
Indicator.
indicator5
Indicator.
indicator6
Indicator.
callback
Callback.

Returns: ISubscriptionHandler

BindWithEmpty
public ISubscriptionHandler<T> BindWithEmpty(IIndicator indicator1, IIndicator indicator2, IIndicator indicator3, Action<T, decimal?, decimal?, decimal?> callback)
result = iSubscriptionHandler.BindWithEmpty(indicator1, indicator2, indicator3, callback)

Bind indicators to the subscription with possible empty IsEmpty values.

indicator1
Indicator.
indicator2
Indicator.
indicator3
Indicator.
callback
Callback.

Returns: ISubscriptionHandler

BindWithEmpty
public ISubscriptionHandler<T> BindWithEmpty(IIndicator indicator1, IIndicator indicator2, IIndicator indicator3, IIndicator indicator4, IIndicator indicator5, IIndicator indicator6, IIndicator indicator7, Action<T, decimal?, decimal?, decimal?, decimal?, decimal?, decimal?, decimal?> callback)
result = iSubscriptionHandler.BindWithEmpty(indicator1, indicator2, indicator3, indicator4, indicator5, indicator6, indicator7, callback)

Bind indicators to the subscription with possible empty IsEmpty values.

indicator1
Indicator.
indicator2
Indicator.
indicator3
Indicator.
indicator4
Indicator.
indicator5
Indicator.
indicator6
Indicator.
indicator7
Indicator.
callback
Callback.

Returns: ISubscriptionHandler

BindWithEmpty
public ISubscriptionHandler<T> BindWithEmpty(IIndicator indicator1, IIndicator indicator2, Action<T, decimal?, decimal?> callback)
result = iSubscriptionHandler.BindWithEmpty(indicator1, indicator2, callback)

Bind indicators to the subscription with possible empty IsEmpty values.

indicator1
Indicator.
indicator2
Indicator.
callback
Callback.

Returns: ISubscriptionHandler

BindWithEmpty
public ISubscriptionHandler<T> BindWithEmpty(IIndicator indicator1, IIndicator indicator2, IIndicator indicator3, IIndicator indicator4, IIndicator indicator5, IIndicator indicator6, IIndicator indicator7, IIndicator indicator8, Action<T, decimal?, decimal?, decimal?, decimal?, decimal?, decimal?, decimal?, decimal?> callback)
result = iSubscriptionHandler.BindWithEmpty(indicator1, indicator2, indicator3, indicator4, indicator5, indicator6, indicator7, indicator8, callback)

Bind indicators to the subscription with possible empty IsEmpty values.

indicator1
Indicator.
indicator2
Indicator.
indicator3
Indicator.
indicator4
Indicator.
indicator5
Indicator.
indicator6
Indicator.
indicator7
Indicator.
indicator8
Indicator.
callback
Callback.

Returns: ISubscriptionHandler

BindWithEmpty
public ISubscriptionHandler<T> BindWithEmpty(IIndicator indicator, Action<T, decimal?> callback)
result = iSubscriptionHandler.BindWithEmpty(indicator, callback)

Bind indicator to the subscription with possible empty IsEmpty values.

indicator
Indicator.
callback
Callback.

Returns: ISubscriptionHandler

BindWithEmpty
public ISubscriptionHandler<T> BindWithEmpty(IIndicator indicator1, IIndicator indicator2, IIndicator indicator3, IIndicator indicator4, IIndicator indicator5, Action<T, decimal?, decimal?, decimal?, decimal?, decimal?> callback)
result = iSubscriptionHandler.BindWithEmpty(indicator1, indicator2, indicator3, indicator4, indicator5, callback)

Bind indicators to the subscription with possible empty IsEmpty values.

indicator1
Indicator.
indicator2
Indicator.
indicator3
Indicator.
indicator4
Indicator.
indicator5
Indicator.
callback
Callback.

Returns: ISubscriptionHandler

Start
public ISubscriptionHandler<T> Start()
result = iSubscriptionHandler.Start()

Start subscription.

Returns: ISubscriptionHandler

Stop
public ISubscriptionHandler<T> Stop()
result = iSubscriptionHandler.Stop()

Start subscription.

Returns: ISubscriptionHandler