-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
Wrong or missing arguments when calculating SMA #9
Comments
That's not a valid argument that's why, tell it to only use period. Sometimes it uses arguments that aren't allowed which is a bug and hopefully gets fixed in the future. I'll review it though and check the error on my end. |
What command had a message that was too long? I tried to make sure that wouldn't happen with the data it pulls in. |
The initial goal was something like "Analyse the candlestick data of EURUSD and make smart trades to increase the net worth of the broker account". The command that crashed the system with a message that was too long was one of the other indicators after the sma. It had like 4317 characters and it said 4096 is the maximum. But I have to reproduce it to be sure which command it was. |
If you could reproduce the error that would be helpful so I can make sure it doesn't happen again |
It seems like at least the "message too long" error was simply my fault, because I didnt start autoGPT with --gpt3only. I fixed that and now the message problem seems to be fixed. But I still get the "Error: min_periods must be an integer" error everytime it tries to do the sma indicator, no matter how often I say it should only use period. |
I also have the "Error: min_periods must be an integer" error, and then it tries to add it in and then gets the follow up error. I also added 'min_periods' into the init.py file in the metatrader zip folder, but this also didn't work, so took it out again. Interested to see if anyone comes up with a solution. |
Hi,
I did some tests on a demo broker account and the sma command seems to either be wrong or is missing an argument because it always returns "Error: min_periods must be an integer". After that, AutoGPT tried the sma command with the min_periods argument, which resulted in another error "Error: AutoGPTMetaTraderPlugin.sma() got an unexpected keyword argument 'min_periods'.
After that, all the other indicators were calculated correctly but the system crashed due to the message finally being to long for openai to handle and I got the "message is too long" error.
The text was updated successfully, but these errors were encountered: