Carousel Studio

Repurpose X Threads into LinkedIn & Instagram Carousels

Canvas & Ratio

Choose your destination platform format


Layout Template

Choose a content structure for your slides


Preset Themes


Typography & Sizing

Title Font Size36px
Body Font Size18px
Header & Footer Size12px

Brand Kit Customization

AGENCY

Configure brand assets for headers & footers

MULTI-PROFILES (AGENCY)
AGENCY
SAVE PRESETS (AGENCY)

Outro Slide CTA

Customize your closing call-to-action slide

#1
#2
#3

Background Pattern

Source Content

Build Your Carousel

Drag and drop any post card below onto a slide, or use the quick buttons to insert content/images instantly!

Drag Post #1
PyQuant News 🐍
@pyquantnews

A step-by-step guide to build 3 optimized portfolios with a few lines of Python:

Apply Image
Drag Post #2
PyQuant News 🐍
@pyquantnews

Here’s how skfolio helps: • Unified library for building optimized portfolios • Built in Python code to take care of the maths • Built on top of scikit-learn to leverage ML This thread will walk you through how to use it:

Drag Post #3
PyQuant News 🐍
@pyquantnews

We’ll use scikit-learn for creating data splits, skfolio for optimizing the portfolios, and OpenBB for data. We’ll do our analysis on a list of sector-based ETFs.

Apply Image
Drag Post #4
PyQuant News 🐍
@pyquantnews

Download the historic price data, manipulate the DataFrame to use with skfolio, and split the data into training and testing sets.

Apply Image
Drag Post #5
PyQuant News 🐍
@pyquantnews

The next step is to fit different models to the data. We’ll use skfolio to create three separate portfolios: maximum diversification, equal weighted, and random weighted.

Apply Image
Drag Post #6
PyQuant News 🐍
@pyquantnews

We can use skfolio to predict the portfolio weights for each of the weighting methods.

Apply Image
Drag Post #7
PyQuant News 🐍
@pyquantnews

The result is a visualization of the weights of the sector ETFs for each of the portfolios.

Apply Image
Drag Post #8
PyQuant News 🐍
@pyquantnews

Generate the cumulative returns of each strategy to visualize how they performed over the analysis period. This is a quick way to easily assess the performance of the portfolios.

Apply Image
Drag Post #9
PyQuant News 🐍
@pyquantnews

The portfolio with the maximum diversification underperforms both the equally weighted and randomly weighted portfolios. You might conclude that being heavily weighted in XLU (utilities) was a drag on the overall performance of the strategy.

Apply Image
Drag Post #10
PyQuant News 🐍
@pyquantnews

While skfolio presents a the cumulative returns of each portfolio, we need to apply periodic rebalancing to better represent a real investment strategy. As a next step, plug skfolio into your favorite backtesting library and rebalance every month. How do the returns change?

Drag Post #11
PyQuant News 🐍
@pyquantnews

To keep this thread handy, just click the link and repost the first tweet. Then follow me @pyquantnews to get content for algo trading and quant finance 4x daily. <a target="_blank" href="https://twitter.com/3187132960/status/1758116678578172306" color="blue">x.com/3187132960/sta…</a>