Finance Programming

Trading chart Image
DataScience
Python

How to draw a trend line with DataFrame in Python

Talib library doesn’t support to draw trendlines. This is the article how to compute trendlines from DataFrame and draw it in matplotlib.

Read More
Analytics Image
DataScience
Python

How to compute price correlation for financial data in Python

We learn how to use Pandas rolling function to calculate rolling change, rolling standard deviation and rolling correlation for financial assets.

Read More
BigData Image
DataScience
Python

Mastering DataFrame – how to aggregate OHLCV data in a different time period

OHLCV stands for Open, High, Low, Close and Volume (Volume is optional). It’s used for market data such as stock, forex, commodity and crypto and consists of a series of rows that represent 5 data points: the opening and closing price, the highest and lowest price during a certain period of time. Volume is the […]

Read More
Trading market Image
DataScience
Python

How to get a distribution of returns and draw a probability plot for the distribution in Python

It’s crucial to understand the distribution curve of data (asset returns) and if it conforms to the normal distribution. You can learn how to do this in Python.

Read More
Trading chart Image
DataScience

How to calculate historical volatility and sharpe ratio in Python

To understand what historical volatility and sharpe ratio are in the markets. It is a how-to guide how to compute volatility and sharpe ratio in Python.

Read More
Computer Analysis Image
Crypto
DataScience

How to get cumulative return for your asset and portfolio in Python

To explain how to use cumprod in Pandas library to calculate cumulative portfolio return and single asset return in an efficient code with Python.

Read More