protected void UnInitializeIndicator(Indicator indicator) { indicator.UnInitialize(); if (IndicatorUnInitializedEvent != null) { IndicatorUnInitializedEvent(this, indicator); } }
public void RemoveIndicator(Indicator indicator) { indicator.UnInitialize(); bool removeResult; lock (this) { removeResult = _indicators.Remove(indicator); } if (IndicatorUnInitializedEvent != null) { IndicatorUnInitializedEvent(this, indicator); } if (removeResult && IndicatorRemovedEvent != null) { IndicatorRemovedEvent(this, indicator); } }