Пример #1
0
        /// <summary>
        /// This function will be called after stopping a strategy
        /// </summary>
        protected override void OnStop()
        {
            if (_historicalData == null)
            {
                return;
            }

            _historicalData.RemoveIndicator(_maIndicator);
            _historicalData.RemoveIndicator(_rsiIndicator);

            _historicalData.NewHistoryItem     -= this._historicalData_NewHistoryItem;
            _historicalData.HistoryItemUpdated -= this._historicalData_HistoryItemUpdated;
        }