sachink2010 / AutomatedStockTrading-DeepQ-Learning

Every day, millions of traders around the world are trying to make money by trading stocks. These days, physical traders are also being replaced by automated trading robots. Algorithmic trading market has experienced significant growth rate and large number of firms are using it. I have tried to build a Deep Q-learning reinforcement agent model to do automated stock trading.
MIT License
258 stars 79 forks source link

Please find the project inside Zip file that contain the multiple folders

  1. State : in this folder you will find the state.py file
  2. Agent :inside this folder you will get Agent.py file
  3. Trading.ipynb file that contains functionality:

3.1 Data pre-processing 3.2 Agent is trained with 51 Episode. Input here are following parameters:

3.3 Evaluate and final program that predict the total portfolio value for one episode

  1. Models are saved in model directory

To execute the program, you would need to run the Trading.IPynb file with input as stated above and then look at the result

  1. There are other files: Testing- Google n Walmart.ipynb and Testing-IBM n GE.ipynb. These can be used to test the model generated in Trading.ipynb and stored in Models directory

References

  1. MACHINE LEARNING FOR TRADING: GORDON RITTER: https://cims.nyu.edu/~ritter/ritter2017machine.pdf

  2. Financial Trading as a Game: A Deep Reinforcement Learning Approach: Huang, Chien-Yi https://arxiv.org/pdf/1807.02787.pdf

  3. Convergence of Q-learning: a simple proof: Francisco S. Melo: http://users.isr.ist.utl.pt/~mtjspaan/readingGroup/ProofQlearning.pdf

  4. https://medium.com/@chinmaya.mishra1/deep-dive-in-to-reinforcement-learning-10fa30b418f9

  5. David Silver’s lectures about deep reinforcement learning