Ejemplo n.º 1
0
 private void Button1Click(object sender, EventArgs e)
 {
     LoadData();
     ComputeLines();
     var chartDrawing = new ChartDrawing(chart1);
     chartDrawing.Draw(m_candles);
 }
Ejemplo n.º 2
0
 private void Button1Click(object sender, EventArgs e)
 {
     LoadData();
     if (!chkDrawReturns.Checked)
     {
         ComputeLines();
         var chartDrawing = new ChartDrawing(chart1);
         chartDrawing.Draw(m_candles);
     }
 }
Ejemplo n.º 3
0
 private void Button1Click(object sender, EventArgs e)
 {
     LoadData();
     if (!chkDrawReturns.Checked)
     {
         ComputeLines();
         var chartDrawing = new ChartDrawing(chart1);
         chartDrawing.Draw(m_candles);
     }
 }
Ejemplo n.º 4
0
        private void ComputeAverages()
        {
            var watch = new Stopwatch();
            watch.Start();
            var s = new EarthWorm(m_candles);
            s.ComputeStrategy(cmbFiles.SelectedItem);
            if (chkDrawReturns.Checked)
            {
                var chartDrawing = new ChartDrawing(chart1);
                chartDrawing.DrawReturn(s.GetSumReturns());
            }

            watch.Stop();
            CreateStatus("\r\nElapsed: {0}", watch.Elapsed);
            AppendStatus("  In milliseconds: {0}", watch.ElapsedMilliseconds);
            AppendStatus("  In timer ticks: {0}", watch.ElapsedTicks);
        }
Ejemplo n.º 5
0
        private void ComputeAverages()
        {
            var watch = new Stopwatch();

            watch.Start();
            var s = new EarthWorm(m_candles);

            s.ComputeStrategy(cmbFiles.SelectedItem);
            if (chkDrawReturns.Checked)
            {
                var chartDrawing = new ChartDrawing(chart1);
                chartDrawing.DrawReturn(s.GetSumReturns());
            }


            watch.Stop();
            CreateStatus("\r\nElapsed: {0}", watch.Elapsed);
            AppendStatus("  In milliseconds: {0}", watch.ElapsedMilliseconds);
            AppendStatus("  In timer ticks: {0}", watch.ElapsedTicks);
        }