Creating a custom gym (OpenAi) environment for algorithmic trading

Gym is a library which provides environments for the reinforcement learning algorithms. There are plenty of environments included in the library such as classic control, 2D and 3D robots, and atari games. An environment includes some public functions containing ‘step’, ‘reset’, and ‘render’. When the ‘step’ function is called, it returns four values, namely ‘obervation’, […]