Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Failing regression tests from original TA Lib #70

@virtualritz

Description

@virtualritz

See subject.

I started doing this here. I only added tests for SMA and EMA. SMA works, i.e. the SMA of ta-rs matches the SMA output of TA Lib 1:1. But for EMA it fails.

There are two options: I am doing something wrong or the EMA implementation in ta-rs has a bug. I'm just opening this issue here to get some opinions.

The code I copied for data.rs is from test_data.c.

The actual tests are vastly simplified from the ones in TA Lib. I.e. I only run the iterator for the resp. indicator n times and compare the result with the expected one. See here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions