komo135
forex-trading
Jupyter Notebook

forex trading with reinforcement learning

Last updated May 29, 2026
23
Stars
7
Forks
6
Issues
0
Stars/day
Attention Score
19
Language breakdown
No language data available.
Files click to expand
README

Archived.

The new repository will be https://github.com/komo135/trade-rl.

Download Forex data

  • Download Metatrader5 from this link and install.
  • Verify that a demo account exists.
  • If the demo account does not exist, create a demo account.
https://user-images.githubusercontent.com/66017773/155930300-f6e2c949-72e7-4448-9925-3b7ccf837390.mp4
  • Go from Tools to Options (Ctr + o).
  • Go to the chart bar and change Max bars in chart to unlimited.

https://user-images.githubusercontent.com/66017773/155931351-b478b6d6-36cc-4ce1-8ee3-7c97e792d4ab.mp4

  • install Metatrader5 and ta package
$ pip install MetaTrader5 ta
  • run generate_data.py
$ cd data
$ python generate_data.py

run agent

$ python
>>> from agent import dqn

>>> agent = dqn.Agent(modelname="efficientnetb0", s=5, actiontype=3, pipscale=1, n=1, losscut=False, usedevice="tpu", dueling=False) >>> agent.train() >>> >>> agent.plotresult(w=self.bestw, risk=0.04, s=self.s)

image

🔗 More in this category

© 2026 GitRepoTrend · komo135/forex-trading · Updated daily from GitHub