Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimum revenue before selling #48

Open
Fluorz opened this issue Apr 7, 2021 · 10 comments
Open

Minimum revenue before selling #48

Fluorz opened this issue Apr 7, 2021 · 10 comments
Labels
enhancement New feature or request
Milestone

Comments

@Fluorz
Copy link

Fluorz commented Apr 7, 2021

In this file : https://github.com/TeamWertarbyte/crypto-trading-bot/blob/development/src/modules/bot/index.ts

You are checking if revenue is more than 0 before selling. We can config a minimum revenue before selling.
Sometimes the bot is selling when he makes 10 cents, but with the bittrex commission we are losing money.

I think it would be wise to sell a share only if the revenue including the commission fees are superior to the configurated minimum_revenue.

What do you think about adding a minimum revenue variable?

@Fluorz Fluorz added the enhancement New feature or request label Apr 7, 2021
@Fluorz Fluorz changed the title Minimum revenue for selling Minimum revenue before selling Apr 7, 2021
@Fluorz
Copy link
Author

Fluorz commented Apr 7, 2021

It will also be a good idea to set in the config the bittrex commission. Like this we are sure to sell when revenue - bittrex_commission > minimun_revenue

@saschb2b
Copy link
Member

saschb2b commented Apr 7, 2021

Good idea! Thanks for the suggestion. @Fluorz Will include that in the next release.

if (revenue > 0) {

How should we interpret minimun_revenue ?
As an absolute value like 5.50 -> 5$ and 50 cents or percent like 5.50 -> 5.5% of amountToInvest -> 5.5% from 50$ = 2.75$

@saschb2b saschb2b added this to the 2021.4.0 milestone Apr 7, 2021
@Fluorz
Copy link
Author

Fluorz commented Apr 7, 2021

@saschb2b
Copy link
Member

saschb2b commented Apr 7, 2021

I meant the minimun_revenue parameter not bittrex_commission.
bittrex_commission seems to be just a percentage, yes.

Edit: How to calculate comission:

The fee (commission) charged by Bittrex on each executed trade is calculated by taking the (amount * purchase price * rate) for the given trade

@Fluorz
Copy link
Author

Fluorz commented Apr 7, 2021

minimun_revenue in percent would be great 👍

@Fluorz
Copy link
Author

Fluorz commented Apr 7, 2021

A parameter to never reject and just hold would also be nice.

https://github.com/TeamWertarbyte/crypto-trading-bot/blob/development/src/modules/evaluation/EMAEvaluation.ts

@saschb2b
Copy link
Member

saschb2b commented Apr 7, 2021

A parameter to never reject and just hold would also be nice.

https://github.com/TeamWertarbyte/crypto-trading-bot/blob/development/src/modules/evaluation/EMAEvaluation.ts

Already implemented. See example for BTC and ETH here

"HODL": ["BTC", "ETH"],

Just add your coins to hodl in that array

Edit: Or do you mean globally?

@Fluorz
Copy link
Author

Fluorz commented Apr 7, 2021

I meant globally

@saschb2b
Copy link
Member

saschb2b commented Apr 7, 2021

Would you mind creating a separate issue for that?

@Fluorz
Copy link
Author

Fluorz commented Apr 7, 2021

#49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants