Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support extended market hours for futures #6522

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
f47f13e
Support extended market hours in AddFuture()
jhonabreul Jul 5, 2022
7ff4a97
Support extended market hours in AddFutureContract()
jhonabreul Jul 6, 2022
e701502
Add C# regression algorithm
jhonabreul Jul 6, 2022
54bbb00
Add Python regression algorithm
jhonabreul Jul 7, 2022
1cfb01d
Add regression algorithm for future contracts
jhonabreul Jul 7, 2022
b8e3d52
Add regression algorithm checking market hour ranges
jhonabreul Jul 7, 2022
c6dd07f
Fixed future regression algorithms to use extended market hours
jhonabreul Jul 8, 2022
52b7817
Fixed future regression algorithms to use extended market hours
jhonabreul Jul 11, 2022
78a2464
Fixed future regression algorithms to use extended market hours
jhonabreul Jul 13, 2022
738213c
Fixed AddFutureOptionContractFromFutureChainRegressionAlgorithm to us…
jhonabreul Jul 19, 2022
52c517f
Update future market hours to include extended in market hours database
jhonabreul Jul 22, 2022
828b76e
Fixed AddFutureOptionContractDataStreamingRegressionAlgorithm to use …
jhonabreul Jul 22, 2022
b9df25c
Fixed AddFutureOptionContractFromFutureChainRegressionAlgorithm to us…
jhonabreul Jul 22, 2022
db3bfbe
Fixed AddFutureContractWithContinuousRegressionAlgorithm to use exten…
jhonabreul Jul 22, 2022
72ae836
Fixed BasicTemplateContinuousFutureAlgorithm to use extended market h…
jhonabreul Jul 22, 2022
3eaf900
Fixed BasicTemplateFuturesAlgorithm to use extended market hours
jhonabreul Jul 22, 2022
f5ea059
Fix BasicTemplateFuturesDailyAlgorithm to use extended market hours
jhonabreul Jul 22, 2022
b27dbae
Fixed BasicTemplateFuturesFrameworkAlgorithm to use extended market h…
jhonabreul Jul 25, 2022
21ea974
Fixed BasicTemplateFuturesHistoryAlgorithm to use extended market hours
jhonabreul Jul 25, 2022
3942679
Fixed ContinuousBackMonthRawFutureRegressionAlgorithm to use extended…
jhonabreul Jul 25, 2022
9d6bd9d
Fixed ContinuousFutureBackMonthRegressionAlgorithm to use extended ma…
jhonabreul Jul 25, 2022
02a4eed
Fixed ContinuousFutureHistoryRegressionAlgorithm to use extended mark…
jhonabreul Jul 25, 2022
c7855ac
Fixed ContinuousFutureLimitIfTouchedOrderRegressionAlgorithm to use e…
jhonabreul Jul 25, 2022
3cf2e27
Fixed ContinuousFutureRegressionAlgorithm to use extended market hours
jhonabreul Jul 25, 2022
41112ad
Fixed DelistedFutureLiquidateRegressionAlgorithm to use extended mark…
jhonabreul Jul 25, 2022
42aa3ae
Fixed AutomaticIndicatorWarmupDataTypeRegressionAlgorithm to use exte…
jhonabreul Jul 25, 2022
92cf52a
Fixed ConsolidateRegressionAlgorithm to use extended market hours
jhonabreul Jul 26, 2022
1b57a3e
Fixed DelistingFutureOptionRegressionAlgorithm to use extended market…
jhonabreul Jul 26, 2022
d328f8f
Fixed EqualWeightingPortfolioConstructionModelFutureRegressionAlgorit…
jhonabreul Jul 26, 2022
f1ba617
Fixed FutureContractsExtendedMarketHoursRegressionAlgorithm to use ex…
jhonabreul Jul 26, 2022
88eef2b
Fixed FutureMarketOpenAndCloseRegressionAlgorithm to use extended mar…
jhonabreul Jul 26, 2022
ffcffcc
Fixed FutureMarketOpenConsolidatorRegressionAlgorithm to use extended…
jhonabreul Jul 26, 2022
24b7fe7
Fixed FutureOptionBuySellCallIntradayRegressionAlgorithm to use exten…
jhonabreul Jul 26, 2022
e145b73
Fixed FutureOptionCallITMExpiryRegressionAlgorithm to use extended ma…
jhonabreul Jul 26, 2022
8b5cead
Fixed FutureOptionCallITMGreeksExpiryRegressionAlgorithm to use exten…
jhonabreul Jul 26, 2022
54add75
Fixed FutureOptionCallOTMExpiryRegressionAlgorithm to use extended ma…
jhonabreul Jul 26, 2022
d3a19de
Fixed FutureOptionDailyRegressionAlgorithm to use extended market hours
jhonabreul Jul 26, 2022
5ed9c91
Fixed FutureOptionHourlyRegressionAlgorithm to use extended market hours
jhonabreul Jul 26, 2022
2d1cb36
Fixed FutureOptionMultipleContractsInDifferentContractMonthsWithSameU…
jhonabreul Jul 26, 2022
b660514
Fixed FutureOptionPutITMExpiryRegressionAlgorithm to use extended mar…
jhonabreul Jul 26, 2022
8039bb4
Fixed FutureOptionPutOTMExpiryRegressionAlgorithm to use extended mar…
jhonabreul Jul 26, 2022
bd5e453
Fixed FutureOptionShortCallITMExpiryRegressionAlgorithm to use extend…
jhonabreul Jul 26, 2022
e04999a
Fixed FutureOptionShortCallOTMExpiryRegressionAlgorithm to use extend…
jhonabreul Jul 26, 2022
61067fc
Fixed FutureOptionShortPutITMExpiryRegressionAlgorithm to use extende…
jhonabreul Jul 26, 2022
ec6ebdb
Fixed FutureOptionShortPutOTMExpiryRegressionAlgorithm to use extende…
jhonabreul Jul 26, 2022
ae38c4e
Fixed FuturesAndFuturesOptionsExpiryTimeAndLiquidationRegressionAlgor…
jhonabreul Jul 26, 2022
8f68536
Fixed FuturesExpiredContractRegression to use extended market hours
jhonabreul Jul 26, 2022
3ff21bc
Fixed FutureSharingTickerRegressionAlgorithm to use extended market h…
jhonabreul Jul 26, 2022
d78fc1e
Fixed HistoryWithDifferentContinuousContractDepthOffsetsRegressionAlg…
jhonabreul Jul 26, 2022
d559cd1
Fixed HistoryWithDifferentDataMappingModeRegressionAlgorithm to use e…
jhonabreul Jul 26, 2022
0d07687
Fixed HistoryWithDifferentDataNormalizationModeRegressionAlgorithm to…
jhonabreul Jul 26, 2022
d84258e
Fixed LimitOrdersAreFilledAfterHoursForFuturesRegressionAlgorithm to …
jhonabreul Jul 26, 2022
fccf8e7
Fixed OpenInterestFuturesRegressionAlgorithm to use extended market h…
jhonabreul Jul 26, 2022
45de356
Fixed RegisterIndicatorRegressionAlgorithm to use extended market hours
jhonabreul Jul 26, 2022
f011632
Fixed SetHoldingsFutureRegressionAlgorithm to use extended market hours
jhonabreul Jul 26, 2022
1e11398
Fixed WarmupFutureRegressionAlgorithm to use extended market hours
jhonabreul Jul 26, 2022
b9e4f0b
Fixed AddFutureOptionSingleOptionChainSelectedInUniverseFilterRegress…
jhonabreul Jul 26, 2022
006c80a
Fixed AlgorithmHistoryTests to use extended market hours for futures
jhonabreul Jul 27, 2022
b3d5130
Fixed AlgorithmTradingTests to use extended market hours for futures
jhonabreul Jul 27, 2022
230fae3
Fixed BrokerageSetupHandlerTests to use extended market hours for fut…
jhonabreul Jul 27, 2022
6766865
Fixed TimeRulesTests to use extended market hours for futures
jhonabreul Jul 27, 2022
b7e9398
Fixed FutureOptionMarginBuyingPowerModelTests to use extended market …
jhonabreul Jul 27, 2022
a3897d2
Fixed FutureMarginBuyingPowerModelTests to use extended market hours …
jhonabreul Jul 27, 2022
9b441e3
Fixed FileSystemDataFeedTests to use extended market hours for futures
jhonabreul Jul 27, 2022
c996333
Fixed QuantBookHistoryTests to use extended market hours for futures
jhonabreul Jul 28, 2022
363758f
Split BasicTemplateContinuousFutureAlgorithm to have an extended mark…
jhonabreul Jul 29, 2022
b43b00d
Fixed FutureMarketOpenAndCloseRegressionAlgorithm to use extended mar…
jhonabreul Jul 29, 2022
aedc953
Split BasicTemplateFuturesAlgorithm to have an extended market version
jhonabreul Jul 29, 2022
78f4227
Split BasicTemplateFuturesAlgorithm to have an extended market version
jhonabreul Jul 29, 2022
27fa837
Split BasicTemplateFuturesFrameworkAlgorithm to have an extended mark…
jhonabreul Jul 29, 2022
7224829
Split BasicTemplateFuturesHistoryAlgorithm to have an extended market…
jhonabreul Jul 29, 2022
6d530dd
Revert AddFutureContractWithContinuousRegressionAlgorithm
jhonabreul Jul 29, 2022
24a69ac
Revert AddFutureOptionContractDataStreamingRegressionAlgorithm and ad…
jhonabreul Jul 29, 2022
9388f07
Revert AddFutureOptionContractFromFutureChainRegressionAlgorithm
jhonabreul Aug 1, 2022
47ed677
Revert AddFutureOptionSingleOptionChainSelectedInUniverseFilterRegres…
jhonabreul Aug 1, 2022
7514f83
Revert ConsolidateRegressionAlgorithm
jhonabreul Aug 1, 2022
f322c0d
Revert Algorithm.CSharp/ContinuousBackMonthRawFutureRegressionAlgorit…
jhonabreul Aug 1, 2022
e7b0d13
Revert ContinuousFutureBackMonthRegressionAlgorithm
jhonabreul Aug 1, 2022
7d0d6f6
Revert ContinuousFutureHistoryRegressionAlgorithm
jhonabreul Aug 1, 2022
ec4b662
Revert ContinuousFutureLimitIfTouchedOrderRegressionAlgorithm
jhonabreul Aug 1, 2022
f98136f
Revert ContinuousFutureRegressionAlgorithm
jhonabreul Aug 1, 2022
3de992e
Revert Algorithm.CSharp/DelistedFutureLiquidateRegressionAlgorithm.cs
jhonabreul Aug 1, 2022
4f8481b
Revert EqualWeightingPortfolioConstructionModelFutureRegressionAlgorithm
jhonabreul Aug 1, 2022
961d42d
Split FutureMarketOpenAndCloseRegressionAlgorithm to have an extended…
jhonabreul Aug 1, 2022
ec3b194
Split FutureMarketOpenConsolidatorRegressionAlgorithm to have an exte…
jhonabreul Aug 1, 2022
b0a61be
Revert FutureOptionBuySellCallIntradayRegressionAlgorithm
jhonabreul Aug 1, 2022
882fc7a
Revert FutureOptionCallITMExpiryRegressionAlgorithm
jhonabreul Aug 1, 2022
2124103
Revert FutureOptionDailyRegressionAlgorithm
jhonabreul Aug 1, 2022
de267e1
Revert FutureOptionPutITMExpiryRegressionAlgorithm
jhonabreul Aug 1, 2022
418a0f6
Revert FutureSharingTickerRegressionAlgorithm
jhonabreul Aug 1, 2022
346b80b
Revert FuturesAndFuturesOptionsExpiryTimeAndLiquidationRegressionAlgo…
jhonabreul Aug 1, 2022
54d138f
Revert FuturesExpiredContractRegression
jhonabreul Aug 1, 2022
a1572bf
Revert HistoryWithDifferentContinuousContractDepthOffsetsRegressionAl…
jhonabreul Aug 1, 2022
1008d07
Revert HistoryWithDifferentDataMappingModeRegressionAlgorithm
jhonabreul Aug 1, 2022
6a7482f
Revert HistoryWithDifferentDataNormalizationModeRegressionAlgorithm
jhonabreul Aug 1, 2022
99a7fd3
Revert OpenInterestFuturesRegressionAlgorithm
jhonabreul Aug 1, 2022
ac69a97
Revert RegisterIndicatorRegressionAlgorithm
jhonabreul Aug 1, 2022
c27471a
Revert SetHoldingsFutureRegressionAlgorithm
jhonabreul Aug 1, 2022
614874c
Revert WarmupFutureRegressionAlgorithm
jhonabreul Aug 1, 2022
9547a79
Revert AutomaticIndicatorWarmupDataTypeRegressionAlgorithm
jhonabreul Aug 1, 2022
4bdd22c
Some cleanup
jhonabreul Aug 4, 2022
cb7e809
Address changes request
jhonabreul Aug 15, 2022
cefab80
Address changes request
jhonabreul Aug 16, 2022
1639433
Add more Class III Milk data to fix DelistingFutureOptionDailyRegress…
jhonabreul Aug 17, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -116,7 +116,7 @@ public override void OnSecuritiesChanged(SecurityChanges changes)
/// <summary>
/// Data Points count of all timeslices of algorithm
/// </summary>
public long DataPoints => 59;
public long DataPoints => 63;
Martin-Molinero marked this conversation as resolved.
Show resolved Hide resolved

/// <summary>
/// Data Points count of the algorithm history
Expand All @@ -135,27 +135,27 @@ public override void OnSecuritiesChanged(SecurityChanges changes)
{"Drawdown", "0.000%"},
{"Expectancy", "-1"},
{"Net Profit", "-0.032%"},
{"Sharpe Ratio", "0"},
{"Probabilistic Sharpe Ratio", "0%"},
{"Sharpe Ratio", "-7.857"},
{"Probabilistic Sharpe Ratio", "1.216%"},
{"Loss Rate", "100%"},
{"Win Rate", "0%"},
{"Profit-Loss Ratio", "0"},
{"Alpha", "0"},
{"Beta", "0"},
{"Annual Standard Deviation", "0"},
{"Alpha", "-0.021"},
{"Beta", "0.004"},
{"Annual Standard Deviation", "0.003"},
{"Annual Variance", "0"},
{"Information Ratio", "-0.678"},
{"Tracking Error", "0.243"},
{"Treynor Ratio", "0"},
{"Information Ratio", "-0.765"},
{"Tracking Error", "0.241"},
{"Treynor Ratio", "-4.691"},
{"Total Fees", "$7.40"},
{"Estimated Strategy Capacity", "$2100000.00"},
{"Estimated Strategy Capacity", "$5500000.00"},
{"Lowest Capacity Asset", "ES VMKLFZIH2MTD"},
{"Fitness Score", "0.419"},
{"Fitness Score", "0.417"},
{"Kelly Criterion Estimate", "0"},
{"Kelly Criterion Probability Value", "0"},
{"Sortino Ratio", "79228162514264337593543950335"},
{"Return Over Maximum Drawdown", "-81.557"},
{"Portfolio Turnover", "0.837"},
{"Portfolio Turnover", "0.834"},
{"Total Insights Generated", "0"},
{"Total Insights Closed", "0"},
{"Total Insights Analysis Completed", "0"},
Expand All @@ -169,7 +169,7 @@ public override void OnSecuritiesChanged(SecurityChanges changes)
{"Mean Population Magnitude", "0%"},
{"Rolling Averaged Population Direction", "0%"},
{"Rolling Averaged Population Magnitude", "0%"},
{"OrderListHash", "68775c18eb40c1bde212653faec4016e"}
{"OrderListHash", "802a335b5c355e83b8cd2174f053c1b9"}
};
}
}
Expand Up @@ -41,7 +41,7 @@ public class AddFutureOptionContractDataStreamingRegressionAlgorithm : QCAlgorit
public override void Initialize()
{
SetStartDate(2020, 1, 4);
SetEndDate(2020, 1, 6);
SetEndDate(2020, 1, 8);

_es20h20 = AddFutureContract(
QuantConnect.Symbol.CreateFuture(Futures.Indices.SP500EMini, Market.CME, new DateTime(2020, 3, 20)),
Expand All @@ -51,8 +51,9 @@ public override void Initialize()
QuantConnect.Symbol.CreateFuture(Futures.Indices.SP500EMini, Market.CME, new DateTime(2020, 6, 19)),
Resolution.Minute).Symbol;

// Get option contract lists for 2020/01/05 (Time.AddDays(1)) because Lean has local data for that date
var optionChains = OptionChainProvider.GetOptionContractList(_es20h20, Time.AddDays(1))
.Concat(OptionChainProvider.GetOptionContractList(_es19m20, Time));
.Concat(OptionChainProvider.GetOptionContractList(_es19m20, Time.AddDays(1)));
jhonabreul marked this conversation as resolved.
Show resolved Hide resolved

foreach (var optionContract in optionChains)
{
Expand Down Expand Up @@ -163,7 +164,7 @@ public override void OnEndOfAlgorithm()
/// <summary>
/// Data Points count of all timeslices of algorithm
/// </summary>
public long DataPoints => 210329;
public long DataPoints => 301484;

/// <summary>
/// Data Points count of the algorithm history
Expand All @@ -178,31 +179,31 @@ public override void OnEndOfAlgorithm()
{"Total Trades", "2"},
{"Average Win", "0%"},
{"Average Loss", "0%"},
{"Compounding Annual Return", "116.059%"},
{"Drawdown", "0.600%"},
{"Compounding Annual Return", "5522.734%"},
{"Drawdown", "1.000%"},
{"Expectancy", "0"},
{"Net Profit", "0.635%"},
{"Sharpe Ratio", "17.16"},
{"Probabilistic Sharpe Ratio", "0%"},
{"Net Profit", "5.335%"},
{"Sharpe Ratio", "64.207"},
{"Probabilistic Sharpe Ratio", "95.977%"},
{"Loss Rate", "0%"},
{"Win Rate", "0%"},
{"Profit-Loss Ratio", "0"},
{"Alpha", "2.25"},
{"Beta", "-1.665"},
{"Annual Standard Deviation", "0.071"},
{"Annual Variance", "0.005"},
{"Information Ratio", "5.319"},
{"Tracking Error", "0.114"},
{"Treynor Ratio", "-0.735"},
{"Alpha", "25.762"},
{"Beta", "2.916"},
{"Annual Standard Deviation", "0.423"},
{"Annual Variance", "0.179"},
{"Information Ratio", "66.183"},
{"Tracking Error", "0.403"},
{"Treynor Ratio", "9.326"},
{"Total Fees", "$7.40"},
{"Estimated Strategy Capacity", "$24000000.00"},
{"Estimated Strategy Capacity", "$22000000.00"},
{"Lowest Capacity Asset", "ES XFH59UK0MYO1"},
{"Fitness Score", "1"},
{"Kelly Criterion Estimate", "0"},
{"Kelly Criterion Probability Value", "0"},
{"Sortino Ratio", "79228162514264337593543950335"},
{"Return Over Maximum Drawdown", "79228162514264337593543950335"},
{"Portfolio Turnover", "2.133"},
{"Portfolio Turnover", "2.035"},
{"Total Insights Generated", "0"},
{"Total Insights Closed", "0"},
{"Total Insights Analysis Completed", "0"},
Expand All @@ -216,7 +217,7 @@ public override void OnEndOfAlgorithm()
{"Mean Population Magnitude", "0%"},
{"Rolling Averaged Population Direction", "0%"},
{"Rolling Averaged Population Magnitude", "0%"},
{"OrderListHash", "35738733ff791eeeaf508faec804cab0"}
{"OrderListHash", "e7021bd385f366771ae00abd3a46a22e"}
};
}
}
Expand Up @@ -93,7 +93,7 @@ public override void OnData(Slice data)
/// <summary>
/// Data Points count of all timeslices of algorithm
/// </summary>
public long DataPoints => 46583;
public long DataPoints => 11759;

/// <summary>
/// Data Points count of the algorithm history
Expand All @@ -108,31 +108,31 @@ public override void OnData(Slice data)
{"Total Trades", "20"},
{"Average Win", "0%"},
{"Average Loss", "0%"},
{"Compounding Annual Return", "-47.647%"},
{"Drawdown", "3.200%"},
{"Compounding Annual Return", "387010829.707%"},
{"Drawdown", "2.600%"},
{"Expectancy", "0"},
{"Net Profit", "-0.530%"},
{"Sharpe Ratio", "-8.194"},
{"Net Profit", "11.913%"},
{"Sharpe Ratio", "1607198.823"},
{"Probabilistic Sharpe Ratio", "0%"},
{"Loss Rate", "0%"},
{"Win Rate", "0%"},
{"Profit-Loss Ratio", "0"},
{"Alpha", "-1.345"},
{"Beta", "1.391"},
{"Annual Standard Deviation", "0.06"},
{"Annual Variance", "0.004"},
{"Information Ratio", "-66.031"},
{"Tracking Error", "0.017"},
{"Treynor Ratio", "-0.351"},
{"Alpha", "2149221.834"},
{"Beta", "31.228"},
{"Annual Standard Deviation", "1.337"},
{"Annual Variance", "1.788"},
{"Information Ratio", "1660368.41"},
{"Tracking Error", "1.294"},
{"Treynor Ratio", "68825.239"},
{"Total Fees", "$37.00"},
{"Estimated Strategy Capacity", "$3400000.00"},
{"Estimated Strategy Capacity", "$2600000.00"},
{"Lowest Capacity Asset", "ES 31C3JQS9D84PW|ES XCZJLC9NOB29"},
{"Fitness Score", "0.5"},
{"Fitness Score", "0"},
{"Kelly Criterion Estimate", "0"},
{"Kelly Criterion Probability Value", "0"},
{"Sortino Ratio", "79228162514264337593543950335"},
{"Return Over Maximum Drawdown", "-94.467"},
{"Portfolio Turnover", "5.578"},
{"Return Over Maximum Drawdown", "79228162514264337593543950335"},
{"Portfolio Turnover", "0"},
{"Total Insights Generated", "0"},
{"Total Insights Closed", "0"},
{"Total Insights Analysis Completed", "0"},
Expand All @@ -146,7 +146,7 @@ public override void OnData(Slice data)
{"Mean Population Magnitude", "0%"},
{"Rolling Averaged Population Direction", "0%"},
{"Rolling Averaged Population Magnitude", "0%"},
{"OrderListHash", "7fbb8c0a1f5eee780f0b37efafbbdc4b"}
{"OrderListHash", "64221a660525c4259d5bd852eef1299c"}
};
}
}
Expand Up @@ -43,7 +43,7 @@ public class AddFutureOptionSingleOptionChainSelectedInUniverseFilterRegressionA
public override void Initialize()
{
SetStartDate(2020, 1, 4);
SetEndDate(2020, 1, 6);
SetEndDate(2020, 1, 8);

_es = AddFuture(Futures.Indices.SP500EMini, Resolution.Minute, Market.CME);
_es.SetFilter((futureFilter) =>
Expand Down Expand Up @@ -164,8 +164,6 @@ public override void OnData(Slice data)

public override void OnEndOfAlgorithm()
{
base.OnEndOfAlgorithm();

if (!_optionFilterRan)
{
throw new InvalidOperationException("Option chain filter was never ran");
Expand Down Expand Up @@ -222,7 +220,7 @@ public override void OnEndOfAlgorithm()
/// <summary>
/// Data Points count of all timeslices of algorithm
/// </summary>
public long DataPoints => 779544;
public long DataPoints => 588142;

/// <summary>
/// Data Points count of the algorithm history
Expand All @@ -237,31 +235,31 @@ public override void OnEndOfAlgorithm()
{"Total Trades", "2"},
{"Average Win", "0%"},
{"Average Loss", "0%"},
{"Compounding Annual Return", "-10.708%"},
{"Drawdown", "0.200%"},
{"Compounding Annual Return", "347.123%"},
{"Drawdown", "0.400%"},
{"Expectancy", "0"},
{"Net Profit", "-0.093%"},
{"Sharpe Ratio", "-10.594"},
{"Probabilistic Sharpe Ratio", "0%"},
{"Net Profit", "1.951%"},
{"Sharpe Ratio", "15.549"},
{"Probabilistic Sharpe Ratio", "95.977%"},
{"Loss Rate", "0%"},
{"Win Rate", "0%"},
{"Profit-Loss Ratio", "0"},
{"Alpha", "-0.261"},
{"Beta", "0.244"},
{"Annual Standard Deviation", "0.01"},
{"Annual Variance", "0"},
{"Information Ratio", "-22.456"},
{"Tracking Error", "0.032"},
{"Treynor Ratio", "-0.454"},
{"Alpha", "1.885"},
{"Beta", "1.066"},
{"Annual Standard Deviation", "0.155"},
{"Annual Variance", "0.024"},
{"Information Ratio", "13.529"},
{"Tracking Error", "0.142"},
{"Treynor Ratio", "2.258"},
{"Total Fees", "$3.70"},
{"Estimated Strategy Capacity", "$41000.00"},
{"Lowest Capacity Asset", "ES 31C3JQTOYO9T0|ES XCZJLC9NOB29"},
{"Fitness Score", "0.273"},
{"Estimated Strategy Capacity", "$760000.00"},
{"Lowest Capacity Asset", "ES XCZJLDQX2SRO|ES XCZJLC9NOB29"},
{"Fitness Score", "0.403"},
{"Kelly Criterion Estimate", "0"},
{"Kelly Criterion Probability Value", "0"},
{"Sortino Ratio", "79228162514264337593543950335"},
{"Return Over Maximum Drawdown", "-123.159"},
{"Portfolio Turnover", "0.547"},
{"Return Over Maximum Drawdown", "79228162514264337593543950335"},
{"Portfolio Turnover", "0.403"},
{"Total Insights Generated", "0"},
{"Total Insights Closed", "0"},
{"Total Insights Analysis Completed", "0"},
Expand All @@ -275,7 +273,7 @@ public override void OnEndOfAlgorithm()
{"Mean Population Magnitude", "0%"},
{"Rolling Averaged Population Direction", "0%"},
{"Rolling Averaged Population Magnitude", "0%"},
{"OrderListHash", "9347e3b610cfa21f7cbd968a0135c8af"}
{"OrderListHash", "738240babf741f1bf79f85ea5026ec4c"}
};
}
}
Expand Up @@ -34,8 +34,8 @@ public override void Initialize()
{
UniverseSettings.DataNormalizationMode = DataNormalizationMode.Raw;
EnableAutomaticIndicatorWarmUp = true;
SetStartDate(2013, 10, 07);
SetEndDate(2013, 10, 09);
SetStartDate(2013, 10, 08);
SetEndDate(2013, 10, 10);

var SP500 = QuantConnect.Symbol.Create(Futures.Indices.SP500EMini, SecurityType.Future, Market.CME);
_symbol = FutureChainProvider.GetFutureContractList(SP500, StartDate).First();
Expand Down Expand Up @@ -146,7 +146,7 @@ protected override decimal ComputeNextValue(QuoteBar input)
/// <summary>
/// Data Points count of all timeslices of algorithm
/// </summary>
public long DataPoints => 14531;
public long DataPoints => 6291;

/// <summary>
/// Data Points count of the algorithm history
Expand All @@ -161,31 +161,31 @@ protected override decimal ComputeNextValue(QuoteBar input)
{"Total Trades", "1"},
{"Average Win", "0%"},
{"Average Loss", "0%"},
{"Compounding Annual Return", "-100.000%"},
{"Drawdown", "19.800%"},
{"Compounding Annual Return", "740050.669%"},
{"Drawdown", "15.900%"},
{"Expectancy", "0"},
{"Net Profit", "-10.353%"},
{"Sharpe Ratio", "-1.379"},
{"Net Profit", "6.834%"},
{"Sharpe Ratio", "203371534970.089"},
{"Probabilistic Sharpe Ratio", "0%"},
{"Loss Rate", "0%"},
{"Win Rate", "0%"},
{"Profit-Loss Ratio", "0"},
{"Alpha", "3.004"},
{"Beta", "5.322"},
{"Annual Standard Deviation", "0.725"},
{"Annual Variance", "0.525"},
{"Information Ratio", "-0.42"},
{"Tracking Error", "0.589"},
{"Treynor Ratio", "-0.188"},
{"Alpha", "455512150082.735"},
{"Beta", "9.228"},
{"Annual Standard Deviation", "2.24"},
{"Annual Variance", "5.017"},
{"Information Ratio", "228087504290.401"},
{"Tracking Error", "1.997"},
{"Treynor Ratio", "49360110140.591"},
{"Total Fees", "$20.35"},
{"Estimated Strategy Capacity", "$13000000.00"},
{"Estimated Strategy Capacity", "$200000000.00"},
{"Lowest Capacity Asset", "ES VMKLFZIH2MTD"},
{"Fitness Score", "0.125"},
{"Fitness Score", "0.518"},
{"Kelly Criterion Estimate", "0"},
{"Kelly Criterion Probability Value", "0"},
{"Sortino Ratio", "-2.162"},
{"Return Over Maximum Drawdown", "-8.144"},
{"Portfolio Turnover", "3.184"},
{"Sortino Ratio", "79228162514264337593543950335"},
{"Return Over Maximum Drawdown", "-7.712"},
{"Portfolio Turnover", "5.276"},
{"Total Insights Generated", "0"},
{"Total Insights Closed", "0"},
{"Total Insights Analysis Completed", "0"},
Expand All @@ -199,7 +199,7 @@ protected override decimal ComputeNextValue(QuoteBar input)
{"Mean Population Magnitude", "0%"},
{"Rolling Averaged Population Direction", "0%"},
{"Rolling Averaged Population Magnitude", "0%"},
{"OrderListHash", "7ff48adafe9676f341e64ac9388d3c2c"}
{"OrderListHash", "dd38e7b94027d20942a5aa9ac31a9a7f"}
};
}
}