public SecurityManager(ConnectorQuik Q)
 {
     InitializeComponent();
     connector = Q;
     if (connector.connected)
     {
         connector.SendCom(SendCommand.GetClassCode, "");
     }
     connector.Event_GetClassCode += Connector_Event_GetClassCode;
     connector.Event_GetSecurity  += Connector_Event_GetSecurity;
 }
示例#2
0
        public DataSeriesSec(string pNam, double dltT, Exchange ex, TimeFrame1 tf, chartStyle chartSt, int ignoreTickForSum, ConnectorQuik con, WindowGL ch)
        {
            Bars      = new Dictionary <DateTime, PriceClaster>();
            chart     = ch;
            connector = con;
            connector.Event_GetTicks += Connector_Event_GetTicks;
            secName    = pNam;
            deltaTick  = dltT;
            exchange   = ex;
            TF         = tf;
            ChStyle    = chartSt;
            maxPrice   = 0;
            minPrice   = 9999999;
            ignoreTick = ignoreTickForSum;

            new Thread(() =>
            {
                LoadTick();
            }).Start();
        }
示例#3
0
        public WindowCluster(ConnectorQuik connect)
        {
            InitializeComponent();
            timer1          = new System.Windows.Forms.Timer(this.components);
            timer1.Interval = 50;
            timer1.Tick    += new System.EventHandler(this.timer1_Tick);

            ChartGl.InitializeContexts();

            Chart = new WindowGL(ChartGl, this, timer1, real);
            Chart.Load();

            minVol       = Convert.ToInt32(tbVolFilterMin.Text);
            maxVol       = Convert.ToInt32(tbVolFilterMax.Text);
            ignorTickVol = Convert.ToInt32(tbIgnoreTickVol.Text);
            secName      = cbSecurity.Text;
            // prevSecName = secName;
            prevIgnorTickVol = ignorTickVol;
            TF.frame         = TfRange.MIN;
            TF.digit         = 1;
            TFPrev           = TF;

            connector = connect;
            connect.Connect();
            connector.Event_GetTick += Connector_Event_GetTick;
            connect.Event_GetTicks  += Connect_Event_GetTicks;
            //   fg.GetControl().Anchor = AnchorStyles.Top;
            // Sec = new DataSeries("RTS-12.15", 10, Exchange.SPBFUT, TimeFrame.Hour, chartStyle.Cluster, ignorTickVol);
            //  WindowGL.Sec = Sec;
            //   if (Form1.Quik.connected)
            //  {

            //  }
            new Thread(() =>
            {
                LoadTick();
            }).Start();
        }
示例#4
0
 // Подписка на события от терминала Quik
 private void Platform_Load(object sender, EventArgs e)
 {
     connector = new ConnectorQuik();
     connector.Event_GetConnect += Connector_Event_GetConnect;
 }