-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproject_11.html
113 lines (109 loc) · 7.76 KB
/
project_11.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css?family=Montserrat:600,700,800" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css"
integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous">
<link href="https://unpkg.com/[email protected]/dist/aos.css" rel="stylesheet">
<link rel="stylesheet" href="./style.css">
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js"></script>
<script src="https://unpkg.com/[email protected]/dist/aos.js"></script>
<link rel="stylesheet" href="./code.css">
<title>Pascal Schlaak | Portfolio</title>
<link rel="icon" type="image/png" href="./imgs/icons/logo_small.svg">
</head>
<body>
<div id="app">
<navbar-normal></navbar-normal>
<navbar-small></navbar-small>
<hamburger></hamburger>
<section id="project">
<img src="./imgs/dots.png" id="dots">
<div class="container project-text">
<h1>Technical analysis of stock data</h1>
<div class="flex-row">
<div class="column-65">
<p class="text">In order to deepen my knowledge of the current master lectures Data Analytics
and Predictive Analytics, I was looking for a project in my spare time, which is suitable
for statistical analysis. Last year I was busy writing a script that automatically
processes, visualizes and sends me the performance of stocks after the close of the trading
day via e-mail. In order to have more indicators to evaluate stocks, I decided to get into
the technical analysis of stocks. My goal was to determine further indicators that could be
used for a data-based valuation of stocks and their prices. Also to get an overview
of the performance of a stock based on last week's values, which I can interpret over the
weekend. In the following I wanted to
describe the first results of my analysis, which I want to expand on in the coming weeks.
</p>
<h2 style="padding-top: 2.5vh;"><span style="color: #DCDCDC;">#</span> Technical details</h2>
<p class="text">I basically use the same technologies as when I last dealt with the topic. As
programming language I use Python. As API for stock price queries I use Alpha Vantage. This
allows five free requests per minute, which is enough for a first test of my application.
Pandas offers a suitable data analytics framework for processing large tabular data sets.
Scipy also offered itself for the processing of data.</p>
<h2 style="padding-top: 2.5vh;"><span style="color: #DCDCDC;">#</span> Current results</h2>
<img src="./imgs/project_11/uber_example.png" alt="Uber technical analysis" data-aos="fade-up">
<p class="text">To visualize the stock data I created a box plot, where positive trends (close
larger than open) are displayed in green and negative trends (close smaller than open) in
red. For this I use Matplotlib. The volume of transactions is also shown in a subplot below.
</p>
<p class="text">To illustrate trends I calculated and visualized trend lines, which show the
trends of the high and low values and the mean value of the close prices. With the help of
linear regression I have created an intercept and slope of the respective functions and
determined all data points of the time values. High and low trends are also shifted by its
standard deviation in the respective direction.</p>
<p class="text">Two moving averages were calculated and visualized to determine golden cross,
death cross and crossover indicators. One is the Simple Moving Average (SMA) based on a time
window of 15 days, the other an Expontential Moving Average (EMA) based on a 100 day time
window.</p>
<p class="text">Based on an SMA consisting of a 20-day time window, a Bollinger Band was
calculated and displayed, which represents likely limits of price trends.</p>
<p class="text">Common Fibonacci Retracement levels were also calculated to represent certain
limits for support and resistance. For this purpose, the global maximum and minimum of the
current time window were identified, the difference between them was multiplied by ratios of
23.6%, 38.2%, 61.8% and subtracted from the maximum.</p>
<h2 style="padding-top: 2.5vh;"><span style="color: #DCDCDC;">#</span> Outlook</h2>
<p class="text">In the next few weeks I would like to delve further into the topic of technical
analysis in order to be able to calculate and present further indicators. As far as the
visualization of performance is concerned, I am currently satisfied. My focus will now be
more on interpreting all visualized data using calculated indicators. I would also like to
perform a prediction of the data using RNN/LSTM algorithms.</p>
<p class="text">You can check out my current code in my <a
href="https://github.com/Schlagoo/stocks" style="color: #2F58F7">Github repository</a>.
</p>
</div>
<div>
<div class="information border">
<p class="text"><b>Type</b></p>
<p class="text">Freetime project</p>
<p class="text"><b>Tools</b></p>
<p class="text">Python, Pandas, Scipy, Matplotlib, Alpha Vantage API</p>
<p class="text"><b>Partners</b></p>
<p class="text">None</p>
<p class="text"><b>Date</b></p>
<p class="text">2020-11-19</p>
<p class="text"><b>Source</b></p>
<p class="text">
<a href="https://github.com/Schlagoo/stocks" style="color: #2F58F7">Github
repository</a>
</p>
</div>
</div>
</div>
</div>
</section>
<footer-portfolio></footer-portfolio>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
$(document).ready(function () {
$('#hamburger, #home, #proj, abo').click(function () {
$("#hamburger").toggleClass('open');
});
});
</script>
<script type="text/javascript" src="./main.js"></script>
</body>
</html>