dsc-dsc-dsc / btc-e_Trade_bot

A Bitcoin trading bot for btc-e
MIT License
54 stars 27 forks source link

feture request: save state appon closure/reset #12

Open AJRGale opened 10 years ago

AJRGale commented 10 years ago

Basically, when i have to shut the bot down, it forgets what it was doing last, and when you reinitialize it, it resets where its trading points are (when you have it set to 0.6% +/- of the price, and you reset it, it may sell the last buys for less then what it has originally purchased it for, and you lose could lose out)

ilikenwf commented 10 years ago

:+1:

soneric commented 7 years ago

Hi i´m trying to help this and i add the code below in check_if_changed it help you?

if saved_action() == "sell" : print "IDEAL ACTION BUY: ", float(saved_price()) - (float(saved_price()) float(threshold)) else: print "IDEAL ACTION SELL: ", float(saved_price()) + (float(saved_price()) float(threshold))

if yes i will make this in make_trade verification. and put the all code here, i´m trying to help this code, because is very cool hehe.