DrawReturn() public method

public DrawReturn ( List returns ) : void
returns List
return void
Exemplo n.º 1
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);
        }
Exemplo n.º 2
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);
        }