Time Travel
Linux Magazine|#285/August 2024: Kernel Exploits
Mike Schilli uses a Go program to check whether a strategy for trading stocks is making gains or losses on the basis of historical price data.
Mike Schilli
Time Travel

People say that you’re always smarter with the benefit of hindsight; of course, this also applies to stock market trading. Based on the ups and downs in the historical performance of a stock, it seems as clear as the light of day when an investor should have bought or sold stocks in order to leverage upswings and reap huge profits.

It goes without saying that it is infinitely more difficult to speculate successfully with stocks whose price development is still unknown. Chemistry wizard Niels Bohr once quipped that forecasts are generally difficult, especially those concerning the future.

Random Fools

I recently stumbled across a book titled Fooled by Randomness [1] and read about a theory stating that most successful stock market speculators were simply lucky. This may sound unlikely to the average person, but it does seem plausible given the tiny proportion of successful speculators. Be that as it may, one section of the book made me sit up and take notice. In this section, author Nassim Nicholas Taleb mentions that he had commissioned a software company to write a “backtester,” a program that is familiar with the historical price data of interesting stocks and that checks trading strategies packaged into algorithms to see whether the strategies would have succeeded in a historical context.

How difficult could it be to write something like this in Go? For some sample data, I’ll take the price performance of Netflix stock (NASDAQ: NFLX) over the past two years (Figure 1). After a huge price slump from $600 (January 2022) to $180 (April 2022), Netflix stock slowly came back and as of recently has fully recovered.

Strategy or Random Walk

Bu hikaye Linux Magazine dergisinin #285/August 2024: Kernel Exploits sayısından alınmıştır.

Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 9,000+ magazines and newspapers.

Bu hikaye Linux Magazine dergisinin #285/August 2024: Kernel Exploits sayısından alınmıştır.

Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 9,000+ magazines and newspapers.

LINUX MAGAZINE DERGISINDEN DAHA FAZLA HIKAYETümünü görüntüle
MADDOG'S DOGHOUSE
Linux Magazine

MADDOG'S DOGHOUSE

The stakeholder approach of open source broadens the pool of who can access, influence, and benefit from information technologies.

time-read
3 dak  |
#289/December 2024: Coding with AI
MakerSpace
Linux Magazine

MakerSpace

Rust, a potential successor to C/C++, claims to solve some memory safety issues while maintaining high performance. We look at Rust on embedded systems, where memory safety, concurrency, and security are equally important

time-read
10+ dak  |
#289/December 2024: Coding with AI
In Harmony
Linux Magazine

In Harmony

Using the Go Interface mechanism, Mike demonstrates its practical application with a refresh program for local copies of Git repositories.

time-read
9 dak  |
#289/December 2024: Coding with AI
Monkey Business
Linux Magazine

Monkey Business

Even small changes in a web page can improve the browsing experience. Your preferred web browser provides all the tools you need to inject JavaScript to adapt the page. You just need a browser with its debugging tools, some knowledge of scripting, and the browser extension Tampermonkey.

time-read
10+ dak  |
#289/December 2024: Coding with AI
Smarter Navigation
Linux Magazine

Smarter Navigation

Zoxide, a modern version of cd, lets you navigate long directory paths with less typing.

time-read
4 dak  |
#289/December 2024: Coding with AI
Through the Back Door
Linux Magazine

Through the Back Door

Cybercriminals are increasingly discovering Linux and adapting malware previously designed for Windows systems. We take you inside the Linux version of a famous Windows ransomware tool.

time-read
9 dak  |
#289/December 2024: Coding with AI
Page Pulse
Linux Magazine

Page Pulse

Do you want to be alerted when a product is back in stock on your favorite online store? Do you want to know when a website without an RSS feed gets an update? With changedetection.io, you can stay up-to-date on website changes.

time-read
8 dak  |
#289/December 2024: Coding with AI
Arco Linux
Linux Magazine

Arco Linux

ArcoLinux, an Arch derivative, offers easier installs while educating users about Arch Linux along the way.

time-read
5 dak  |
#289/December 2024: Coding with AI
Ghost Coder
Linux Magazine

Ghost Coder

Artificial intelligence is increasingly supporting programmers in their daily work. How effective are these tools? What are the dangers? And how can you benefit from Al-assisted development today?

time-read
10+ dak  |
#289/December 2024: Coding with AI
Zack's Kernel News
Linux Magazine

Zack's Kernel News

Chronicler Zack Brown reports on the latest news, views, dilemmas, and developments within the Linux kernel community.

time-read
9 dak  |
#289/December 2024: Coding with AI