Skip to content

Automatic Trading fails #1

Open
@rockstardotb

Description

@rockstardotb

Please see the following Traceback:

> Trading Automatically for ['2020_10']
#################################################################################################

Account Balance: $ 1000 BTC: $ 0 USD: $ 1000

#################################################################################################
########################################## DAY 1 #########################################
Traceback (most recent call last):
File "Controller.py", line 75, in
auto_trader.runSimulation(x_test, prices)
File "/home/crypto-trading-ai-bot-basic/AutoTrader.py", line 54, in runSimulation
prediction = self.advisor.predict(np.array([samples[i]]))
File "/home/crypto-trading-ai-bot-basic/Model.py", line 73, in predict
prediction = np.array(tf.argmax(self.model.predict(sample),1))[0]
IndexError: too many indices for array: array is 0-dimensional, but 1 were indexed

Any idea what could be wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions