← saadnathani.me

RL trading agent: PPO on Adani Enterprises

This notebook trains a PPO agent (Stable-Baselines3) in a custom Gymnasium environment to buy, hold or sell a single stock, using five years of daily prices for Adani Enterprises (NSE) and four technical indicators. The agent is tested on 2023 data it never saw in training, against a random agent and buy-and-hold.

Test set (2023): PPO −6.2% return, max drawdown −32% · Buy-and-hold −21.2%, max drawdown −66.6% · Random agent +45.3%