Example #1
0
        public void TestSplit_EndInNight()
        {
            IKLineData            klineData = MockDataLoader.GetKLineData("m1505", 20150105, 20150106, KLinePeriod.KLinePeriod_1Minute);
            IKLineData            subData   = klineData.Sub(0, 570);
            List <SplitterResult> results   = DaySplitter.Split(subData, GetTradingSessionCache("m1505"));

            Assert.AreEqual("20150105,0", results[0].ToString());
            Assert.AreEqual("20150106,225", results[1].ToString());
        }
Example #2
0
 public IKLineData Sub(int startPos, int endPos)
 {
     return(klineData.Sub(startPos, endPos));
 }