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

Bot isn't selling? #15

Open
iJamesPHP opened this issue Mar 30, 2021 · 1 comment
Open

Bot isn't selling? #15

iJamesPHP opened this issue Mar 30, 2021 · 1 comment

Comments

@iJamesPHP
Copy link

iJamesPHP commented Mar 30, 2021

So, the bot bought in the other day, then BTC crashed. It is now skyrocketing and I have a 2.5% return, I am just wondering why it isn't selling?

{"level":20,"time":1617100141338,"pid":2874,"hostname":"ip-172-31-16-153","msg":"Sell Position, LVP: 42771.96 needs to be less than or equal to 42140 to sell and the receivedValue: 101.23673338178078 needs to be greater than the positionAcquiredCost: 99.839124462"}
{"level":20,"time":1617100142012,"pid":2874,"hostname":"ip-172-31-16-153","msg":"Ticker price: 42820"}

My deltas:
const sellPositionDelta = .02; //The amount of change between peak and valley to trigger a sell off
const buyPositionDelta = .015; //The amount of change between the peak and valley price to trigger a buy in
const orderPriceDelta = .001; //The amount of extra room to give the sell/buy orders to go through

I'm not very versed on the meaning of all of these parameters but from the message in the debug, it looks like it's waiting for 42771.96 to be less than or equal to 42140? Why is this? Can anyone shine some light, I trust it so I am just leaving it :)

@jewbetcha
Copy link
Contributor

The sellPositionDelta param tells the bot to wait to sell until the price has dropped X% (in your case 2%) from the highest peak AND to make sure you have made a profit (including accounting for fees). If you want the bot to sell quicker after profit, make sellPositionDelta smaller.

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

No branches or pull requests

2 participants