Esempio n. 1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="name">Pass null or empty to use the UserFriendly name attribute (applicable for custom indicators, not to GenericTaLib ones).</param>
        /// <param name="isTradeable"></param>
        /// <param name="isScaledToQuotes">Is the indicator the same number scale as quote dataDelivery (for ex. a same scaled indicator is a MA indicator, and a RSI is not)</param>
        public Indicator(string name, bool?isTradeable, bool?isScaledToQuotes, string[] resultSetNames)
        {
            _name = name;
            if (string.IsNullOrEmpty(_name))
            {
                _name = GetUserFriendlyName();
            }
            _tradeable      = isTradeable;
            _scaledToQuotes = isScaledToQuotes;

            _results    = new IndicatorResults(this, resultSetNames);
            _signals    = new IndicatorSignals(this);
            _parameters = new IndicatorParameters();
        }
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="name">Pass null or empty to use the UserFriendly name attribute (applicable for custom indicators, not to GenericTaLib ones).</param>
        /// <param name="isTradeable"></param>
        /// <param name="isScaledToQuotes">Is the indicator the same number scale as quote dataDelivery (for ex. a same scaled indicator is a MA indicator, and a RSI is not)</param>
        public Indicator(string name, bool? isTradeable, bool? isScaledToQuotes, string[] resultSetNames)
        {
            _name = name;
            if (string.IsNullOrEmpty(_name))
            {
                _name = GetUserFriendlyName();
            }
            _tradeable = isTradeable;
            _scaledToQuotes = isScaledToQuotes;

            _results = new IndicatorResults(this, resultSetNames);
            _signals = new IndicatorSignals(this);
            _parameters = new IndicatorParameters();
        }