small change to correlation

This commit is contained in:
Manuel Simon Hirsig
2016-01-19 12:38:00 +01:00
parent 5dc94a23fc
commit 0455ab47c7
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ function public.market_value(item_key)
if day_count == 0 then
return daily_market_value
elseif correlation < (trend < 1 and trend or 1 / trend) then -- history of bad predictions
elseif correlation < 0.8 then -- history of bad predictions
return EMA7
else
return EMA7 * trend