Baris Trading Tech

Discover practical notes on data science for financial trading.


Blogs

Supervised ML - Simple KNN TA Strategy

Making a simple KNN model using technical analysis indicators as features to predict price directions.

Blogs

Unsupervised Learning - Simple KMeans Clustering on Coins

A simple example of applying unsupervised learning to stock returns for clustering.

Blogs

Calculating Correlations of Coins

Create a nice-looking correlation heat map from crypto returns.

Blogs

Rolling Correlation Calculation on Metal Futures

Calculate and visualize the rolling correlation of major metal commodities.

Blogs

Calculating CPI adjusted All Time S&P 500 Returns

Get all time CPI and S&P prices to calculate and visualize CPI adjusted index.

Blogs

Getting GDP Data from Fred

Getting data from Fred using Pandas datareader with GDP example.

Blogs

Kelly Optimumum Leverages for Multiple Stock Porfolio

Calculate Kelly optimum leverages for a stock portfolio based on historical prices.

Blogs

Getting Data with Binance API

Get historical crypto currency historical data using Bşnance API with and without an API KEY.

Blogs

Getting All Coin Data with Binance API

Get historical crypto currency historical data using Binance API with and without an API KEY.

Blogs

Visualizing Backtest Trades

How to visualize all historical buy and sell points with matplotlib.

Blogs

Creating Coin Market Cap Based Portfolios

Divinde coins listed in Binance into different marketcap groupds and create equally weighted indexes and compare historical performances.

Blogs

BIST Fundamentals - Calculate Total Market Cap

Get BIST30 stocks and calculate total market cap and visualize component's marketcaps for comparison.

Blogs

Getting Data From Financial Model Prep API

Simple use cases of Financial Model Prep API, requires free key.

Blogs

GET VIOP Opening Requirements

Scrape minimum equity requirements for opening a position in VIOP market from FinansInvest.

Blogs

Get all BIST stocks fundamentals

Using prepared list of all BIST stock list get any fundamental data from Yahoo.

Blogs

Asset Performance Metrics Calculations

Calculate two ETF's basic performance metrics for comparison.

Blogs

Beta Calculation

Calculate stock beta with two different method.

Blogs

Some Useful Stock Analysis Functions & Stock Class

Simple functions for EDA and comparison of stocks.

Blogs

Calculating BIST Index in USD

Calculate and visualize BIST index in USD from the begging of index.

Blogs

Get Major Index Components

Get major world indexes' component list from Wikipedia using only Pandas.

Blogs

Get Major World Stock Index Data

Using the world indexes list get historical data from Yahoo.

Blogs

Download All S&P 500 Stocks with yFinance and BeautifulSoup

To get all stock's historical data use a simple scraping script and yfinance.

Blogs

Backtesting Optimized Technical Analysis Strategy

Applying a correction to significance test of optimized strategy backtest results to eliminate data mining bias.

Blogs

Where to find all time USD/TRY prices

Web source for official free all-time usd-try prices and how to simply visualize it.

Blogs

Kelly Optimum Leverage For One Stock

Calculate simple kelly optimum leverage for a single stock based on historical prices.

Blogs

Cointegration Test of Gold

Test cointegration of gold spot and gold miners with visualized price spread.

Blogs

Yahoo_fin Library Demo

Get fundamental data using yahoo_fin library. A simple example.

Blogs

Backtesting Simple Technical Analysis Strategy

Simple technical analysis backtesting methodology with Monte Carlo simulation and significance test.

Blogs

Log Returns vs. Percentage Returns

Discover differences between percentage and log returns with small experiments.

Blogs

Visualizing Historical Stock Prices with Matplotlib

Make different time series visualizations with historical prices.

Blogs

Portfolio Optimization

Calculate optimumum portfolios and visualize the frontier with major coin price data.

Blogs

new image blog

img