Adjusted sensitivity
This commit is contained in:
parent
315f4c3036
commit
3d44bdd779
1 changed files with 2 additions and 2 deletions
|
@ -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"):
|
||||||
|
|
Loading…
Reference in a new issue