Created
August 27, 2021 21:21
-
-
Save SajidLhessani/f9e88976759c1c8b88269c8ad1ed9a85 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Create a variable n with a value of 10 | |
| n = 10 | |
| # Create a column by name, RSI and assign the calculation of RSI to it | |
| df['RSI'] = ta.RSI(np.array(df['Close'].shift(1)), timeperiod=n) | |
| df |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment