Exemplo n.º 1
0
        /// <summary>
        /// To get the current value of the indicator.
        /// </summary>
        /// <param name="indicator">Indicator.</param>
        /// <returns>The current value.</returns>
        public static decimal GetCurrentValue(this IIndicator indicator)
        {
            if (indicator == null)
            {
                throw new ArgumentNullException(nameof(indicator));
            }

            return(indicator.GetCurrentValue <decimal>());
        }