Beispiel #1
0
// scalp trade engine
// привод

        private void buttonBuyFast_Click_1(object sender, RoutedEventArgs e)
        {
            decimal volume;

            try
            {
                volume = TextBoxVolumeFast.Text.ToDecimal();
            }
            catch (Exception)
            {
                MessageBox.Show(OsLocalization.Trader.Label49);
                return;
            }
            _strategyKeeper.BotBuyMarket(volume);
        }
// привод

        private void buttonBuyFast_Click_1(object sender, RoutedEventArgs e)
        {
            int volume;

            try
            {
                volume = Convert.ToInt32(TextBoxVolumeFast.Text);
            }
            catch (Exception)
            {
                MessageBox.Show("В графе объём неправильное значение");
                return;
            }
            _strategyKeeper.BotBuyMarket(volume);
        }
Beispiel #3
0
// scalp trade engine
// привод

        private void buttonBuyFast_Click_1(object sender, RoutedEventArgs e)
        {
            decimal volume;

            try
            {
                volume = Convert.ToDecimal(TextBoxVolumeFast.Text.Replace(",",
                                                                          CultureInfo.InvariantCulture.NumberFormat.NumberDecimalSeparator),
                                           CultureInfo.InvariantCulture);
            }
            catch (Exception)
            {
                MessageBox.Show(OsLocalization.Trader.Label49);
                return;
            }
            _strategyKeeper.BotBuyMarket(volume);
        }