← Open Source
edwardhdlu

q-trader

Deep Q-learning driven stock trader bot.

ApplicationsSpecialistsPython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
921
Stars
341
Forks
+0
This week
1
Contributors
Created 2017-09-01 · Updated 2026-10-08 · #12622 today
Top developers
edwardhdlu

edwardhdlu/q-trader is ranked 12,622 with 921 stars.

Same-category comparison

edwardhdlu/q-trader is ranked 12,622 among these 8 peers; woheller69/whoBIRD is ranked 12,618.

Same-category comparison
NameRankMetrics
miantiao-me/ssh-ai-chat12,609
Language:
TypeScript
Stars:
923
Forks:
69
Description:
Chat with AI over SSH.
Dicklesworthstone/claude_code_agent_farm12,611
Language:
Shell
Stars:
922
Forks:
108
Description:
Orchestration framework for running 20+ Claude Code agents in parallel: automated bug fixing, best-practices sweeps, lock-based coordination, and real-time tmux monitoring.
conversationai/perspectiveapi12,612
Stars:
922
Forks:
118
Description:
Perspective is an API that uses machine learning models to score the perceived impact a comment might have on a conversation. See https://developers.perspectiveapi.com for more information.
woheller69/whoBIRD12,618
Language:
Kotlin
Stars:
922
Forks:
45
Description:
Identify bird sounds in real time with this Android version of BirdNET. Bird sound recognition for more than 6,000 species worldwide.
zamalali/DeepGit12,627
Language:
Python
Stars:
921
Forks:
99
Description:
Deep research agent to help you find the best GitHub repositories 🕵️.
blueberrycongee/Lumina-Note12,648
Language:
TypeScript
Stars:
918
Forks:
95
Description:
Lumina Note - A modern Markdown note-taking app with live preview, bidirectional links, and AI assistant.
Shy2593666979/AgentChat12,652
Language:
Python
Stars:
917
Forks:
114
SkywalkerDarren/chatWeb12,653
Language:
Python
Stars:
917
Forks:
135
Description:
ChatWeb can crawl web pages, read PDF, DOCX, TXT, and extract the main content, then answer your questions based on the content, or summarize the key points.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryApplications
SubcategorySpecialists
KeywordsFinance, RL
Stars921
Forks341
Contributors1
Created date2017-09-01
Updated date2026-10-08
Stars in 1 day0
Stars in 7 days0
Rank12,622
Previous rank12,537
Rank change-85
7-day stars rank13,516
Previous 7-day stars rank13,524
7-day stars rank change8
Total stars rank11,849
Previous total stars rank11,829
Total stars rank change-20
README summary

Q-Trader An implementation of Q-learning applied to (short-term) stock trading. The model uses n-day windows of closing prices to determine if the best action to take at a given time is to buy, sell or sit. As a result of the short-term state representation, the model is not very good at making decisions over long-term trends, but is quite good at predicting peaks and troughs. Results Some examples of results on test sets: S

&P 500, 2015. Running the Code To train the model, download a training and test csv files from Yahoo! Finance into Then when training finishes (minimum 200 episodes for results): References Deep Q-Learning with Keras and Gym - Q-learning overview and Agent skeleton code

Frequently asked questions

How many stars and forks are recorded?

edwardhdlu/q-trader has 921 stars and 341 forks.

What is the repository rank?

edwardhdlu/q-trader is ranked 12,622.

What language and category are recorded?

edwardhdlu/q-trader has 921 stars, uses Python and belongs to Applications.

Which repository is closest in rank?

edwardhdlu/q-trader is compared with woheller69/whoBIRD, ranked 12,618 with 922 stars.

README

Q-Trader

An implementation of Q-learning applied to (short-term) stock trading. The model uses n-day windows of closing prices to determine if the best action to take at a given time is to buy, sell or sit.

As a result of the short-term state representation, the model is not very good at making decisions over long-term trends, but is quite good at predicting peaks and troughs.

Results

Some examples of results on test sets:

S&P 500, 2015. Profit of $431.04.

Alibaba Group Holding Ltd, 2015. Loss of $351.59.

Apple, Inc, 2016. Profit of $162.73.

Google, Inc, August 2017. Profit of $19.37.

Running the Code

To train the model, download a training and test csv files from Yahoo! Finance into data/

mkdir model
python train ^GSPC 10 1000

Then when training finishes (minimum 200 episodes for results):

python evaluate.py ^GSPC_2011 model_ep1000

References

Deep Q-Learning with Keras and Gym - Q-learning overview and Agent skeleton code

Nearby in the ranking
Similar items