Ejemplo n.º 1
0
        /// <summary>
        /// конструктор
        /// </summary>
        public ForceIndexUi(ForceIndex forceindex)
        {
            InitializeComponent();
            _forceindex = forceindex;

            TextBoxLenght.Text = _forceindex.Period.ToString();

            HostColorBase.Child           = new TextBox();
            HostColorBase.Child.BackColor = _forceindex.ColorBase;
            CheckBoxPaintOnOff.IsChecked  = _forceindex.PaintOn;
            CandleBox.Items.Add(PriceTypePoints.Close);
            CandleBox.Items.Add(PriceTypePoints.Open);
            CandleBox.Items.Add(PriceTypePoints.High);
            CandleBox.Items.Add(PriceTypePoints.Low);

            Movingbox.Items.Add(MovingAverageTypeCalculation.Exponential);
            Movingbox.Items.Add(MovingAverageTypeCalculation.Simple);
            Movingbox.Items.Add(MovingAverageTypeCalculation.Weighted);
            Movingbox.Items.Add(MovingAverageTypeCalculation.Adaptive);

            CandleBox.SelectedItem = _forceindex.TypePoint;
            Movingbox.SelectedItem = _forceindex.TypeCalculationAverage;

            ButtonColorAdx.Content           = OsLocalization.Charts.LabelButtonIndicatorColor;
            CheckBoxPaintOnOff.Content       = OsLocalization.Charts.LabelPaintIntdicatorIsVisible;
            ButtonAccept.Content             = OsLocalization.Charts.LabelButtonIndicatorAccept;
            LabelIndicatorPeriod.Content     = OsLocalization.Charts.LabelIndicatorPeriod;
            LabelIndicatorCandleType.Content = OsLocalization.Charts.LabelIndicatorCandleType;
            LabelIndicatorSmaType.Content    = OsLocalization.Charts.LabelIndicatorSmaType;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// конструктор
        /// </summary>
        public ForceIndexUi(ForceIndex forceindex)
        {
            InitializeComponent();
            _forceindex = forceindex;

            TextBoxLenght.Text = _forceindex.Period.ToString();

            HostColorBase.Child           = new TextBox();
            HostColorBase.Child.BackColor = _forceindex.ColorBase;
            CheckBoxPaintOnOff.IsChecked  = _forceindex.PaintOn;
            CandleBox.Items.Add(PriceTypePoints.Close);
            CandleBox.Items.Add(PriceTypePoints.Open);
            CandleBox.Items.Add(PriceTypePoints.High);
            CandleBox.Items.Add(PriceTypePoints.Low);

            Movingbox.Items.Add(MovingAverageTypeCalculation.Exponential);
            Movingbox.Items.Add(MovingAverageTypeCalculation.Simple);
            Movingbox.Items.Add(MovingAverageTypeCalculation.Weighted);
            Movingbox.Items.Add(MovingAverageTypeCalculation.Adaptive);

            CandleBox.SelectedItem = _forceindex.TypePoint;
            Movingbox.SelectedItem = _forceindex.TypeCalculationAverage;
        }