using System.Collections.Generic; namespace QuantConnect.Algorithm.CSharp { /// /// Regression for running an Index algorithm with Hourly data /// public class BasicTemplateIndexHourlyAlgorithm : BasicTemplateIndexDailyAlgorithm { protected override Resolution Resolution => Resolution.Hour; protected override int ExpectedBarCount => base.ExpectedBarCount * 7; /// /// This is used by the regression test system to indicate if the open source Lean repository has the required data to run this algorithm. /// public override bool CanRunLocally { get; } = true; /// /// This is used by the regression test system to indicate which languages this algorithm is written in. /// public override Language[] Languages { get; } = { Language.CSharp }; /// /// Data Points count of all timeslices of algorithm /// public override long DataPoints => 389; /// /// Data Points count of the algorithm history /// public override int AlgorithmHistoryDataPoints => 0; /// /// 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 Trades", "69"}, {"Average Win", "0%"}, {"Average Loss", "-0.06%"}, {"Compounding Annual Return", "-39.390%"}, {"Drawdown", "2.000%"}, {"Expectancy", "-1"}, {"Net Profit", "-1.998%"}, {"Sharpe Ratio", "-12.504"}, {"Probabilistic Sharpe Ratio", "0.000%"}, {"Loss Rate", "100%"}, {"Win Rate", "0%"}, {"Profit-Loss Ratio", "0"}, {"Alpha", "-0.313"}, {"Beta", "0.088"}, {"Annual Standard Deviation", "0.024"}, {"Annual Variance", "0.001"}, {"Information Ratio", "-3.871"}, {"Tracking Error", "0.104"}, {"Treynor Ratio", "-3.459"}, {"Total Fees", "$0.00"}, {"Estimated Strategy Capacity", "$200000.00"}, {"Lowest Capacity Asset", "SPX XL80P3GHDZXQ|SPX 31"}, {"Fitness Score", "0.002"}, {"Kelly Criterion Estimate", "0"}, {"Kelly Criterion Probability Value", "0"}, {"Sortino Ratio", "-15.488"}, {"Return Over Maximum Drawdown", "-20.691"}, {"Portfolio Turnover", "0.316"}, {"Total Insights Generated", "0"}, {"Total Insights Closed", "0"}, {"Total Insights Analysis Completed", "0"}, {"Long Insight Count", "0"}, {"Short Insight Count", "0"}, {"Long/Short Ratio", "100%"}, {"Estimated Monthly Alpha Value", "$0"}, {"Total Accumulated Estimated Alpha Value", "$0"}, {"Mean Population Estimated Insight Value", "$0"}, {"Mean Population Direction", "0%"}, {"Mean Population Magnitude", "0%"}, {"Rolling Averaged Population Direction", "0%"}, {"Rolling Averaged Population Magnitude", "0%"}, {"OrderListHash", "cbd2e7697a622b2ce3e24b6003db6f7d"} }; } }