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

example: environment with custom parameters #32

Closed kruzel closed 1 year ago

kruzel commented 1 year ago

this example does not open any trades

balance: 10000.0, equity: 10000.0, margin: 0.0
free_margin: 10000.0, margin_level: inf

just different from expected results you wrote

crayola-web commented 1 year ago

Increase the hold_threshold parameter, by default it is 0.5 maximum 1 this parameter holds to open the orders.

AminHP commented 1 year ago

Can you send a complete example?

kruzel commented 1 year ago

it was this one, but now working for me, closing image