AminHP / gym-anytrading

The most simple, flexible, and comprehensive OpenAI Gym trading environment (Approved by OpenAI Gym)
MIT License
2.1k stars 465 forks source link

What is total_reward and total_profit #45

Closed 2796gaurav closed 3 years ago

2796gaurav commented 3 years ago

Hi, I was going over the code where when we render our results we get the result benchmarks such as

info {'total_reward': 8.100000000000023, 'total_profit': 0.7996927239889693, 'position': 1}

I just want to know what these parameters mean espically total_reward and total_profit.

AminHP commented 3 years ago

Hi @2796gaurav,

According to this line of code, they represent the total profit/reward earned by the agent at the end of each step.