Yvictor / TradingGym

Trading and Backtesting environment for training reinforcement learning agent or simple rule base algo.
MIT License
1.57k stars 350 forks source link

AttributeError: 'trading_env' object has no attribute 'backtest_done' #10

Open irvineAlgotrading opened 5 years ago

irvineAlgotrading commented 5 years ago

Hey! Great project, really excited about it but having a small problem.

Can't run the agent, env.backtest is causing a problem, so in the trading_env.make function I added the parameter backtest=1, and now the backtest_done is popping up as having to attribute.

This seems to be a problem with threading, from what I can read online.

Has anyone had success beyond the point of this error? Is it a package version I can downgrade?

Attached my notebook. trading-gym-andy.zip

no matter what I add to trading_env.make, including backtest_done=0 or 1, it fails to see it as an attribute... wtf!