multi-factor-ranking

Generate cross-sectional multi-factor stock rankings and TopN portfolios from time-series inputs.

Updated Apr 14, 2026
One-click install
npx skills add https://github.com/loanntc/Paave --skill multi-factor-ranking
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: multi-factor-ranking
Source: https://github.com/loanntc/Paave/tree/main/skills/multi-factor
Command: npx skills add https://github.com/loanntc/Paave --skill multi-factor-ranking

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandas, numpy.

What problem does it solve?

It helps you select a top-performing basket of stocks by combining several style factors into one cross-sectional ranking signal, reducing reliance on any single metric.

Core Features & Use Cases

  • Multi-factor scoring: Computes momentum, reversal, volatility, and volume ratio per instrument and combines them into a composite score.
  • Cross-sectional standardization: Applies Z-score normalization across the universe at each date so different factor scales become comparable.
  • TopN portfolio construction: Ranks by composite score and assigns equal weights to the top N names while keeping others at 0 (with optional rebalance frequency).
  • Zoo-factor composition support: Provides a panel-aware engine to blend Alpha Zoo factors with optional cross-sectional standardization and long-only or long-short discretization.

Quick Start

Use the multi-factor-ranking skill to generate per-date TopN long signals from a set of OHLCV dataframes for multiple instruments.

Frequently Asked Questions about multi-factor-ranking

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I rank stocks by combining multiple factors into a single composite score?

You rank stocks by computing per-factor Z-scores across the universe at each date and summing them into an equal-weight or user-weighted composite score. This cross-sectional standardization makes different factor scales comparable before ranking.

What is cross-sectional Z-score standardization in multi-factor portfolio construction?

Cross-sectional Z-score standardization normalizes factor values across the entire stock universe at each date so different metrics like momentum and volatility become comparable. It ensures no single factor dominates the composite score due to scale differences.

How do I construct a TopN long-short portfolio from multi-instrument time-series inputs?

You construct a TopN long-short portfolio by ranking instruments using the composite score and discretizing to positions according to top_n and bottom_n parameters. The engine assigns equal weights to selected names while keeping others at zero with rebalance handling.

Can I use pandas and numpy for multi-factor backtesting workflows?

Yes, the multi-factor backtesting workflow relies on pandas and numpy as its core dependencies. These libraries handle the panel data processing, Z-score calculations, and cross-sectional ranking operations required for equity strategy research.

Does this multi-factor ranking approach support Alpha Zoo factor composition?

Yes, the engine provides panel-aware support to blend Alpha Zoo factors with optional cross-sectional standardization. You can blend multiple alpha signals and discretize them into either long-only or long-short portfolio positions.

What's the best way to standardize momentum, reversal, and volume ratio factors for stock selection?

The best way is applying Z-score normalization across the universe at each date to standardize momentum, reversal, volatility, and volume ratio factors. This ensures all factor values share a comparable scale before being summed into the composite ranking score.