-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
186 lines (173 loc) · 4.47 KB
/
index.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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="Use my stock target price calculator to determine target prices with the DCF model, set stop-loss and take-profit levels for effective investment strategies."
/>
<meta
name="keywords"
content="stock target price calculator, stock DCF model, financial analysis tool, investment calculator, stop-loss, take-profit, equity analysis software, stock target price"
/>
<meta
name="Sanzhi Kobzhan"
content="Simple solutions for equity investors"
/>
<meta
property="og:title"
content="Stock Target Price Calculator - Target Price, Stop-Loss & Take-Profit"
/>
<meta
property="og:description"
content="Accurately calculate stock target prices, set stop-loss and take-profit points using my powerful stock price calculator with DCF model."
/>
<title>
Stock Target Price Calculator - DCF Model, Stop-Loss & Take-Profit Levels
</title>
<style>
body {
font-family: "Roboto", sans-serif;
margin: 0;
padding: 0;
background: #f7f9fc;
color: #333;
display: flex;
flex-direction: column;
align-items: center;
min-height: 100vh;
}
header {
background: #2d3e50;
color: #fff;
padding: 20px;
width: 100%;
text-align: center;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
h1 {
font-size: 2.2em;
margin: 0;
}
main {
flex: 1;
width: 100%;
max-width: 900px;
padding: 20px;
box-sizing: border-box;
}
h2,
h3 {
color: #2d3e50;
margin-bottom: 20px;
text-align: center;
}
.container {
background: #fff;
padding: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 8px;
margin-bottom: 20px;
width: 100%;
max-width: 900px;
box-sizing: border-box;
}
form.container {
display: flex;
flex-direction: column;
align-items: center;
}
input[type="text"] {
padding: 12px;
font-size: 16px;
width: calc(100% - 24px);
max-width: 500px;
margin-bottom: 12px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
input[type="submit"] {
padding: 12px 24px;
font-size: 16px;
background: #2d3e50;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background 0.3s;
}
input[type="submit"]:hover {
background: #1f2d3e;
}
#result {
font-size: 18px;
text-align: center;
display: none;
}
#chartContainer {
padding: 20px;
display: none;
}
canvas {
width: 100% !important;
height: auto !important;
}
@media (max-width: 600px) {
body {
margin: 10px;
}
h1 {
font-size: 24px;
}
h2,
h3 {
font-size: 18px;
}
input[type="text"],
input[type="submit"] {
font-size: 14px;
}
#result {
font-size: 16px;
}
canvas {
aspect-ratio: 10 / 7;
}
}
</style>
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap"
rel="stylesheet"
/>
</head>
<body>
<header>
<h1>Equity Analysis Made Easy</h1>
</header>
<main>
<h3>
Input a stock ticker to get the stock target price and the stock's
stop-loss and take-profit levels.
</h3>
<form id="stockForm" class="container">
<input
type="text"
id="ticker"
placeholder="Enter stock ticker (e.g., AAPL)"
required
/>
<input type="submit" value="Calculate" />
</form>
<h2>Long-Term Stock Target Price</h2>
<div id="result" class="container"></div>
<h2>Short-Term Stop-Loss & Take-Profit</h2>
<div id="chartContainer" class="container">
<canvas id="stockChart"></canvas>
</div>
</main>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="script.js"></script>
</body>
</html>