Пример #1
0
        /*
         * private void OnZscore(object sender, ZscoreEventArgs e )
         * {
         *  try
         *  {
         *      zscoreBid.Text = e.zscores[0].ToString();
         *      zscoreAsk.Text = e.zscores[1].ToString();
         *  }
         *  catch (Exception ex) {
         *
         *  }
         * }
         */

        private void OnFound(object sender, FoundEventArgs e)
        {
            btnConnect.Enabled = false;

            pgInstrumentA.Enabled = false;
            pgInstrumentB.Enabled = false;

            btnApplyStrat.Enabled = true;
            btnStart.Enabled      = true;
            btnOpen.Enabled       = false;

            this.Text = getInstrumentLine();

            Application.DoEvents();
        }
Пример #2
0
        /*
        private void OnZscore(object sender, ZscoreEventArgs e )
        {
            try
            {
                zscoreBid.Text = e.zscores[0].ToString();
                zscoreAsk.Text = e.zscores[1].ToString();
            }
            catch (Exception ex) {

            }
        }
        */
        private void OnFound(object sender, FoundEventArgs e)
        {
            btnConnect.Enabled = false;

            pgInstrumentA.Enabled = false;
            pgInstrumentB.Enabled = false;

            btnApplyStrat.Enabled = true;
            btnStart.Enabled = true;
            btnOpen.Enabled = false;

               this.Text = getInstrumentLine();

            Application.DoEvents();
        }