Skip to content

Instantly share code, notes, and snippets.

@saleh-old
Created June 28, 2020 07:27
Show Gist options
  • Save saleh-old/7f5f394deea31d9aa4ebe2e7c8970edc to your computer and use it in GitHub Desktop.
Save saleh-old/7f5f394deea31d9aa4ebe2e7c8970edc to your computer and use it in GitHub Desktop.
# "4" is the index of low of the candle in Jesse's strategy API.
# for more, read https://docs.jesse-ai.com/docs/strategies/api.html#current-candle
last_20_lows = self.candles[-20:, 4]
previous_low = np.min(last_20_lows)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment