Example #1
0
        /// <summary>
        /// Launch the backtest result form.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void timer_Tick(object sender, EventArgs e)
        {
            if (this.LoadResult != "")
            {
                FormBacktestChart form = new FormBacktestChart();
                form.SetBacktestId(LoadResult);
                form.Show();
                this.Close();
            }

            if (QuantConnectPlugin.RateLimitReached)
            {
                QuantConnectPlugin.RateLimitReached = false;
                QuantConnectPlugin.ShowRateLimit();
                this.Close();
            }
        }
        /// <summary>
        /// Launch the backtest result form.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void timer_Tick(object sender, EventArgs e)
        {
            if (this.LoadResult != "")
            {
                FormBacktestChart form = new FormBacktestChart();
                form.SetBacktestId(LoadResult);
                form.Show();
                this.Close();                
            }

            if (QuantConnectPlugin.RateLimitReached)
            {
                QuantConnectPlugin.RateLimitReached = false;
                QuantConnectPlugin.ShowRateLimit();
                this.Close();
            }
        }