Coinbase-Pro-Crypto-Trading-Bot-CrypFinder icon indicating copy to clipboard operation
Coinbase-Pro-Crypto-Trading-Bot-CrypFinder copied to clipboard

Bot isn't selling?

Open iJamesPHP opened this issue 3 years ago • 1 comments

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 :)

iJamesPHP avatar Mar 30 '21 10:03 iJamesPHP

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.

jewbetcha avatar Mar 30 '21 14:03 jewbetcha