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
428 stars 107 forks source link

Recommended workflow for debugging changes to gym-mtsim #7

Closed dancydancy closed 2 years ago

dancydancy commented 2 years ago

Hi Amin,

What workflow do you recommend to debug changes if overriding methods and testing. This is for making sure everything is correct before training, but could also apply for training cycle itself.

Many thanks.

AminHP commented 2 years ago

Hi @dancydancy

Can you be more specific and give an example? Generally, I debug it by placing and closing some orders at certain time points. Then I calculate their profit manually and check if the code works correctly.