peerchemist / finta

Common financial technical indicators implemented in Pandas.
GNU Lesser General Public License v3.0
2.13k stars 688 forks source link

AttributeError: type object 'TA' has no attribute 'EVSTC' #114

Closed ecojam closed 3 years ago

ecojam commented 3 years ago

AttributeError

output of the formula

AttributeError: type object 'TA' has no attribute 'EVSTC'

Using 1.3
peerchemist commented 3 years ago

How are you using it?

TA surely does have a method EVSTC.

n [1]: TA.EVSTC?                                                                                                                                                                                                                                                   
Signature:
TA.EVSTC(
    cls,
    ohlc: pandas.core.frame.DataFrame,
    period_fast: int = 12,
    period_slow: int = 30,
    k_period: int = 10,
    d_period: int = 3,
    adjust: bool = True,
) -> pandas.core.series.Series
Docstring: Modification of Schaff Trend Cycle using EVWMA MACD for calculation
File:      ~/projects/finta/finta/finta.py
Type:      function
ecojam commented 3 years ago

I'm only printing the output in my python code:

stc = TA.EVSTC(ohlc)
print(evstc)

James

On Mon, Apr 5, 2021 at 9:36 AM peerchemist @.***> wrote:

How are you using it?

TA surely does have a method EVSTC.

n [1]: TA.EVSTC? Signature: TA.EVSTC( cls, ohlc: pandas.core.frame.DataFrame, period_fast: int = 12, period_slow: int = 30, k_period: int = 10, d_period: int = 3, adjust: bool = True, ) -> pandas.core.series.Series Docstring: Modification of Schaff Trend Cycle using EVWMA MACD for calculation File: ~/projects/finta/finta/finta.py Type: function

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/peerchemist/finta/issues/114#issuecomment-813426534, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHGCFRMVLJXYMNXLGD2CJMLTHHDFNANCNFSM42MADTDA .

peerchemist commented 3 years ago

You sure you run 1.3?

ecojam commented 3 years ago

Yes it's 1.3. I opened the file on my system and I can see the EVSTC code is in the file. Using the below for any other indicator will generate an output, but not EVSTC for some reason.

evstc = TA.EVSTC(ohlc) print(evstc)

On Mon, Apr 5, 2021 at 10:21 AM peerchemist @.***> wrote:

You sure you run 1.3?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/peerchemist/finta/issues/114#issuecomment-813450605, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHGCFROQBZ45L4HOS5KPNTDTHHIP7ANCNFSM42MADTDA .

peerchemist commented 3 years ago

Maybe remove all local files and pull from pypi again?

peerchemist commented 3 years ago

We good?

ecojam commented 3 years ago

It's working now. Thank you sir. Excellent work!

On Wed, Apr 7, 2021 at 2:47 AM peerchemist @.***> wrote:

We good?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/peerchemist/finta/issues/114#issuecomment-814686532, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHGCFRL2L5PGKFKQNOH4QNTTHQEXJANCNFSM42MADTDA .