/// <summary> /// /// </summary> /// <param name="isTradeable"></param> /// <param name="isScaledToQuotes">Is the indicator the same number scale as quote data (for ex. a same scaled indicator is a MA indicator, and a RSI is not)</param> public Indicator(bool? isTradeable, bool? isScaledToQuotes, string[] resultSetNames) { _tradeable = isTradeable; _scaledToQuotes = isScaledToQuotes; name = GetUserFriendlyName(); _results = new IndicatorResults(this, resultSetNames); }
/// <summary> /// /// </summary> /// <param name="isTradeable"></param> /// <param name="isScaledToQuotes">Is the indicator the same number scale as quote data (for ex. a same scaled indicator is a MA indicator, and a RSI is not)</param> public Indicator(bool?isTradeable, bool?isScaledToQuotes, string[] resultSetNames) { _tradeable = isTradeable; _scaledToQuotes = isScaledToQuotes; name = GetUserFriendlyName(); _results = new IndicatorResults(this, resultSetNames); }
public void UnInitialize() { lock (this) { if (_dataProvider != null) { _dataProvider.ValuesUpdateEvent -= new ValuesUpdatedDelegate(_dataProvider_ValuesUpdateEvent); _dataProvider = null; } _results = null; } }