From 0455ab47c7e8da9bf753de2911b1b8f024b066f1 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Tue, 19 Jan 2016 12:38:00 +0100 Subject: [PATCH] small change to correlation --- core.lua | 4 ++-- history.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core.lua b/core.lua index b5ce2e2..a4bddc1 100644 --- a/core.lua +++ b/core.lua @@ -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..'%)' diff --git a/history.lua b/history.lua index bab6314..59ed25c 100644 --- a/history.lua +++ b/history.lua @@ -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