Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crossover: IndexError: list index out of range (Bad data) #304

Closed
decharel opened this issue May 23, 2018 · 11 comments
Closed

Crossover: IndexError: list index out of range (Bad data) #304

decharel opened this issue May 23, 2018 · 11 comments
Labels

Comments

@decharel
Copy link
Contributor

After hours of running crypto-signal I get the following error. I assume an error handling could avoid this crossover behaviour when there is bad data.

Beginning analysis of NEO/USDT
Exchange supplied bad data for pair NEO/USDT, skipping
Traceback (most recent call last):
File "app.py", line 45, in
main()
File "app.py", line 39, in main
behaviour.run(settings['market_pairs'], settings['output_mode'])
File "/app/behaviour.py", line 63, in run
new_result = self._test_strategies(market_data, output_mode)
File "/app/behaviour.py", line 98, in _test_strategies
new_result[exchange][market_pair]
File "/app/behaviour.py", line 251, in _get_crossover_results
crossed_indicator = new_result[crossover_conf['crossed_indicator_type']][crossover_conf['crossed_indicator']][crossover_conf['crossed_indicator_index']]
IndexError: list index out of range

@ghost ghost added the bug label May 23, 2018
@december-soul
Copy link
Contributor

maybe this can help you.
#299

not a good fix but it works

@alonsovargas3
Copy link

alonsovargas3 commented May 24, 2018

I'm seeing the same thing and noticing that it's retrying. Posting error here just in case it helps

Beginning analysis of WTC/BTC
Too many retries fetching information for pair WTC/BTC, skipping
Too many retries fetching information for pair WTC/BTC, skipping
Too many retries fetching information for pair WTC/BTC, skipping
Too many retries fetching information for pair WTC/BTC, skipping
Too many retries fetching information for pair WTC/BTC, skipping
Too many retries fetching information for pair WTC/BTC, skipping
Traceback (most recent call last):
File "app.py", line 45, in
main()
File "app.py", line 39, in main
behaviour.run(settings['market_pairs'], settings['output_mode'])
File "/app/behaviour.py", line 63, in run
new_result = self._test_strategies(market_data, output_mode)
File "/app/behaviour.py", line 98, in _test_strategies
new_result[exchange][market_pair]
File "/app/behaviour.py", line 250, in _get_crossover_results
key_indicator = new_result[crossover_conf['key_indicator_type']][crossover_conf['key_indicator']][crossover_conf['key_indicator_index']]
IndexError: list index out of range

@ghost
Copy link

ghost commented May 24, 2018

I think that's actually a separate problem, but it will probably help me track down this one.

@heartsmith
Copy link

I run the app over all pairs on bittrex and also get the same error. Any fix?

Beginning analysis of BCH/BTC
No historical data provided returned by exchange.
Invalid data encountered while processing pair BCH/BTC, skipping
No historical data provided returned by exchange.
Invalid data encountered while processing pair BCH/BTC, skipping
No historical data provided returned by exchange.
Invalid data encountered while processing pair BCH/BTC, skipping
No historical data provided returned by exchange.
Invalid data encountered while processing pair BCH/BTC, skipping
No historical data provided returned by exchange.
Invalid data encountered while processing pair BCH/BTC, skipping
Traceback (most recent call last):
File "app.py", line 45, in
main()
File "app.py", line 39, in main
behaviour.run(settings['market_pairs'], settings['output_mode'])
File "/app/behaviour.py", line 63, in run
new_result = self._test_strategies(market_data, output_mode)
File "/app/behaviour.py", line 98, in _test_strategies
new_result[exchange][market_pair]
File "/app/behaviour.py", line 250, in _get_crossover_results
key_indicator = new_result[crossover_conf['key_indicator_type']][crossover_conf['key_indicator']][crossover_conf['key_indicator_index']]
IndexError: list index out of range

@alonsovargas3
Copy link

alonsovargas3 commented Apr 4, 2019 via email

@heartsmith
Copy link

Hi @alonsovargas3 , everything goes fine if I only run it over a specific pair like BTC/USDT. Weirdly, the same error occurred on BHC/BTC regardless on which market exchange.

@alonsovargas3
Copy link

alonsovargas3 commented Apr 4, 2019 via email

@laliux
Copy link
Collaborator

laliux commented Apr 4, 2019

Today, April 4, these seem to be the correct pairs on Bittrex:

BSV/BTC - Bitcoin SV
BCH/BTC - Bitcoin Cash

Candle periods: '1m', '5m', '30m', '1h', '1d'

@alonsovargas3
Copy link

alonsovargas3 commented Apr 4, 2019 via email

@heartsmith
Copy link

heartsmith commented Apr 4, 2019

So far what I need to do to scan all pairs is to list all pairs in the config except the ones which failed, right?
Roger that. Thank you, everyone! 💃

@laliux
Copy link
Collaborator

laliux commented Apr 5, 2019

The program ignores invalid pairs, It doesn't cause any error because of that.

By the way, take a look at the development branch. There are many interesting things in the process.

@laliux laliux closed this as completed Apr 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants