Example #1
0
        private void GenerateData(NKagiSeries series)
        {
            NStockDataGenerator dataGenerator = new NStockDataGenerator(new NRange1DD(50, 350), 0.002, 2);

            dataGenerator.Reset();

            DateTime dt = new DateTime(2007, 1, 1);

            for (int i = 0; i < 100; i++)
            {
                series.Values.Add(dataGenerator.GetNextValue());
                series.XValues.Add(dt);

                dt = dt.AddDays(1);
            }
        }
        private void GenerateData(NThreeLineBreakSeries threeLineBreak)
        {
            NStockDataGenerator dataGenerator = new NStockDataGenerator(new NRange1DD(50, 350), 0.002, 2);

            dataGenerator.Reset();

            DateTime dt = new DateTime(2007, 1, 1);

            for (int i = 0; i < 100; i++)
            {
                threeLineBreak.Values.Add(dataGenerator.GetNextValue());
                threeLineBreak.XValues.Add(dt);

                dt = dt.AddDays(1);
            }
        }
Example #3
0
        private void GenerateData(NRenkoSeries renko)
        {
            NStockDataGenerator dataGenerator = new NStockDataGenerator(new NRange1DD(50, 350), 0.02, 10);

            dataGenerator.Reset();

            DateTime dt = new DateTime(2007, 1, 1);

            for (int i = 0; i < 20; i++)
            {
                renko.Values.Add(dataGenerator.GetNextValue());
                renko.XValues.Add(dt);

                dt = dt.AddDays(1);
            }
        }