Updated sensitivity
This commit is contained in:
parent
a15ab7bf76
commit
5299661844
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ 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=30).mean()
|
self.longEMA = self.prices.ewm(span=30).mean()
|
||||||
self.shortEMA = self.prices.ewm(span=10).mean()
|
self.shortEMA = self.prices.ewm(span=5).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