← Open Source
philipxjm

Deep-Convolution-Stock-Technical-Analysis

Uses Deep Convolutional Neural Networks (CNNs) to model the stock market using technical analysis. Predicts the future trend of stock selections.

ApplicationsSpecialistsPython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
628
Stars
171
Forks
+0
This week
2
Contributors
Created 2016-03-24 · Updated 2026-09-19 · #15850 today
Top developers
philipxjmpkage

philipxjm/Deep-Convolution-Stock-Technical-Analysis is ranked 15,850 with 628 stars.

Same-category comparison

philipxjm/Deep-Convolution-Stock-Technical-Analysis is ranked 15,850 among these 8 peers; orange2ai/claude-code-now is ranked 15,857.

Same-category comparison
NameRankMetrics
chrishutchinson/claude-receipts15,827
Language:
TypeScript
Stars:
629
Forks:
40
Description:
Bring receipts from your Claude Code sessions.
facebookresearch/inversecooking15,833
Language:
Python
Stars:
629
Forks:
150
Description:
Recipe Generation from Food Images.
huangserva/claude-code-cli15,834
Language:
TypeScript
Stars:
629
Forks:
1,303
ServiceStack/llms15,842
Language:
JavaScript
Stars:
628
Forks:
32
Description:
LLM Client, Server API and UI.
orange2ai/claude-code-now15,857
Language:
Shell
Stars:
627
Forks:
40
Description:
The World's Fastest Claude Code Launcher Make Claude Code launching simpler Click Dock to launch, or start from any folder instantly.
pulp-platform/pulp-dronet15,858
Language:
C
Stars:
627
Forks:
178
Description:
A deep learning-powered visual navigation engine to enables autonomous navigation of pocket-size quadrotor - running on PULP.
waynesutton/markdown-site15,859
Language:
TypeScript
Stars:
627
Forks:
91
Description:
An open-source publishing framework built for AI agents and developers to ship websites, docs, or blogs. Write markdown, sync from the terminal. Your content is instantly available to browsers, LLMs, and AI agents. Built on Convex and Netlify.
yoeven/ai-video-search-engine15,861
Language:
TypeScript
Stars:
627
Forks:
58
Description:
AI Video Search Engine (RAG).
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryApplications
SubcategorySpecialists
KeywordsFinance, Trading
Stars628
Forks171
Contributors2
Created date2016-03-24
Updated date2026-09-19
Stars in 1 day0
Stars in 7 days0
Rank15,850
Previous rank15,652
Rank change-198
7-day stars rank15,218
Previous 7-day stars rank15,221
7-day stars rank change3
Total stars rank16,201
Previous total stars rank16,180
Total stars rank change-21
CountryUSA
README summary

Neural Stock Market Prediction Uses Deep Convolutional Neural Networks (CNNs) to model the stock market using technical analysis. Predicts the future trend of stock selections. Convolutional neural networks are designed to recognize complex patterns and features in images. It works by dividing an image up into multiple overlapping perceptive fields and running a myriad of trainable filters through them, capturing basic features and patterns. This process is repeated several times, and as the filtered image is ran through more filters

, deeper and more meaningful features are extracted and quantified. For example, to recognize an image of a car we might have several filters that are sensitive to wheels, or windows, or exhaust pipes, or licence plates. and all of the results of these filters are gathered and quantified into a final classifier. OK, that's great, but how does this tie in to stock analysis? Here we introduce the study of technical analysis. I'll let Investopedia's words describe it: "Technical analysis

is a trading tool employed to evaluate securities and attempt to forecast their future movement by analyzing statistics gathered from trading activity, such as price movement and volume. Unlike fundamental analysts who attempt to evaluate a security's intrinsic value, technical analysts focus on charts of price movement and various analytical tools to evaluate a security's strength or weakness and forecast future price changes. " In other words, technical analysis focuses on the movement patterns and trading behaviors of stock selections to

pinpoint a stock's future trend. Wait a minute, if technical analysis works by analysing the movement patterns of stocks, we can use CNN to model this analytical technique! For example, we would have some filters that are sensitive to shortterm uptrends, and they will be combined by fully connected layers to be sensitive to longterm uptrends. The same goes for some complex patterns such as shortterm floats, or an overall downward trend capture. As previously mentioned, CNN works by stacking

several filters on top of each other to form complex feature-sensitive filters; if we were to treat stock data as images, we can apply CNN to it and extract useful and deep information. Instead of convolving a 2D image, we convolved a 1D image, since stock data is linear and is represented as an 1D tensor. Also, the input images is in the shape , the moving-window (the length of data we will be looking at in one batch

) the five channels being , all information I deemed important for technical analysis. After several convolutional layers and batchnorms later, we arrive at a tensor sized , which we then run through several softmax layers and finally a sigmoid activation to result in a tensor sized , with two values, one representing the bullish confidence, and the other one the bearish confidence. 87| Usage The trained model is proprietary, but you are absolutely welcome to train your own using my code. 5+ and

tensorflow installed, tensorflow-gpu highly recommended as the training requires a lot of computational power. Of course, you have to

Frequently asked questions

How many stars and forks are recorded?

philipxjm/Deep-Convolution-Stock-Technical-Analysis has 628 stars and 171 forks.

What is the repository rank?

philipxjm/Deep-Convolution-Stock-Technical-Analysis is ranked 15,850.

What language and category are recorded?

philipxjm/Deep-Convolution-Stock-Technical-Analysis has 628 stars, uses Python and belongs to Applications.

Which repository is closest in rank?

philipxjm/Deep-Convolution-Stock-Technical-Analysis is compared with orange2ai/claude-code-now, ranked 15,857 with 627 stars.

README

Neural Stock Market Prediction

Uses Deep Convolutional Neural Networks (CNNs) to model the stock market using technical analysis. Predicts the future trend of stock selections.

How does it work?

Convolutional neural networks are designed to recognize complex patterns and features in images. It works by dividing an image up into multiple overlapping perceptive fields and running a myriad of trainable filters through them, capturing basic features and patterns. This process is repeated several times, and as the filtered image is ran through more filters, deeper and more meaningful features are extracted and quantified. For example, to recognize an image of a car we might have several filters that are sensitive to wheels, or windows, or exhaust pipes, or licence plates... and all of the results of these filters are gathered and quantified into a final classifier.

OK, that's great, but how does this tie in to stock analysis? Here we introduce the study of technical analysis. I'll let Investopedia's words describe it: "Technical analysis is a trading tool employed to evaluate securities and attempt to forecast their future movement by analyzing statistics gathered from trading activity, such as price movement and volume. Unlike fundamental analysts who attempt to evaluate a security's intrinsic value, technical analysts focus on charts of price movement and various analytical tools to evaluate a security's strength or weakness and forecast future price changes." In other words, technical analysis focuses on the movement patterns and trading behaviors of stock selections to pinpoint a stock's future trend. Wait a minute, if technical analysis works by analysing the movement patterns of stocks, we can use CNN to model this analytical technique!

For example, we would have some filters that are sensitive to shortterm uptrends, and they will be combined by fully connected layers to be sensitive to longterm uptrends. The same goes for some complex patterns such as shortterm floats, or an overall downward trend capture.

As previously mentioned, CNN works by stacking several filters on top of each other to form complex feature-sensitive filters; if we were to treat stock data as images, we can apply CNN to it and extract useful and deep information. How do we go about this?

Instead of convolving a 2D image, we convolved a 1D image, since stock data is linear and is represented as an 1D tensor.

def conv1d(input, output_dim,
           conv_w=9, conv_s=2,
           padding="SAME", name="conv1d",
           stddev=0.02, bias=False):
  with tf.variable_scope(name):
    w = tf.get_variable('w', [conv_w, input.get_shape().as_list()[-1], output_dim],
      initializer=tf.truncated_normal_initializer(stddev=stddev))
    c = tf.nn.conv1d(input, w, conv_s, padding=padding)

    if bias:
      b = tf.get_variable('b', [output_dim], initializer=tf.constant_initializer(0.0))
      return c + b

    return c

Also, the input images is in the shape [batch_size, 128, 5], the moving-window (the length of data we will be looking at in one batch) the five channels being [Open, High, Low, Close, Volume], all information I deemed important for technical analysis.

After several convolutional layers and batchnorms later, we arrive at a tensor sized [batch_size, 2, 1024], which we then run through several softmax layers and finally a sigmoid activation to result in a tensor sized [batch_size, 2], with two values, one representing the bullish confidence, and the other one the bearish confidence.

Materials for Consideration

Name Link
Historical Data
Description of Technical Analysis
Berkeley paper on ANN-based analysis

Data Format

19991118,0,42.2076,46.382,37.4581,39.1928,43981812.87

Date Time Open High Low Close Volume
19991118 0 42.2076 46.382 37.4581 39.1928 43981812.87

Usage

The trained model is proprietary, but you are absolutely welcome to train your own using my code.

You must have python 3.5+ and tensorflow installed, tensorflow-gpu highly recommended as the training requires a lot of computational power.

pip install tensorflow-gpu

git clone https://github.com/philipxjm/Convolutional-Neural-Stock-Market-Technical-Analyser.git

cd Convolutional-Neural-Stock-Market-Technical-Analyser

python stock_model.py

Of course, you have to tinker with the hyper parameters, archeteture of the encoder, and the dataset setup if you want to achieve good results. Good luck and make some money.

Nearby in the ranking
Similar items