Skip to content

Instantly share code, notes, and snippets.

@GerardBCN
Created April 23, 2019 15:29
Show Gist options
  • Save GerardBCN/6a8817ca4c86ed102ca29c666cc9d2c5 to your computer and use it in GitHub Desktop.
Save GerardBCN/6a8817ca4c86ed102ca29c666cc9d2c5 to your computer and use it in GitHub Desktop.
def returns(candles_close_prices):
return np.diff(np.log(candles_close_prices))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment