Closed dancydancy closed 2 years ago
Hi @dancydancy, I'm delighted this project was helpful for you :)
I'm not sure it was two years ago. But I probably wanted to keep it as simple as possible. You can add more calculations according to your need.
I highly suggest you check out my newer project gym-mtsim for daily usage. It's a real-world tool and calculates everything (almost) precisely.
That's a neat looking project :) Nicely done.
I'm looking it - but it's possibly overkill for my needs while I'm still training models and have a decent workflow setup on gym-anytrading. Metatrader looks like a lot to get into.
Let me know if it comes to you.
Many thanks
Hi!
First off, please forgive my lack of understanding. I'm a big fan of the project and am using it almost daily.
I'm looking at the FOREX environment code and there is something I cannot get my head around. Perhaps you can help clarify the flow of what is going on.
The question:
In the forex env, how does the unit_side checking work? Specifically, what is the mechanism to calculate profit of a long position if the unit_side was set to be "left"? Or to ask is another way - if unit_side "left" is initialised, does that mean that long position profits are never added?
If they are - how is it happening?
The code from forex env for reference: