/* * 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; using System.Collections.Generic; using System.Linq; using QuantConnect.Data; using QuantConnect.Interfaces; using QuantConnect.Securities; namespace QuantConnect.Algorithm.CSharp { /// /// This regressions tests the BasicTemplateFuturesDailyAlgorithm with hour data and extended market hours /// /// /// /// public class BasicTemplateFuturesWithExtendedMarketHourlyAlgorithm : BasicTemplateFuturesHourlyAlgorithm { protected override bool ExtendedMarketHours => true; /// /// This is used by the regression test system to indicate which languages this algorithm is written in. /// public override List Languages { get; } = new() { Language.CSharp, Language.Python }; /// /// Data Points count of all timeslices of algorithm /// public override long DataPoints => 67924; /// /// 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", "1992"}, {"Average Win", "0.01%"}, {"Average Loss", "-0.01%"}, {"Compounding Annual Return", "-4.687%"}, {"Drawdown", "4.700%"}, {"Expectancy", "-0.911"}, {"Start Equity", "1000000"}, {"End Equity", "952789.22"}, {"Net Profit", "-4.721%"}, {"Sharpe Ratio", "-7.183"}, {"Sortino Ratio", "-5.14"}, {"Probabilistic Sharpe Ratio", "0%"}, {"Loss Rate", "97%"}, {"Win Rate", "3%"}, {"Profit-Loss Ratio", "2.04"}, {"Alpha", "-0.038"}, {"Beta", "-0.008"}, {"Annual Standard Deviation", "0.005"}, {"Annual Variance", "0"}, {"Information Ratio", "-1.702"}, {"Tracking Error", "0.09"}, {"Treynor Ratio", "5.054"}, {"Total Fees", "$4543.28"}, {"Estimated Strategy Capacity", "$3000.00"}, {"Lowest Capacity Asset", "ES VP274HSU1AF5"}, {"Portfolio Turnover", "56.73%"}, {"Drawdown Recovery", "0"}, {"OrderListHash", "6ce7812de5c98744cc35169a86a24325"} }; } }