7

I'm looking for a python library that provides simple set of financial calculations, such as MACD, EMAs and other indicators. I've been looking around for it, but either all projects that were trying to do it are dead, or non-existent. Is there a library like that in the existence?

Thanks.

Alex
  • 897
  • 1
  • 11
  • 21
  • A similar question was posted here about a month earlier http://stackoverflow.com/questions/4406481/technical-analysis-in-python –  Nov 14 '11 at 15:53

3 Answers3

2

ActiveState has a recommendation for must have python packages when dealing with finance industry related problems. Did you check that and does that contain whatever you are looking for?

Senthil Kumaran
  • 54,681
  • 14
  • 94
  • 131
1

Check out TA-Lib. Pandas may have all the tools to build these calculations from scratch, but this library has virtually all the common technical indicators you could ask for already made into simple functions.

Jacob Amos
  • 996
  • 11
  • 18
0

pandas has all the tools needed to to these computations. It has methods for moving averages exponential moving averages etc. very easy to do the technical indicators if you already have the time series data in pandas data structures.

can also look at http://matplotlib.org/examples/pylab_examples/finance_work2.html bit of a long example, but it gives a very nicely formatted MACD plot.

Joop
  • 7,840
  • 9
  • 43
  • 58