Created
June 28, 2020 08:10
-
-
Save saleh-old/21cae386c58b06024f49c5d99fdc8fd9 to your computer and use it in GitHub Desktop.
This file contains 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
# docs for self.get_candles: | |
# https://docs.jesse-ai.com/docs/strategies/api.html#get-candles | |
all_daily_candles = self.get_candles(self.exchange, self.symbol, '1D') | |
# notice that "-1" would have have given me the current candle, | |
# hence "-2" gives me the one before that which is yesterday's | |
previous_day_candle = all_daily_candles[-2] | |
previous_day_candle_low = previous_day_candle[4] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment