Esempio n. 1
0
        public async Task TestChandlrAsync()
        {
            var candles = await ImportCandlesAsync();

            var indicator = new ChandelierExit(candles, 22, 3);
            var result    = indicator[candles.Count - 1];

            Assert.IsTrue(135.69m.IsApproximatelyEquals(result.Long.Value));
            Assert.IsTrue(137.55m.IsApproximatelyEquals(result.Short.Value));
        }
Esempio n. 2
0
        public async Task TestChandlrAsync()
        {
            var equity = await ImportEquityAsync();

            var indicator = new ChandelierExit(equity, 22, 3);
            var result    = indicator.ComputeByIndex(equity.Count - 1);

            Assert.IsTrue(135.69m.IsApproximatelyEquals(result.Long.Value));
            Assert.IsTrue(137.55m.IsApproximatelyEquals(result.Short.Value));
        }