Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RelativeStrengthIndex"/>.
        /// </summary>
        public RelativeStrengthIndex()
        {
            _gain = new SmoothedMovingAverage();
            _loss = new SmoothedMovingAverage();

            Length = 15;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Создать <see cref="RelativeStrengthIndex"/>.
        /// </summary>
        public RelativeStrengthIndex()
            : base(typeof(decimal))
        {
            _gain = new SmoothedMovingAverage();
            _loss = new SmoothedMovingAverage();

            Length = 15;
        }
Ejemplo n.º 3
0
        //private readonly SimpleMovingAverage _sma;

        /// <summary>
        /// Initializes a new instance of the <see cref="AlligatorLine"/>.
        /// </summary>
        public AlligatorLine()
        {
            _medianPrice = new MedianPrice();
            _sma         = new SmoothedMovingAverage();
            //_sma = new SimpleMovingAverage();
        }