gym-mtsim icon indicating copy to clipboard operation
gym-mtsim copied to clipboard

Error running using the environment

Open Seanman519 opened this issue 1 year ago • 2 comments

Hi Could i please be helped with this issue:

Traceback (most recent call last): File "c:\Users\seanm\OneDrive\Desktop\Test\test.py", line 2, in import gym_mtsim File "C:\Users\seanm\OneDrive\Desktop\Test\sean\lib\site-packages\gym_mtsim-1.3.0-py3.10.egg\gym_mtsim_init_.py", line 13, in 'original_simulator': MtSimulator(symbols_filename=FOREX_DATA_PATH, hedge=True), File "C:\Users\seanm\OneDrive\Desktop\Test\sean\lib\site-packages\gym_mtsim-1.3.0-py3.10.egg\gym_mtsim\simulator\mt_simulator.py", line 37, in init if not self.load_symbols(symbols_filename): File "C:\Users\seanm\OneDrive\Desktop\Test\sean\lib\site-packages\gym_mtsim-1.3.0-py3.10.egg\gym_mtsim\simulator\mt_simulator.py", line 73, in load_symbols self.symbols_info, self.symbols_data = pickle.load(file) File "C:\Users\seanm\OneDrive\Desktop\Test\sean\lib\site-packages\pandas-2.1.1-py3.10-win-amd64.egg\pandas\core\internals\blocks.py", line 2400, in new_block return klass(values, ndim=ndim, placement=placement, refs=refs) TypeError: Argument 'placement' has incorrect type (expected pandas._libs.internals.BlockPlacement, got slice)

i suspected pandas , tried to uninstall the one i had and used the setup.py but still same problem

please help

Seanman519 avatar Sep 30 '23 13:09 Seanman519

Please try installing pandas version 1.5.3

AminHP avatar Oct 02 '23 15:10 AminHP

thanks , its working now with that version,
may i ask if its possible to use a saved model on a live trading account, get the model to utilize metatrader5 api , i have been trying all day to get to utilize my saved model on live demo account with the metatrader5 python api but i have little success.

Any guides or tips about this?

Seanman519 avatar Oct 02 '23 16:10 Seanman519

Hello @Seanman519 , apologies for missing your comment. I have done that a long time ago. I used some APIs provided in the metatrader5 python package to receive the real-time data from my MetaTrader account. Afterward, I could create the signal features, prepare the environment, and obtain the agent's decision in the env. The final stage was sending that decision to the MetaTrader account through the python APIs.

AminHP avatar Mar 20 '24 16:03 AminHP

Hello World

Thanks so much for the response, i actually took upon trying to expand from your repo,it was really motivation and aided in into working on https://github.com/Seanman519/RLBOT, you are amongst my biggest inspirations.

Anyway Thanks for the response.

Seanman519 avatar Mar 20 '24 17:03 Seanman519