小编Nok*_*suu的帖子

How do I correctly calculate EMA for a stock using Ta-lib or Pandas?

Edit!

For anyone wondering this same thing, I figured it out. There is nothing wrong with the implementations below. Its just the fact that EMA requires more than 21 data points to count a 20 data point exponential moving average. The reason for this is that the earlier data points effect the datapoints you are trying to calculate. In simple terms you i tested and you need about 40-50 datapoints to get the same 20 day EMA as with 100+ …

python pandas ta-lib

8
推荐指数
1
解决办法
6466
查看次数

标签 统计

pandas ×1

python ×1

ta-lib ×1