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

The initial implementation of the code was incorrect, but RDAgent failed to detect it. #520

Open
liujianliuku opened this issue Jan 13, 2025 · 3 comments
Labels
question Further information is requested

Comments

@liujianliuku
Copy link

During the first loop, the implement of SMA10 is wrong, the wrong code is : df['daily_pct_change'] = df['$close'].pct_change() , which lead the whole following loops to a wrong direction. Can I simply do something to fix this issue through some config or prompts?

Image
@liujianliuku liujianliuku added the question Further information is requested label Jan 13, 2025
@liujianliuku
Copy link
Author

It's supposed to be df['daily_pct_change'] = df['$close'].groupby(level='instrument').pct_change()

@TPLin22
Copy link
Collaborator

TPLin22 commented Jan 14, 2025

Intended for generality, the prompts do not target specific factor codes. However, if you indeed wish to provide specific code hints, this can be achieved. You can try edit prompts in rdagent/components/coder, although it is not recommended.

@liujianliu
Copy link

Intended for generality, the prompts do not target specific factor codes. However, if you indeed wish to provide specific code hints, this can be achieved. You can try edit prompts in rdagent/components/coder, although it is not recommended.

Do you have some better idea for the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants