Bollinger Bands Algorithm – Python Binance API for Crypto Trading

A Bollinger Band consists of three lines: a simple moving average, an upper band, and a lower band. The assumption is that if the real price crosses over one of the bands, this can be seen as a signal to trade in or our of a given asset. For cryptocurrencies, breakout trades are more frequently … Read more

Moving Average Convergence Divergence (MACD) – Python Binance API for Crypto Trading

MACD is a trend-following momentum indicator used for trading. It consists of two lines: This article is based on the full trading tutorial on the Not-Satoshi blog. Introduction Before we begin, I would like to make a small request ##################### Disclaimer!! ################################### # The bots built here with python should be used only as a … Read more

Python IDLE vs PyCharm

This article shows you when to use which of my top two Python editors: IDLE and PyCharm. IDLE Best for Small Scripts In 90% of cases, I’m using the out-of-the-box IDLE editor to write small scripts and Python programs. It’s lightweight, simple, and provides basic functionality such as syntax highlighting in shell and Python files. … Read more

Simple Moving Average (SMA) – Python Binance API for Crypto Trading

A simple moving average (SMA) is calculated by summing over a fixed number of last prices, say k, and dividing this by the number of prices k. Depending on the selection k, you can obtain short-term or long-term SMAs. Short-term SMAs respond quickly whereas long-term SMAs respond slowly to changes in the prices. You can … Read more

Should I Become a Freelance Developer?

Being a freelance developer is a new way of living in the 21st century: It’s a path of personal growth, learning new skills, and earning money in the process. But in today’s digital economy, becoming a freelance developer is – above everything else – a lifestyle choice. It can give you fulfillment, flexibility, and constant … Read more

What’s the Meaning of the Exclamation Mark in a Jupyter Notebook?

What many coders using Jupyter notebooks do not know is that Jupyter notebooks provide you the exclamation mark operator that allows you to execute commands on the underlying operating system. In Jupyter notebooks, the exclamation mark ! executes commands from the underlying operating system. For example, to run the list directory command ls in your … Read more

How to Check Python Version in Jupyter Notebook?

To check the Python version in your Jupyter notebook, first import the python_version function with “from platform import python_version“. Then call the function python_version() that returns a string with the version number running in your Jupyter notebook such as “3.7.11”. You can try this yourself in our interactive Jupyter notebook: Check Version Information Using sys … Read more

Python Version Aliases (Alternatives)

To check the Python version in your shell, you can use the following alternatives (aliases): Terminal: The following commands can be used to check the Python version in your terminal. Note that the first and second are aliases whereas the third one provides more information about the built. python –version python -V python -VV Note … Read more

What’s the Difference Between ‘py’ and ‘python’ in the Terminal?

Problem If you run Python in your terminal or shell, you may have realized that there are two ways to do so: using the “python” command and using the “py” command. What’s the difference? Example Say, you want to check your Python version. You can run both commands and the output is different! Here’s using … Read more

What Python Version is on Your Mac?

To check the default Python version on your macOS, use the command python –version in your terminal. In particular, use the following four steps to check the Python version on your Mac operating system. Press CMD + Space to open Spotlight. Type β€œterminal” and press enter. Execute command: type python –version or python -V and … Read more

The Art of Clean Code [Book Resources]

This page contains resources for my book “The Art of Clean Code” (NoStarch, 2022). You can check out the book here. Olivetti Faces Access the code in the Jupyter Notebook here: Life Expectancy Calculator Access the code in the Jupyter notebook here: