コード例 #1
0
        /// <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);
        }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
        public void UnInitialize()
        {
            lock (this)
            {
                if (_dataProvider != null)
                {
                    _dataProvider.ValuesUpdateEvent -= new ValuesUpdatedDelegate(_dataProvider_ValuesUpdateEvent);
                    _dataProvider = null;
                }

                _results = null;
            }
        }
コード例 #4
0
        public void UnInitialize()
        {
            lock (this)
            {
                if (_dataProvider != null)
                {
                    _dataProvider.ValuesUpdateEvent -= new ValuesUpdatedDelegate(_dataProvider_ValuesUpdateEvent);
                    _dataProvider = null;
                }

                _results = null;
            }
        }