whittlem / pycryptobot

Python Crypto Bot (PyCryptoBot)
Apache License 2.0
1.96k stars 736 forks source link

V7.0.28 The bot crashes with an error in the simulation if you enable the setting "smartswitch": 1 #756

Closed ArlanovCsb closed 1 year ago

ArlanovCsb commented 1 year ago

Describe the bug The bot crashes with an error in the simulation if you enable the setting "smartswitch": 1 UnboundLocalError("local variable '_technical_analysis' referenced before assignment")

To Reproduce Steps to reproduce the behavior:

  1. Add the setting "smartswitch": 1 to the file config.json
  2. Run a simulation
  3. See error

Expected behavior I see the error in the execute_job() method in the PyCryptoBot.py file

Screenshots image image

whittlem commented 1 year ago

I was looking into this now. I'm not getting the error. I possibly have fixed this already. Can you try the latest version and confirm?