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

매수 및 매도 단가 갱신 식 관련 #131

Open
ChulgooKim opened this issue Jan 7, 2022 · 1 comment
Open

매수 및 매도 단가 갱신 식 관련 #131

ChulgooKim opened this issue Jan 7, 2022 · 1 comment
Labels
bug Something isn't working v3

Comments

@ChulgooKim
Copy link

현재 코드에서 agent 매수 및 매도 행동 함수에서

self.avg_buy_price = (self.avg_buy_price * self.num_stocks + curr_price) / (self.num_stocks + trading_unit)

이라고 되어있는데

self.avg_buy_price = (self.avg_buy_price * self.num_stocks + invest_amount) / (self.num_stocks + trading_unit)

혹은

self.avg_buy_price = (self.avg_buy_price * self.num_stocks + curr_price * trading_unit) / (self.num_stocks + trading_unit)

으로 수정해야 하지않나 생각합니다.
제가 잘못 알고 있다면 알려주세요 감사합니다.

@quantylab
Copy link
Owner

@ChulgooKim 맞네요! 제보 감사합니다. 수정하겠습니다 : )

@quantylab quantylab added v3 bug Something isn't working labels Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v3
Projects
None yet
Development

No branches or pull requests

2 participants