You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to install on Windows, but unfortunately I was not able to get it working. Switched into my Linux VM and was able to install easily.
I notice in the example.py script that the TA functions are not returning the indicated results. For example:
i, odata = talib.MA(idata)
only returns an array so it has to be changed to
odata = talib.MA(idata)
Was this change done by design or was there something wrong in the build. I noticed in talib.pxy that this MA function is only returning one value so that seems to be the cause.
You're right - the example was using the old API that returns a tuple of a lookback index and the data array. The new API has a single array with the lookback filled with NaNs. This is fixed in 3e785ca.
Hi,
Thanks for putting this Python wrapper together.
I tried to install on Windows, but unfortunately I was not able to get it working. Switched into my Linux VM and was able to install easily.
I notice in the example.py script that the TA functions are not returning the indicated results. For example:
i, odata = talib.MA(idata)
only returns an array so it has to be changed to
odata = talib.MA(idata)
Was this change done by design or was there something wrong in the build. I noticed in talib.pxy that this MA function is only returning one value so that seems to be the cause.
def MA( np.ndarray[np.double_t, ndim=1] real , timeperiod=-2**31 , matype=0 ):
"""MA(real[, timeperiod=?, matype=?])
....
return outreal
Thanks
Bill
The text was updated successfully, but these errors were encountered: