Adjusted sensitivity

This commit is contained in:
Logan G 2021-02-03 14:20:31 -07:00
parent 315f4c3036
commit 3d44bdd779
Signed by: logan
GPG key ID: E328528C921E7A7A

View file

@ -27,8 +27,8 @@ class Kraken:
# Calculates the exponential moving average by grabbing data from Kraken on the conversion rate every interval minutes. # Calculates the exponential moving average by grabbing data from Kraken on the conversion rate every interval minutes.
def calculateEMA(self, shortTime=round(time.time())-(7*24*3600), longTime=round(time.time())-(30*24*3600), interval=60): def calculateEMA(self, shortTime=round(time.time())-(7*24*3600), longTime=round(time.time())-(30*24*3600), interval=60):
self.longEMA = self.prices.ewm(span=12).mean() self.longEMA = self.prices.ewm(span=20).mean()
self.shortEMA = self.prices.ewm(span=3).mean() self.shortEMA = self.prices.ewm(span=10).mean()
def buyOrder(self, currency_pair, currency_buy, currency_sell, amount, ordertype="market"): def buyOrder(self, currency_pair, currency_buy, currency_sell, amount, ordertype="market"):