Skip to content

Bot isn't selling? #15

@iJamesPHP

Description

@iJamesPHP

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions