コード例 #1
0
// buttons with talking names / кнопки с говорящими названиями

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

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