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

Live Trading Stops After Few Hours #4

Closed
BradT7 opened this issue Mar 27, 2018 · 8 comments
Closed

Live Trading Stops After Few Hours #4

BradT7 opened this issue Mar 27, 2018 · 8 comments

Comments

@BradT7
Copy link

BradT7 commented Mar 27, 2018

Hello,
This strategy seems very promising, especially on some back testing results!
The issue I had was running a live strategy and it only trading at progressively slower intervals for about 12-24 hours and then never trade again after that.
I was also running a paper trader too in gekko ui, which showed simulated trades taking place which were not reflective for my live strategy.
I thought the issue might have been multiple instances with live and paper at same time, so I just ran it live from terminal/pm2, but same results, no trades after like 12 hours.
If I restart the live strategy, it will do a few trades at progressively increasing intervals, and then just stop trading again.
I assume a successful live strategy results for yourself. How do you configure, through terminal or gekko ui? Any other ideas? Thanks!

@SirTificate
Copy link
Owner

As I already told you on discord, I suspect that the onTrade() function fails at some point and the bot gets stuck, because the state of this.prevAction is wrong. You could add a debug function which prints this.prevAction every 100 candles or so to see, if there's something wrong.

@rud3ls87
Copy link

Hello, just checking if this issue was resolved or if there is a potential fix/work around? :) my bot stopped trading after 12hours or so, was working great up till then.

@questionguy123
Copy link

Were you able to find a fix?

@questionguy123
Copy link

Maybe something to do with Momentum or Decay settings messing with the learning rate as time goes on? Going to test this now

@rud3ls87
Copy link

rud3ls87 commented Aug 4, 2018 via email

@questionguy123
Copy link

According to the 30min of youtube videos i watched, decay will gradually effect the learning rate over time.

On the backtest:
Changing the learning rate in the backtest effects the outcome
Changing the decay in the backtest has no effect on the outcome

therefore it doesn't make sense how decay can change the learning rate without changing the outcome? Maybe on the live bot decay reduces the learning rate lower and lower until the bot no longer wants to make trades.

30min of youtube doesn't make me an expert but going to try the bot with no decay and will post what happens

@rud3ls87
Copy link

rud3ls87 commented Aug 4, 2018 via email

@g1tt
Copy link

g1tt commented Oct 13, 2018

I know this is closed but I was experiencing the same problems.
SirTificate's comments on Mar 29th were exactly the cause of my problem.
I have fixed it (a very low-tech fix but it works!) and have created a pull request here -
#11

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

5 participants