Пример #1
0
        public void TestBarPairs()
        {
            //Assert.AreEqual(0, FdkHelper.ConnectToFdk("tp.dev.soft-fx.eu", "100106", "123qwe123", ""));
            Assert.AreEqual(0, FdkHelper.ConnectToFdk("", "", "", @"C:\FdkCaches\Cache3"));
            var time     = DateTime.Now;
            var prevHour = time.AddYears(-10);

            var timeDouble = FdkHelper.GetCreatedEpoch(time);

            var bars      = FdkBarPairs.ComputeGetPairBars("EURUSD", "M1", prevHour, time, 10000);
            var askhighs  = FdkBarPairs.GetBarsAskHigh(bars);
            var asklows   = FdkBarPairs.GetBarsAskLow(bars);
            var askopen   = FdkBarPairs.GetBarsAskOpen(bars);
            var askClose  = FdkBarPairs.GetBarsAskClose(bars);
            var askVolume = FdkBarPairs.GetBarsAskVolume(bars);

            FdkBarPairs.GetBarsAskFrom(bars);


            var bidhighs  = FdkBarPairs.GetBarsBidHigh(bars);
            var bidlows   = FdkBarPairs.GetBarsBidLow(bars);
            var bidOpen   = FdkBarPairs.GetBarsBidOpen(bars);
            var bidClose  = FdkBarPairs.GetBarsBidClose(bars);
            var bidVolume = FdkBarPairs.GetBarsBidVolume(bars);

            FdkVars.Unregister(bars);
            FdkHelper.Disconnect();
        }
Пример #2
0
        public void TtJira230StepsB()
        {
            Assert.AreEqual(0, FdkHelper.ConnectToFdk("", "", "", ""));

            var prevNow = new DateTime(2015, 7, 7, 18, 30, 00);
            var now     = new DateTime(2015, 7, 7, 19, 00, 00);

            FdkBarPairs.ComputeGetPairBars("#SPX", "M30", prevNow, now, 0);

            //RHost.FdkBarPairs
        }
Пример #3
0
        public void TtJira244()
        {
            Assert.AreEqual(0, FdkHelper.ConnectToFdk("", "", "", ""));

            var prevNow = new DateTime(2015, 7, 30, 8, 30, 00);
            var now     = new DateTime(2015, 7, 30, 9, 00, 0);
            var varName = FdkBarPairs.ComputeGetPairBars("EURUSD", "M30", prevNow, now, 0);

            FdkVars.Unregister(varName);
            //RHost.FdkBarPairs
        }
Пример #4
0
        public void TtJira230Steps()
        {
            Assert.AreEqual(0, FdkHelper.ConnectToFdk("tp.st.soft-fx.eu", "100064", "123qwe!", ""));

            var prevNow     = new DateTime(2015, 7, 7, 18, 30, 00);
            var now         = new DateTime(2015, 7, 7, 19, 00, 00);
            var varPairBars = FdkBarPairs.ComputeGetPairBars("#SPX", "M30", prevNow, now, 10000);

            FdkVars.Unregister(varPairBars);
            FdkHelper.Disconnect();
        }