该消息告诉我一些事情,但我看不到它:
TypeError: kwarg "alines" validator returned False for value: "{'alines': [[(Timestamp('2020-09-08 00:00:00'), 40.0), (Timestamp('2021-03-19 00:00:00'), 35.82)], [(Timestamp('2020-09-08 00:00:00'), 35.82), (Timestamp('2021-03-19 00:00:00'), 35.82)], [(datetime.datetime(2021, 2, 17, 0, 0), '47.5'), (datetime.datetime(2021, 2, 26, 0, 0), '47.5')], [(datetime.datetime(2021, 2, 25, 0, 0), '47'), (datetime.datetime(2021, 3, 19, 0, 0), '47')]], 'colors': ['b', 'g'], 'linestyle': '--'}"
'Validator' : lambda value: _alines_validator(value) },
它发生在这个电话上:
mpf.plot(df_history, show_nontrading=True,
alines=dict(alines=seq_of_points, colors=['b', 'g'], linestyle='--'),
type='candle', style=s, savefig=bildpfad,
update_width_config=dict(candle_linewidth=0.4))