/// <summary> /// Initializes a new instance of the <see cref="RelativeStrengthIndex"/>. /// </summary> public RelativeStrengthIndex() { _gain = new SmoothedMovingAverage(); _loss = new SmoothedMovingAverage(); Length = 15; }
/// <summary> /// Создать <see cref="RelativeStrengthIndex"/>. /// </summary> public RelativeStrengthIndex() : base(typeof(decimal)) { _gain = new SmoothedMovingAverage(); _loss = new SmoothedMovingAverage(); Length = 15; }
//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(); }