Blog

RSI stock screener





Stock screeners are effective filters when you have a specific idea of the kinds of companies in which you are looking to invest. There are tens of thousands of stocks listed on world exchanges, so it’s time-consuming to browse them manually. Most available on the Internet screeners offer a decent set of rules and filters. They have a database of equity prices updated regularly. However, the rules and filters are usually predefined, and there is a limited possibility to extend them with more elaborate ideas. Secondly, the equity database focuses on the most popular markets, e.g. US and West Europe stocks, and does not cover more exotic and emerging markets, e.g. Eastern Europe. Using the same rules and applying them to the same markets as everybody else do, will give only average results. Focusing, in turn on markets that are less screened by bots and algorithms (Polish, Hungarian) can give a head-to-head advantage in the pursuit of good returns. So let’s create a custom tool screening the Polish market.


Continue reading “RSI stock screener”

Migration from Tkinter to Flask

The most popular library to create GUI in Python is Tkinter, which is a part of standard Python installation. Tkinter is a mature and stable tool, widely ported and relatively easy to learn. However, it is also quite old with many drawbacks, among them, it has a limited set of widgets. Although the simplistic model is easy to learn, Tkinter also becomes cumbersome with more complex interfaces. Above all, it does not support mobile and web application development.

Tkinter window
Tkinter window

Flask GUI
Flask GUI

Continue reading “Migration from Tkinter to Flask”

Tkinter list box with a search filter

Depending on the settings, a list box can be set to allow the user to select only one of the available options or multiple options. If the list is long what often happens if we work with a larger set of data, a filter used to select a few values is a handy addition. Using the filter, you can narrow down the list of values by typing a string of text in the search field above the list. The values that do not match the string are removed from the list. This particular filter needs pressing an ‘enter’ key to start processing the data. In Python Tkinter a list box is represented by Listbox widget.

Continue reading “Tkinter list box with a search filter”

Gutenberg code editor

Wordpress editors are set to build web pages even with no knowledge of HTML principles. The latest editor, Gutenberg, is designed in a way similar to a rather familiar for most users MS Word’s interface. It has various tools for editing texts, adding images with their further adjustments, inserting links, etc. Basically, the working process is intuitive and understandable even if the user has no experience of working with any HTML editor at all. The magic of HTML tags and CSS styles is behind the scene. Any step you proceed in creating a web page is automatically supported by an appropriate HTML code. However, if you have some skills and knowledge in direct coding, it is also possible to use an HTML code viewer that displays the code of the web page you create. It allows you to grasp full control over the HTML code and webpage appearance.

Continue reading “Gutenberg code editor”

GUI as a state machine

When interacting with GUI, a user should be able to supply only valid events at any given time. Thus if an application requires a user to perform event A before event B, the interface should ensure that event B is not possible until event A has been completed. It can be achieved by making certain GUI elements disappear or become disabled.

GUI states
GUI states

Continue reading “GUI as a state machine”

Parallel computation of prime numbers in Python

Engineers, scientists, and financial analysts frequently use optimization methods to solve computationally expensive problems such as simulation of complex systems, high-dimensional data analysis or data compression. Optimisation of algorithms can dramatically improve the performance of computation – even order or two orders of magnitude. One of the methods of optimisation is parallel computing. To derive the full gains of parallelization, it is important to choose an approach that is appropriate for the computation problem.

Continue reading “Parallel computation of prime numbers in Python”