Closed henchiyb closed 1 year ago
Chào @henchiyb, bạn có thể sử dụng method rolling mean để tính MA nhé.
def moving_average(df, days):
# Calculate the rolling mean of the close column with the given window size
return df['close'].rolling(window=days).mean()
Hàm MA này mình tạm thời chưa bổ sung mà sẽ ghép vào moduel technical analysis sau. Cám ơn bạn đã đóng góp!
PR Description
Add a PR template for this repo
Check list
How did I test it?
Screenshots or Test results
Reviewer Considerations