ta-lib

Python TA-Lib install problems

拟墨画扇 提交于 2019-11-30 05:30:08
问题 Frustratingly having a lot of difficult installing the TA-Lib package in python. https://pypi.python.org/pypi/TA-Lib I have read through all the forum posts I can find on this but no such luck for my particular problem.. Windows 10 Python 3.5.2 Anaconda 4.2.0 Cython 0.24.1 Microsoft Visual Studio 14.0 I have downloaded and extracted ta-lib-0.4.0-msvc.zip to C:/TA-Lib (common problems seem to be people not installing the underlying TA-Lib file http://www.ta-lib.org/hdr_dw.html) If someone

MACD Function Returning Incorrect Values

你离开我真会死。 提交于 2019-11-28 10:19:59
I am trying to use PHPs trader functions (available as a PECL extension) to calculate the moving average convergence/divergence (MACD) of various securities. However, the values returned do not seem to match my calculations. Consider the following array of close prices for a stock: $close = array ( 0 => 459.99, 1 => 448.85, 2 => 446.06, 3 => 450.81, 4 => 442.8, 5 => 448.97, 6 => 444.57, 7 => 441.4, 8 => 430.47, 9 => 420.05, 10 => 431.14, 11 => 425.66, 12 => 430.58, 13 => 431.72, 14 => 437.87, 15 => 428.43, 16 => 428.35, 17 => 432.5, 18 => 443.66, 19 => 455.72, 20 => 454.49, 21 => 452.08, 22 =>