thinh-vu / vnstock

A powerful Python library for getting rich data from the Vietnam Stock Market using just a few lines of code
https://vnstocks.com
Other
510 stars 132 forks source link

[Chore] Add PR template #63

Closed henchiyb closed 1 year ago

henchiyb commented 1 year ago

PR Description

Add a PR template for this repo

Check list

How did I test it?

Screenshots or Test results

Reviewer Considerations

thinh-vu commented 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!