Skip to content
All library documents

Using PCA to Construct Higher- and Lower-Variance Crypto Portfolios

Article MQL5 articles

Summary

This article presents principal component analysis as a way to identify combinations of cryptocurrency assets associated with different portfolio variance levels. It introduces PCA with an image-reconstruction example, then describes gathering a basket of crypto prices, examining relative performance, rolling variability, and correlations, and applying robust scaling before fitting PCA. It interprets component loadings as long or short directions and normalizes their absolute values to estimate relative allocations for high-, medium-, and low-risk modes.

The article shows how to export the components for use in an MQL5 trading application, but the supplied text gives no measured portfolio-risk reduction, return results, or out-of-sample validation. The data preparation and interpretation warrant caution: the discussion labels price changes as returns, and the example’s stated daily horizon does not align clearly with its minute timeframe. PCA describes variance in the fitted sample; its loadings alone do not establish profitable signals or suitable position sizes.

Key ideas

  • PCA forms uncorrelated linear combinations of input features ordered by explained variance.
  • The article applies PCA to scaled changes in prices across a basket of cryptocurrencies.
  • Component loadings are interpreted as directional exposures and normalized to estimate asset weights.
  • Different principal components are proposed as portfolio settings with different variance profiles.
  • The method requires careful validation because sample variance structure does not prove future returns or risk reduction.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.