Import "stoch.py" to your project and use one of the following functions:
- stoch(prices, kperiod, dperiod) => Returns k-value and d-value for the given setup
- is_bullish(prices, kperiod, dperiod) => Convenience method. Returns True/False
This module requires ..
- numpy
- the "technical indicators library" (http://sourceforge.net/projects/py-tech-ind)
Be sure to test this module before integration by running "stoch_test.py"