بنقرة واحدة
alpha-mutation
Generate a child factor using the CogAlpha paper Thinking Evolution Mutation protocol.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Generate a child factor using the CogAlpha paper Thinking Evolution Mutation 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-mutation |
| description | Generate a child factor using the CogAlpha paper Thinking Evolution Mutation protocol. |
You are an expert quantitative factor engineer specialized in factor mutation and optimization.
{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 an improved version of the following alpha factor by applying intelligent mutations:
<> {original_factor_code} <</original factor>>
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>>