You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if self.data.Close.values[i] > self.ema[i] and
IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices
Just run next:
from autotrader import AutoTrader
Create AutoTrader instance, configure it, and run backtest
at = AutoTrader()
at.configure(verbosity=1, show_plot=True, feed='yahoo')
at.add_strategy('macd')
at.backtest(start = '1/6/2022', end = '1/10/2022')
at.virtual_account_config(initial_balance=1000, leverage = 1000)
at.run()
The text was updated successfully, but these errors were encountered:
Have the issue:
if self.data.Close.values[i] > self.ema[i] and
IndexError: only integers, slices (
:
), ellipsis (...
), numpy.newaxis (None
) and integer or boolean arrays are valid indicesJust run next:
from autotrader import AutoTrader
Create AutoTrader instance, configure it, and run backtest
at = AutoTrader()
at.configure(verbosity=1, show_plot=True, feed='yahoo')
at.add_strategy('macd')
at.backtest(start = '1/6/2022', end = '1/10/2022')
at.virtual_account_config(initial_balance=1000, leverage = 1000)
at.run()
The text was updated successfully, but these errors were encountered: