Skip to content

Instantly share code, notes, and snippets.

@lvthillo
Last active January 11, 2021 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lvthillo/47ffde4f495d32f39055b674bae6175c to your computer and use it in GitHub Desktop.
Save lvthillo/47ffde4f495d32f39055b674bae6175c to your computer and use it in GitHub Desktop.
# Calculate RSI
stock_data['rsi_14']
print(stock_data)
# Get most recent RSI value of our data frame
# In our case this represents the RSI of the last 15 min
last_rsi = stock_data['rsi_14'].iloc[-1]
print(last_rsi)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment