-
-
Notifications
You must be signed in to change notification settings - Fork 61
Closed
Labels
invalidThis doesn't seem rightThis doesn't seem right
Description
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).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
invalidThis doesn't seem rightThis doesn't seem right