Merge remote-tracking branch 'origin/MKDT_0009'
This commit is contained in:
@@ -208,7 +208,9 @@ namespace MarketData.Generator.Momentum
|
||||
// Get the benchmark pricing low pricing data and check the slope of previous lows; only if Beta of candidate is >= LowSlopeBetaThreshhold
|
||||
// The idea behind this check is that a high beta stock will track to the benchmark. So if the benchmark lows are forming a downward pattern then we
|
||||
// assume that this is a somewhat bearish condition. The config has the setting at a 15 day check and the threshold beta set to 1.00
|
||||
if(config.UseLowSlopeBetaCheck && fundamental.Beta>=config.LowSlopeBetaThreshhold)
|
||||
// The BetaCalc36 is calculated as part of the monthly fundamental run.
|
||||
double beta = fundamental.BetaCalc36;
|
||||
if(config.UseLowSlopeBetaCheck && beta >= config.LowSlopeBetaThreshhold)
|
||||
{
|
||||
Prices benchmarkPrices=GBPriceCache.GetInstance().GetPrices(config.Benchmark,tradeDate,config.LowSlopeBetaDays);
|
||||
pricesArray=Numerics.ToDouble(benchmarkPrices.GetPricesLow());
|
||||
@@ -324,7 +326,7 @@ namespace MarketData.Generator.Momentum
|
||||
highPECandidate.MaxDrawdown=prices.MaxDrawdown();
|
||||
highPECandidate.MaxUpside=prices.MaxUpside();
|
||||
highPECandidate.PE=fundamental.PE;
|
||||
highPECandidate.Beta=fundamental.Beta;
|
||||
highPECandidate.Beta=beta;
|
||||
highPECandidate.Velocity=velocity;
|
||||
highPECandidate.Volume=price.Volume;
|
||||
highPECandidate.Return1D=return1D;
|
||||
@@ -344,7 +346,7 @@ namespace MarketData.Generator.Momentum
|
||||
momentumCandidate.MaxDrawdown=prices.MaxDrawdown();
|
||||
momentumCandidate.MaxUpside=prices.MaxUpside();
|
||||
momentumCandidate.PE=fundamental.PE;
|
||||
momentumCandidate.Beta=fundamental.Beta;
|
||||
momentumCandidate.Beta=beta;
|
||||
momentumCandidate.Velocity=velocity;
|
||||
momentumCandidate.Volume=price.Volume;
|
||||
momentumCandidate.Return1D=return1D;
|
||||
|
||||
Reference in New Issue
Block a user