Skip to content

TypeError: 'NoneType' object is not subscriptable #1

@dRing2000

Description

@dRing2000

Initializing optimal trading strategy... Traceback (most recent call last): File "./run_bot.py", line 12, in <module> mojo.main(parameters.API_KEY, pair=parameters.pair, granularity=parameters.granularity, duration=parameters.duration, cash_buffer=parameters.cash_buffer, reframe_threshold=parameters.reframe_threshold, continuous=parameters.continuous, chandelier=parameters.chandelier) File "/home/pi/Pi-Trader-master/helper_monkey.py", line 309, in main history_array, buy_point, sell_point = iterate_signal(history_array, best_strategy, pair=pair, granularity=granularity, chandelier=chandelier) File "/home/pi/Pi-Trader-master/helper_monkey.py", line 230, in iterate_signal history_pd = strategize(history_pd, strategy=strategy, chandelier=chandelier) File "/home/pi/Pi-Trader-master/helper_monkey.py", line 113, in strategize if (m[i,3] > (m[i-1,3] + strategy['buy']*m[i-1,5])) and (m[i-1,5]>0): TypeError: 'NoneType' object is not subscriptable

got this after filling API key details and issuing ./run_bot.py command. I'm using XLM/BTC trading pair. 0 XLM, small amount of test BTC on account.

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