Fixed dumb typo
This commit is contained in:
parent
1ae1b3ea66
commit
048e22024a
1 changed files with 0 additions and 1 deletions
1
main.py
1
main.py
|
@ -39,7 +39,6 @@ if __name__ == "__main__":
|
||||||
# If the short term EMA (accounting for the fee) is less than the long term EMA,
|
# If the short term EMA (accounting for the fee) is less than the long term EMA,
|
||||||
# and there is more than a 0.1% difference between short and long term EMA (accounting for the fee), sell
|
# and there is more than a 0.1% difference between short and long term EMA (accounting for the fee), sell
|
||||||
if k.short_ema.tail(1)[0][0] * (1-self.fee/100) < k.long_ema.tail(1)[0][0] and k.long_ema.tail(1)[0][0]/(k.short_ema.tail(1)[0][0] * (1-self.fee/100)) - 1 > 0.001:
|
if k.short_ema.tail(1)[0][0] * (1-self.fee/100) < k.long_ema.tail(1)[0][0] and k.long_ema.tail(1)[0][0]/(k.short_ema.tail(1)[0][0] * (1-self.fee/100)) - 1 > 0.001:
|
||||||
if k.short_ema.tail(1)[0][0]
|
|
||||||
print("Selling shit")
|
print("Selling shit")
|
||||||
k.sell_order(currency_pair, currency_buy, currency_sell, k.balances["vol"][currency_buy])
|
k.sell_order(currency_pair, currency_buy, currency_sell, k.balances["vol"][currency_buy])
|
||||||
print(k.balances)
|
print(k.balances)
|
||||||
|
|
Loading…
Reference in a new issue