small change in market value

This commit is contained in:
Manuel Simon Hirsig
2016-01-19 12:25:11 +01:00
parent da102f9e55
commit 5dc94a23fc
+2
View File
@@ -76,6 +76,8 @@ 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
return EMA7
else
return EMA7 * trend
end