/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ using System.Collections.Generic; namespace QuantConnect.Algorithm.CSharp { /// /// Regression algorithm which reproduces GH issue 4446, in the case of daily resolution. /// public class DelistedFutureLiquidateDailyRegressionAlgorithm : DelistedFutureLiquidateRegressionAlgorithm { protected override Resolution Resolution => Resolution.Daily; /// /// Data Points count of all timeslices of algorithm /// public override long DataPoints => 1235; /// /// This is used by the regression test system to indicate what the expected statistics are from running the algorithm /// public override Dictionary ExpectedStatistics => new Dictionary { {"Total Orders", "2"}, {"Average Win", "7.78%"}, {"Average Loss", "0%"}, {"Compounding Annual Return", "38.609%"}, {"Drawdown", "0.200%"}, {"Expectancy", "0"}, {"Start Equity", "100000"}, {"End Equity", "107779.1"}, {"Net Profit", "7.779%"}, {"Sharpe Ratio", "3.128"}, {"Sortino Ratio", "0"}, {"Probabilistic Sharpe Ratio", "99.450%"}, {"Loss Rate", "0%"}, {"Win Rate", "100%"}, {"Profit-Loss Ratio", "0"}, {"Alpha", "0.145"}, {"Beta", "0.271"}, {"Annual Standard Deviation", "0.081"}, {"Annual Variance", "0.007"}, {"Information Ratio", "-1.459"}, {"Tracking Error", "0.099"}, {"Treynor Ratio", "0.931"}, {"Total Fees", "$2.15"}, {"Estimated Strategy Capacity", "$150000000000.00"}, {"Lowest Capacity Asset", "ES VMKLFZIH2MTD"}, {"Portfolio Turnover", "1.98%"}, {"Drawdown Recovery", "2"}, {"OrderListHash", "6365adfc234509e390295a150f25c295"} }; } }