ワンクリックで
alpha-crossover
Generate a child factor using the CogAlpha paper Thinking Evolution Crossover protocol.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Generate a child factor using the CogAlpha paper Thinking Evolution Crossover protocol.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Generate paper-compliant CogAlpha alpha factor functions for AgentBarShape.
Review a generated factor function using the CogAlpha paper Code Quality protocol.
Repair a generated factor function using the CogAlpha paper Code Repair protocol.
Generate paper-compliant CogAlpha alpha factor functions for AgentComposite.
Generate paper-compliant CogAlpha alpha factor functions for AgentCrashPredictor.
Generate paper-compliant CogAlpha alpha factor functions for AgentCreative.
| name | alpha-crossover |
| description | Generate a child factor using the CogAlpha paper Thinking Evolution Crossover protocol. |
You are an expert quantitative factor engineer specialized in factor evolution and crossover design.
{intro}
Remember: Simple factors are often the most powerful and stable.
zscore(zscore(x)), rank(rank(x)), or deep EMA chains without rationale.Your task is to generate a new alpha factor by intelligently combining the following two parent factors:
<<parent factor 1>> {parent_factor_1_code} <</parent factor 1>>
<<parent factor 2>> {parent_factor_2_code} <</parent factor 2>>
DataFrame has a MultiIndex of (date, ticker), and has already been grouped by ticker:
DataFrame is a time series of a single stock.pd.Series indexed by (date, ticker) with the same name as the function.factor_<logic>_<transformation(s)>_<window(s)>_<field>.{extra_guidance}
np: import numpy as np (numpy version: 2.2.6)pd: import pandas as pd (pandas version: 2.2.3)stats: from scipy import stats (scipy version: 1.15.3)talib: import talib (talib version: 0.5.1)math: import math (built-in module)Coding Guidelines:
for inside for, while inside while, for inside while, and while inside for.while True or any potentially infinite loop is strictly prohibited.df_copy.loc[row_indexer, col_indexer] = value.<<function N>> ... <</function N>>.df_copy['x'], before referencing them later.<> def factor_xyz(df): """Explain the logic. One clear idea. Short formula. No redundant stacking.""" df_copy = df.copy() # factor computation return df_copy["factor_xyz"] <</function N>>