Icon

JKISeason3-1

Trends in Stock Prices

Level: Easy

Description: You work in finance and one of your clients wants to understand the value of different company stocks over time. Given a dataset of stock prices, you decide to use simple moving averages (window length = 20) to tackle this task. What companies have an upward trend for the most recent data? And what companies have a downward trend?

あなたは金融関係の仕事をしており、クライアントの1人がさまざまな会社の株式の経時的な価値を理解したいと考えている。株価のデータセットが与えられ、あなたは単純移動平均(窓の長さ = 20)を使ってこの課題に取り組むことに決めた。直近のデータで上昇トレンドのある企業は?また、どのような企業が下落傾向にありますか?

URL: Stock Data in the KNIME Community Hub https://hub.knime.com/-/spaces/-/~5HAA3T665N_vR9Ga/?pk_vid=39d01dcee41874481716119289ace891

国ごとの集計

This workflow is copied from makkynm's workflow(https://hub.knime.com/makkynm/spaces/Public/Practice/JustKNIMEit/Season3/JKI_Season3_Challenge1~tzzZFH96d7mbm5jK/current-state) for KNIME training and used for learning.

CSV Reader
date&time with timezone
String to Date&Time
up trend
Nominal Value Row Filter
By company
Group Loop Start
backward simple20 window
Moving Average
Check # of data by company
GroupBy
Loop End
Top 5 companies
Top k Row Filter
10 day lag x 2 columns
Lag Column
for visualization
Pivot
By companyby date
Sorter
for visualization
Pivot
deviation rate(Close)
Math Formula
by company
Reference Row Filter
down trend
Nominal Value Row Filter
uplift ratevs 20 days before
Math Formula
by company
Reference Row Filter
pick up the latest databy company
Duplicate Row Filter
Visualize trend
Line Plot
Trend classificationwithin 3% difference => flat(-20) <= (-10) <= (0) => up(-20) >= (-10) >= (0) => down(-20) >= (-10) <= (0) => v-shape(-20) <= (-10) >= (0) => inverted v-shape
Rule Engine
Visualize trend
Line Plot
Top 5 companies
Top k Row Filter
2023~
Date&Time-based Row Filter

Nodes

Extensions

Links