AminHP / gym-mtsim

A general-purpose, flexible, and easy-to-use simulator alongside an OpenAI Gym trading environment for MetaTrader 5 trading platform (Approved by OpenAI Gym)
MIT License
412 stars 101 forks source link

AssertionError: Continuous action space must have a finite lower and upper bound #36

Closed D-forti closed 1 year ago

D-forti commented 1 year ago

Model seems working fine, when I try model.learn, I get the error.

If I adjust upper and lower bound in the action space (low=-1e10, high=1e10) the model does not place any order.

AminHP commented 1 year ago

Does this fix (#30) work for you?

D-forti commented 1 year ago

yes! Now it works! thanks!

AminHP commented 1 year ago

The PR has been merged into the main branch. Please install the latest version (v1.3.0).

D-forti commented 1 year ago

Yes, it is working well now, however, I am struggling a lot to find a way to train an agent using RL for an intraday trading bot...