pushkarnagle / gekko-buyatsellat

Simple strategy to buy and sell assets at pre-defined thresholds with Gekko
MIT License
53 stars 17 forks source link

Hold if making a loss #8

Open combinu opened 6 years ago

combinu commented 6 years ago

Is there a way to stop the selling action if you are going to make a loss? Or let me put it in a better way. Is there a way to sell ONLY when the price is greater than the sell_at property?. Sometimes it may take a long time i know but is it possible. It may help me more in understanding strategies for gekko. I tried removing the stop_loss but still i found some sells below the buying price for some reason. @pushkarnagle

Intel1146 commented 6 years ago

Just set stoploss to 0, and it wont sell if loss