I initially thought about using Metsä Board for this example, but let’s quickly put together a rushed Nokia example here. A reminder that this does not consider social media, funds, or other external factors beyond the price at all.
I fed the last 4 years of Nokia’s stock data (<18.7.2019) into the machines. To get an idea of where Nokia stands compared to other companies, I first ran a price comparison for Nokia. In an optimal situation, this would be done against competitors, but I ran this with other random stocks whose data I had already captured. I colored Nokia red for better visibility.
Once you know the approximate position of a stock relative to others, you can start analyzing it through visible data. The simplest way to assess performance is to compare years with each other to find strong and weak periods. Below are the last 4 years in one image.
Broken down, the years look like this:
The turn of the year has often served as a turning point in price. This information is good to keep in mind, but it’s just an observation that we won’t be doing much with in the end.
What interests us is the stock’s price profile. The profile is obtained by calculating the most common price level for the stock:
Apparently, Nokia’s most common level is around five euros. A more precise view of this is obtained by calculating the CloseMean from the 4-year average, i.e., the average closing price level.
By adding the linear average to the chart, we notice that, on average, Nokia has been declining for the past 4 years.
Using the linear average as an aid, we can also illustrate what the stock price looks like compared to the average decline:

This calculation can also be used to create an indicator for monitoring prices if needed.
By adding MA12 to the chart, we get the following image, whose results we will use in the future:
And that future comes now. So, by utilizing MA12 and closing prices, we can calculate and visualize the average direction of the stock price and the average price deviations (the nuances of the Finnish language). Technically, in the image, you see black as the standard, blue as the closing price, and orange as MA12. The downward trend is visible.
So what does this mean for the stock itself? Can this be made to sound more sensible for the average person? Thanks to dates, prices, and algorithms, seasonal price changes can also be filtered from the data:
The clearest pattern is likely the downward trend, and the most interesting is the seasonal fluctuation. According to the graph, we’ll apparently hit temporary lows again in a couple of days.
But! Does this mean one should buy?
That’s a personal question for everyone and depends on the individual. I personally prefer to wait until all the stars align if a buying decision needs to be made. Identifying overreactions in the stock price is useful in some cases:
The previous overreaction occurred in the spring when the price reached 4.23. This would have been a good time to cast a line.
How does the stock behave at different price levels? Price volatility/scatter can be described as follows:

The price is most stable between 4.2 and 5.8 euros.
Turned into a 3D image:
How would an algo identify buying opportunities?
This depends on the algorithm being used. If the algorithm is based on price anomalies and aims for a normal level, i.e., it identifies price extremes and sells based on that, the output could look like this:
Translated into a bar graph, this shows the most favorable buying and selling opportunities over 4 years:
So, the less red there is, the calmer and less risky the movement has been. The red dots represent the points in the image above, and blue represents the price level.
The Monte Carlo simulation method can also be used to map results, which to my knowledge is used, for example, in weather forecasting. You can read more about the method on Wikipedia.
In short, the simulation generates a given number of random forecasts that can be filtered by probability. I will not use the method in this analysis other than for demonstration purposes. Below is a demonstration of the 100 most likely routes for the stock price based on 4 years of data.
This is also much easier to read from a bar chart:
Not strictly an investment strategy, but it gives a good idea of what to expect from the future by combining it with all the other data discussed above.
But, but! At what point do we look at the algorithm results?
Let’s look at them now.
I personally like to use a combination of two different algorithms. One is based on the teachings of the legend himself, Richard Dennis (see Turtle strategy), i.e., changes in trends, and the other on the ABCD pattern in the stock market.
The first mentioned is below. Rules: Max buys: 200, Max sells: 1000:
day 314: buy 200 units at price 887.600000, total balance 9112.400000 (INV 200 )
day 324: buy 200 units at price 864.800000, total balance 8247.600000 (INV 400 )
day 325: buy 200 units at price 830.000000, total balance 7417.600000 (INV 600 )
day 326: buy 200 units at price 813.600000, total balance 6604.000000 (INV 800 )
day 327: buy 200 units at price 794.400000, total balance 5809.600000 (INV 1000 )
day 329: buy 200 units at price 787.200000, total balance 5022.400000 (INV 1200 )
day 330: buy 200 units at price 771.600000, total balance 4250.800000 (INV 1400 )
day 337: buy 200 units at price 762.000000, total balance 3488.800000 (INV 1600 )
day 451, sell 1000 units at price 5370.000000, investment 40.944882 %, total balance 8858.800000, (INV 600 )
day 452, sell 600 units at price 3231.000000, investment 41.338583 %, total balance 12089.800000, (INV 0 )
day 453: cannot sell anything, inventory 0
day 454: cannot sell anything, inventory 0
day 455: cannot sell anything, inventory 0
day 456: cannot sell anything, inventory 0
day 466: cannot sell anything, inventory 0
day 603: buy 200 units at price 802.800000, total balance 11287.000000 (INV 200 )
day 605: buy 200 units at price 784.000000, total balance 10503.000000 (INV 400 )
day 607: buy 200 units at price 780.000000, total balance 9723.000000 (INV 600 )
day 608: buy 200 units at price 774.000000, total balance 8949.000000 (INV 800 )
day 886, sell 800 units at price 4344.000000, investment 40.310078 %, total balance 13293.000000, (INV 0 )
day 887: cannot sell anything, inventory 0
day 958: buy 200 units at price 872.800000, total balance 12420.200000 (INV 200 )
day 959: buy 200 units at price 868.400000, total balance 11551.800000 (INV 400 )
day 960: buy 200 units at price 854.200000, total balance 10697.600000 (INV 600 )
day 961: buy 200 units at price 853.700000, total balance 9843.900000 (INV 800 )
day 962: buy 200 units at price 846.500000, total balance 8997.400000 (INV 1000 )
And below is an image of the ABCD results on the map:
And in indicator form:
The difference between the two, as the most observant have already noticed, is that the first one is suitable for long timeframes and the second one for medium timeframes. In the first one, I use 4 years of data, and in ABCD, 1 year of data.
I’ll throw the forest B (metsä B) here at some point.
And by all means, if any good strategies or observations come to mind, shout them out.