Skip to content

General Indicator Miscalculations #50

@iocron

Description

@iocron

Calculating the SMA20 of a dataset/series like 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30 will result in 21.4 (previous last 20.4). But the real correct result should have been 20.5, if we consider the official mathematical formula of calculating a SMA (verified by investopedia, tradingview, other indicators, ..). The same problems happens on the EMA calculation (with a much worse result) the last time I checked (this might apply to other indicators as well).

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions