aateg / tatu-re

Tatu Recommendation Engine
1 stars 1 forks source link

Indicators #38

Closed rodrigommorais closed 1 year ago

rodrigommorais commented 1 year ago

Close #28

aateg commented 1 year ago

TA-lib nao funcionou pra mim vc instalou com pip install TA-lib?

rodrigommorais commented 1 year ago

Procurando no google "https://github.com/mrjbq7/ta-lib"

aateg commented 1 year ago

Based on this post I switched from TA-Lib to ta, which is completely python based, removing some complications on installation for us all.

aateg commented 1 year ago

to test this PR:

from datetime import datetime
from tatu_re.utils import get_data
from tatu_re.indicators import calculate_indicators

start = datetime(2019,3,30)
end = datetime(2020,3,30)
df = get_data(start, end)

ind = calculate_indicators(df)
print(ind.head())