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
+2 -2
View File
@@ -1,4 +1,4 @@
AuxVersion = '2.2.16'
AuxVersion = '2.2.17'
AuxAuthors = 'shirsig; Zerf; Zirco (Auctionator); Nimeral (Auctionator backport)'
local lastRightClickAction = GetTime()
@@ -52,7 +52,7 @@ function Aux_OnLoad()
market_value_line = 'Market Value: '..Aux.util.money_string(market_value)
else
market_value_line = 'Market Value: '..Aux.util.money_string(market_value * count)..' / '..Aux.util.money_string(market_value)
if correlation < (trend < 1 and trend or 1 / trend) then -- unreliable
if correlation < 0.8 then -- unreliable
market_value_line = market_value_line..' (?)'
elseif trend_percentage > 0 then
market_value_line = market_value_line..' (+'..trend_percentage..'%)'
+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