-
Notifications
You must be signed in to change notification settings - Fork 179
Calculation RSI (wrong) #6
Comments
@jorgeog96 , Cheers, |
@jorgeog96 `import pandas ticker_val = "^IBEX" def rsiFunc(prices, n=14):
df = df_val.copy(deep=True).reset_index() ValueError Traceback (most recent call last) in rsiFunc(prices, n) ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() What can be the cause? I will appreciate your help. Kind regards |
Hello guys, I am using: Python 3.6
Before, I implemented this RSI formula and pass df['Close'] prices and compute the result inside a numpy array:
Using this, I called my function:
And the result something like this (example, 5 last elements of the array):
But now using your RSI formula and the same df I obtain the following result using the exact same data before: (last 3 elements)
What is happening?
The text was updated successfully, but these errors were encountered: