private void mnuStartStop_Click(object sender, RoutedEventArgs e)
        {
            if (State == State.Stopped)
            {
                if (SelectedHistoricalData == null)
                {
                    MessageBox.Show("Select historical data on which your code will be started.", "Info",
                                    MessageBoxButton.OK, MessageBoxImage.Information);
                    return;
                }

                State  = State.Running;
                Output = String.Empty;
                GetRandomCoefficient();
                CodeStateChanged?.Invoke(this, State);
            }
            else
            {
                if (State != State.Stopped)
                {
                    State = State.Stopped;
                    CodeStateChanged?.Invoke(this, State);
                }
            }
        }
        private void mnuBacktest_Click(object sender, RoutedEventArgs e)
        {
            if (State == State.Backtesting)
            {
                return;
            }

            if (SelectedHistoricalData == null)
            {
                MessageBox.Show("Select historical data on which your code will be started.", "Info",
                                MessageBoxButton.OK, MessageBoxImage.Information);
                return;
            }

            State = State.Backtesting;
            CodeStateChanged?.Invoke(this, State);
        }