示例#1
0
        /// <summary>
        /// constructor
        /// конструктор
        /// </summary>
        /// <param name="uniqName">unique name/уникальное имя</param>
        /// <param name="canDelete">whether user can remove indicator from chart manually/можно ли пользователю удалить индикатор с графика вручную</param>
        public ForceIndex(string uniqName, bool canDelete)
        {
            Name                   = uniqName;
            TypeIndicator          = IndicatorChartPaintType.Line;
            TypeCalculationAverage = MovingAverageTypeCalculation.Exponential;
            TypePoint              = PriceTypePoints.Close;
            Period                 = 13;
            ColorBase              = Color.DodgerBlue;
            PaintOn                = true;
            CanDelete              = canDelete;

            Load();
        }