terading gyms for machhine learning code example
Example: terading gyms for machhine learning
env = MyTGym(episode_type='0', percent_goal_profit=2, percent_stop_loss=5, episode_duration_min=60) # set env.
state = env.reset() # initiate env and get state
next_state, reward, done, info = env.step(action) # Do action and get next step information