Beispiel #1
0
        private void numericUpDownMAPeriod_ValueChanged(object sender, EventArgs e)
        {
            var value = Convert.ToInt32(numericUpDownMAPeriod.Value);

            SettingsDepth.SetTF(CurrentTimeFrame.Period, "MovingAverage", value);
            GraphicStock.Indicators.ForEach((ind) =>
            {
                if (ind is MovingAverage)
                {
                    ((MovingAverage)ind).SetPeriod(value);
                }
            });
            UpdateGraphic();
        }
Beispiel #2
0
        private void buttonDec_Click(object sender, EventArgs e)
        {
            var obj      = (Control)sender;
            var ConstMin = 10;
            var val      = 1;

            if (obj.Tag.NotIsNull())
            {
                val = (int)obj.Tag;
            }
            this.CountCandleInGraphic += (int)(this.CountCandleInGraphic / ConstMin) + val;
            if (this.CountCandleInGraphic > 1500)
            {
                this.CountCandleInGraphic = 1500;
            }

            SettingsDepth.SetTF(TimeFrameUse.Value, "CountVisibleCandle", CountCandleInGraphic);
            UpdateGraphic();
        }