From d8bc3c1af8a16e6a3a3c848c56bd09dc515451a2 Mon Sep 17 00:00:00 2001 From: Sean Date: Fri, 9 May 2025 16:17:10 -0400 Subject: [PATCH] Code cleanup --- .../MarketDataLib/Generator/Momentum/MGConfiguration.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MarketData/MarketDataLib/Generator/Momentum/MGConfiguration.cs b/MarketData/MarketDataLib/Generator/Momentum/MGConfiguration.cs index d792e3a..dfbcc62 100755 --- a/MarketData/MarketDataLib/Generator/Momentum/MGConfiguration.cs +++ b/MarketData/MarketDataLib/Generator/Momentum/MGConfiguration.cs @@ -82,10 +82,12 @@ namespace MarketData.Generator.Momentum UseEBITDAScreen=true; // true is the default UseRevenuePerShareScreen=true; // true is the default + UseLowSlopeBetaCheck=true; // true is the default. this yields the most optimal performance in backtests LowSlopeBetaDays=15; // 15 is the default. This yields the most optimal performance in backtests LowSlopeBetaThreshhold=1.00; // (1.00) is the default This yields the most optimal performance in backtests - UseCalcBeta=true; // This is set to false by default + UseCalcBeta=true; // This is set to true by default + UseMACD=true; // true is the default MACDSetup="(12,26,9)"; // (12,26,9) MACDSignalDays=12; // 12 is the default @@ -170,6 +172,7 @@ namespace MarketData.Generator.Momentum mgConfiguration.LowSlopeBetaDays=nvpDictionary["LowSlopeBetaDays"].Get(); mgConfiguration.LowSlopeBetaThreshhold=nvpDictionary["LowSlopeBetaThreshhold"].Get(); if(nvpDictionary.ContainsKey("UseCalcBeta"))mgConfiguration.UseCalcBeta=nvpDictionary["UseCalcBeta"].Get(); + else mgConfiguration.UseCalcBeta=true; mgConfiguration.UseMACD=nvpDictionary["UseMACD"].Get(); mgConfiguration.MACDSetup=nvpDictionary["MACDSetup"].Get(); mgConfiguration.MACDSignalDays=nvpDictionary["MACDSignalDays"].Get();