cnhkmcp 2.1.2__py3-none-any.whl → 2.1.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cnhkmcp/__init__.py +126 -125
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/config.json +1 -1
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/get_knowledgeBase_tool/ace_lib.py +4 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/001_10_Steps_to_Start_on_BRAIN_documentation.json +14 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/001_Intermediate_Pack_-_Improve_your_Alpha_2_2_documentation.json +174 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/001_Intermediate_Pack_-_Understand_Results_1_2_documentation.json +167 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/001_Introduction_to_Alphas_documentation.json +145 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/001_Introduction_to_BRAIN_Expression_Language_documentation.json +107 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/001_WorldQuant_Challenge_documentation.json +56 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/001__Read_this_First_-_Starter_Pack_documentation.json +404 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/002_How_to_choose_the_Simulation_Settings_documentation.json +268 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/002_Simulate_your_first_Alpha_documentation.json +88 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/002__Alpha_Examples_for_Beginners_documentation.json +254 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/002__Alpha_Examples_for_Bronze_Users_documentation.json +114 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/002__Alpha_Examples_for_Silver_Users_documentation.json +79 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/002__How_BRAIN_works_documentation.json +184 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/003_Clear_these_tests_before_submitting_an_Alpha_documentation.json +388 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/003_Parameters_in_the_Simulation_results_documentation.json +243 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/004_Group_Data_Fields_documentation.json +69 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/004_How_to_use_the_Data_Explorer_documentation.json +142 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/004_Model77_dataset_documentation.json +14 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/004_Sentiment1_dataset_documentation.json +14 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/004_Understanding_Data_in_BRAIN_Key_Concepts_and_Tips_documentation.json +182 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/004_Vector_Data_Fields_documentation.json +30 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/005_Crowding_Risk-Neutralized_Alphas_documentation.json +64 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/005_D0_documentation.json +66 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/005_Double_Neutralization_documentation.json +53 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/005_Fast_D1_Documentation_documentation.json +304 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/005_Investability_Constrained_Metrics_documentation.json +129 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/005_Must-read_posts_How_to_improve_your_Alphas_documentation.json +14 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/005_Neutralization_documentation.json +29 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/005_RAM_Risk-Neutralized_Alphas_documentation.json +64 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/005_Risk_Neutralization_Default_setting_documentation.json +75 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/005_Risk_Neutralized_Alphas_documentation.json +171 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/005_Statistical_Risk-Neutralized_Alphas_documentation.json +51 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/006_EUR_TOP2500_Universe_documentation.json +35 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/006_GLB_TOPDIV3000_Universe_documentation.json +48 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/006_Getting_Started_China_Research_for_Consultants_Gold_documentation.json +142 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/006_Getting_started_on_Illiquid_Universes_Gold_documentation.json +46 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/006_Getting_started_with_USA_TOPSP500_universe_Gold_documentation.json +62 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/006_Global_Alphas_Gold_documentation.json +66 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/006_India_Alphas_documentation.json +35 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/007_Consultant_Dos_and_Don_ts_documentation.json +35 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/007_Consultant_Features_documentation.json +239 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/007_Consultant_Simulation_Features_documentation.json +149 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/007_Consultant_Submission_Tests_documentation.json +363 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/007_Finding_Consultant_Alphas_documentation.json +333 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/007_Power_Pool_Alphas_documentation.json +14 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/007_Research_Advisory_Program_documentation.json +35 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/007_Starting_Guide_for_Research_Consultants_documentation.json +14 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/007_Visualization_Tool_documentation.json +99 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/007_Your_Advisor_-_Kunqi_Jiang_documentation.json +53 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/007__Brain_Genius_documentation.json +288 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/007__Single_Dataset_Alphas_documentation.json +41 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/008_Advisory_Theme_Calendar_documentation.json +14 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/008_Multiplier_Rules_documentation.json +14 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/008_Overview_of_Themes_documentation.json +14 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/008_Theme_Calendar_documentation.json +14 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/009_Combo_Expression_documentation.json +272 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/009_Global_SuperAlphas_documentation.json +14 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/009_Helpful_Tips_documentation.json +58 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/009_Selection_Expression_documentation.json +1546 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/009_SuperAlpha_Operators_documentation.json +890 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/009_SuperAlpha_Results_documentation.json +83 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/009_What_is_a_SuperAlpha_documentation.json +261 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/010_BRAIN_API_documentation.json +515 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/010_Documentation_for_ACE_API_Library_Gold_documentation.json +27 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/010__Understanding_simulation_limits_documentation.json +210 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/arithmetic_operators.json +209 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/cross_sectional_operators.json +98 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/group_operators.json +121 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/logical_operators.json +145 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/reduce_operators.json +156 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/special_operators.json +35 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/time_series_operators.json +386 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/transformational_operators.json +61 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/vector_operators.json +38 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/vector_db/_manifest.json +302 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/vector_db/_meta.json +1 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/vector_db/chroma.sqlite3 +0 -0
- cnhkmcp/untracked/APP/Tranformer/Transformer.py +5 -1
- cnhkmcp/untracked/APP/Tranformer/ace_lib.py +4 -0
- cnhkmcp/untracked/APP/Tranformer/output/Alpha_candidates.json +6008 -1242
- cnhkmcp/untracked/APP/Tranformer/output/Alpha_generated_expressions_error.json +1 -1034
- cnhkmcp/untracked/APP/Tranformer/output/Alpha_generated_expressions_success.json +47310 -442
- cnhkmcp/untracked/APP/ace_lib.py +4 -0
- cnhkmcp/untracked/APP/give_me_idea/ace_lib.py +4 -0
- cnhkmcp/untracked/APP/hkSimulator/ace_lib.py +4 -0
- cnhkmcp/untracked/APP/simulator/wqb20260107015647.log +57 -0
- cnhkmcp/untracked/APP//321/207/342/225/235/320/250/321/205/320/230/320/226/321/204/342/225/225/320/220/321/211/320/221/320/243/321/206/320/261/320/265/ace_lib.py +4 -0
- cnhkmcp/untracked/APP//321/207/342/225/235/320/250/321/205/320/230/320/226/321/204/342/225/225/320/220/321/211/320/221/320/243/321/206/320/261/320/265/brain_alpha_inspector.py +2 -2
- cnhkmcp/untracked/APP//321/210/342/224/220/320/240/321/210/320/261/320/234/321/206/320/231/320/243/321/205/342/225/235/320/220/321/206/320/230/320/241.py +4 -0
- cnhkmcp/untracked/__init__.py +0 -0
- cnhkmcp/untracked/mcp/321/206/320/246/320/227/321/204/342/225/227/342/225/242/321/210/320/276/342/225/221/321/205/320/255/320/253/321/207/320/231/320/2302_/321/205/320/266/320/222/321/206/320/256/320/254/321/205/320/236/320/257/321/207/320/231/320/230/321/205/320/240/320/277/321/205/320/232/320/270/321/204/342/225/225/320/235/321/204/342/225/221/320/226/321/206/342/225/241/320/237/321/210/320/267/320/230/321/205/320/251/320/270/321/205/342/226/221/342/226/222/321/210/320/277/320/245/321/210/342/224/220/320/251/321/204/342/225/225/320/272/platform_functions.py +352 -166
- {cnhkmcp-2.1.2.dist-info → cnhkmcp-2.1.4.dist-info}/METADATA +1 -1
- cnhkmcp-2.1.4.dist-info/RECORD +190 -0
- cnhkmcp-2.1.2.dist-info/RECORD +0 -111
- {cnhkmcp-2.1.2.dist-info → cnhkmcp-2.1.4.dist-info}/WHEEL +0 -0
- {cnhkmcp-2.1.2.dist-info → cnhkmcp-2.1.4.dist-info}/entry_points.txt +0 -0
- {cnhkmcp-2.1.2.dist-info → cnhkmcp-2.1.4.dist-info}/licenses/LICENSE +0 -0
- {cnhkmcp-2.1.2.dist-info → cnhkmcp-2.1.4.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "combo-expression",
|
|
3
|
+
"title": "Combo Expression",
|
|
4
|
+
"lastModified": "2025-06-02T05:33:29.737226-04:00",
|
|
5
|
+
"content": [
|
|
6
|
+
{
|
|
7
|
+
"type": "TEXT",
|
|
8
|
+
"value": "<p></p><hr/><p></p>",
|
|
9
|
+
"id": "d7fc23de-2289-409f-a46f-9ff1f9e9425a"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "HEADING",
|
|
13
|
+
"value": {
|
|
14
|
+
"level": "1",
|
|
15
|
+
"content": "Combo Expression"
|
|
16
|
+
},
|
|
17
|
+
"id": "0f1abc14-0f2f-4671-80a0-ef8a47fdf91a"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "IMAGE",
|
|
21
|
+
"value": {
|
|
22
|
+
"title": "Combo_expression_pic4.png",
|
|
23
|
+
"width": 538,
|
|
24
|
+
"height": 182,
|
|
25
|
+
"fileSize": 2157,
|
|
26
|
+
"url": "https://api.worldquantbrain.com/content/images/HsG43uTPySq0ZGMDejBocvRTrHI=/99/original/Combo_expression_pic4.png"
|
|
27
|
+
},
|
|
28
|
+
"id": "4631c5fd-6447-4ced-8864-d718d6a75c79"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"type": "TEXT",
|
|
32
|
+
"value": "<p>The combo expression combines the selected Alphas together into one Alpha – a SuperAlpha. The output of the combo expression is a set of daily weights for each of the selected Alphas.</p>",
|
|
33
|
+
"id": "306eb9dc-ba64-45f0-95c0-789305a4d847"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"type": "HEADING",
|
|
37
|
+
"value": {
|
|
38
|
+
"level": "1",
|
|
39
|
+
"content": "How it Works"
|
|
40
|
+
},
|
|
41
|
+
"id": "4615c4e4-35e6-4a22-ab01-e228c2ed3165"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"type": "TEXT",
|
|
45
|
+
"value": "<p>The combo expression works by weighting each selected Alpha each day. Similar to how an Alpha expression is evaluated for each instrument each day, the combo expression is evaluated for each of your Alphas each day.</p><p>Typically, combo expressions take the set of selected Alphas as input. The data from the selected Alphas is held in a matrix with shape = (A x D x I), where:</p><ul><li>A is the number of selected Alphas</li><li>D is the number of days</li><li>I is the number of instruments in the universe</li></ul><p>The output of the combo expression is a set of weights for each selected Alpha each day, held in a matrix with shape = (D x A). These weights determine how the scaled output of each Alpha is combined together to yield a SuperAlpha.</p>",
|
|
46
|
+
"id": "1100a70a-c65a-410c-8746-6b8821e4b2a1"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"type": "TEXT",
|
|
50
|
+
"value": "<img src='https://api.worldquantbrain.com/content/images/1p8buLSAxhPKxP33q_vK8a_6GEw=/134/original/' width='900'/>",
|
|
51
|
+
"id": "8d59d4c7-14dd-4146-a923-f0f47bb3394e"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"type": "HEADING",
|
|
55
|
+
"value": {
|
|
56
|
+
"level": "1",
|
|
57
|
+
"content": "Operator generate_stats()"
|
|
58
|
+
},
|
|
59
|
+
"id": "34c5b1a3-5675-417e-b2b7-9d4006db5d0a"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"type": "IMAGE",
|
|
63
|
+
"value": {
|
|
64
|
+
"title": "generate_stats_operator_pic6.png",
|
|
65
|
+
"width": 331,
|
|
66
|
+
"height": 101,
|
|
67
|
+
"fileSize": 5679,
|
|
68
|
+
"url": "https://api.worldquantbrain.com/content/images/gnMm5zdhbutRPN8RM8ILUyDen0Y=/112/original/generate_stats_operator_pic6.png"
|
|
69
|
+
},
|
|
70
|
+
"id": "6ba34104-c6bb-4cd8-ae02-e7f51ab34547"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"type": "TEXT",
|
|
74
|
+
"value": "<p>The generate_stats() operator calculates Alpha statistics for each day in the IS period. It takes an input of selected Alphas with shape = (A x D x I). It outputs daily statistics for each Alpha with shape = (S x D x A), where S is the number of statistics calculated.</p>",
|
|
75
|
+
"id": "a98d7cb9-025a-44dc-8722-1fbeaad6741b"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"type": "IMAGE",
|
|
79
|
+
"value": {
|
|
80
|
+
"title": "generate_stats_",
|
|
81
|
+
"width": 1259,
|
|
82
|
+
"height": 468,
|
|
83
|
+
"fileSize": 284274,
|
|
84
|
+
"url": "https://api.worldquantbrain.com/content/images/I-k9bDvp6HGgr8WW0zq2m-jC2f0=/296/original/generate_stats_image.PNG"
|
|
85
|
+
},
|
|
86
|
+
"id": "e8937458-d29f-485b-9a03-0070b0b98574"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"type": "TEXT",
|
|
90
|
+
"value": "<p></p><p><b>Alpha Statistics</b></p><p>The generate_stats() operator calculates the following daily statistics for each Alpha:</p>",
|
|
91
|
+
"id": "c28a691f-896a-4dd0-834d-6346ea40af6d"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"type": "TABLE",
|
|
95
|
+
"value": {
|
|
96
|
+
"data": [
|
|
97
|
+
[
|
|
98
|
+
"Alpha Statistic",
|
|
99
|
+
"Description"
|
|
100
|
+
],
|
|
101
|
+
[
|
|
102
|
+
"drawdown",
|
|
103
|
+
"% difference between current cumulative PnL and maximum PnL since beginning of simulation"
|
|
104
|
+
],
|
|
105
|
+
[
|
|
106
|
+
"hold_pnl",
|
|
107
|
+
"PnL of shares that did not trade"
|
|
108
|
+
],
|
|
109
|
+
[
|
|
110
|
+
"hold_shares",
|
|
111
|
+
"Count of shares that did not trade"
|
|
112
|
+
],
|
|
113
|
+
[
|
|
114
|
+
"hold_value",
|
|
115
|
+
"Sum of value of shares that did not trade"
|
|
116
|
+
],
|
|
117
|
+
[
|
|
118
|
+
"long_count",
|
|
119
|
+
"Number of instruments with positive weight"
|
|
120
|
+
],
|
|
121
|
+
[
|
|
122
|
+
"long_value",
|
|
123
|
+
"Sum of positive weight"
|
|
124
|
+
],
|
|
125
|
+
[
|
|
126
|
+
"pnl",
|
|
127
|
+
"Net profit or loss"
|
|
128
|
+
],
|
|
129
|
+
[
|
|
130
|
+
"returns",
|
|
131
|
+
"PnL as percent of book size"
|
|
132
|
+
],
|
|
133
|
+
[
|
|
134
|
+
"short_count",
|
|
135
|
+
"Number of instruments with negative weight"
|
|
136
|
+
],
|
|
137
|
+
[
|
|
138
|
+
"short_value",
|
|
139
|
+
"Sum of absolute value of negative weight"
|
|
140
|
+
],
|
|
141
|
+
[
|
|
142
|
+
"trade_pnl",
|
|
143
|
+
"PnL of shares that did trade"
|
|
144
|
+
],
|
|
145
|
+
[
|
|
146
|
+
"trade_shares",
|
|
147
|
+
"Count of shares that did trade"
|
|
148
|
+
],
|
|
149
|
+
[
|
|
150
|
+
"trade_value",
|
|
151
|
+
"Sum of value of shares that did trade"
|
|
152
|
+
],
|
|
153
|
+
[
|
|
154
|
+
"turnover",
|
|
155
|
+
"Value traded as percent of book size"
|
|
156
|
+
]
|
|
157
|
+
],
|
|
158
|
+
"firstRowIsTableHeader": true,
|
|
159
|
+
"firstColIsHeader": false
|
|
160
|
+
},
|
|
161
|
+
"id": "0e6376d3-0c4c-471d-9210-3785d146c7a0"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"type": "HEADING",
|
|
165
|
+
"value": {
|
|
166
|
+
"level": "1",
|
|
167
|
+
"content": "Available operators"
|
|
168
|
+
},
|
|
169
|
+
"id": "8af4c697-074a-4067-bfc3-0d14042ef650"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"type": "TEXT",
|
|
173
|
+
"value": "<p>Combo expressions can use most of the same operators as Alpha expressions. A full list of available operators is available at <a href=\"$tutorialpage/superalpha/appendix-operators\">Appendix: SuperAlpha Operators</a>.</p>",
|
|
174
|
+
"id": "aae4cf66-02fa-4f58-8d40-25ffd2424c23"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"type": "HEADING",
|
|
178
|
+
"value": {
|
|
179
|
+
"level": "1",
|
|
180
|
+
"content": "SuperAlpha Combo Settings"
|
|
181
|
+
},
|
|
182
|
+
"id": "9acd7308-c53a-4da8-a805-fbf39f225eb7"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"type": "IMAGE",
|
|
186
|
+
"value": {
|
|
187
|
+
"title": "Superalpha_combo_settings_pic7.png",
|
|
188
|
+
"width": 668,
|
|
189
|
+
"height": 199,
|
|
190
|
+
"fileSize": 11569,
|
|
191
|
+
"url": "https://api.worldquantbrain.com/content/images/9Xwfmrx8dAaMNTmDkAyGhYG5Ikc=/102/original/Superalpha_combo_settings_pic7.png"
|
|
192
|
+
},
|
|
193
|
+
"id": "b9fed1b8-02ff-4347-b1ac-62da3fe87aca"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"type": "TEXT",
|
|
197
|
+
"value": "<p>The lower section of the SuperAlpha settings menu applies to the combo expression and the resulting SuperAlpha.</p>",
|
|
198
|
+
"id": "2a8630a2-349a-4005-9d34-54b37be6e1f1"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"type": "TEXT",
|
|
202
|
+
"value": "<p></p><hr/><p><b>Universe</b></p><p>The selected universe setting is applied to all selected Alphas when the SuperAlpha is simulated, regardless of the original universe of those Alphas. The resulting SuperAlpha is based upon this universe.</p><p></p><hr/><p></p>",
|
|
203
|
+
"id": "f03979bc-4ee2-4cde-b71b-f0082df904cf"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"type": "TEXT",
|
|
207
|
+
"value": "<p><b>Neutralization</b></p><p>The selected neutralization is applied to the final weighted combination of selected Alphas.</p><hr/><p></p>",
|
|
208
|
+
"id": "93fffca2-c9fe-436a-ab1e-e2d4c5e461e6"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"type": "TEXT",
|
|
212
|
+
"value": "<p><b>Decay</b></p><p>The decay setting applies the ts_decay() operator to the final weighted combination of selected Alphas, where the decay value is the number of lookback days. This is useful for reducing turnover, but larger values can attenuate the signal.</p><hr/><p></p>",
|
|
213
|
+
"id": "485a69e0-bca2-4387-92ce-700357089f91"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"type": "TEXT",
|
|
217
|
+
"value": "<p><b>Truncation</b></p><p>The selected truncation is applied to the final weighted combination of selected Alphas. This is useful to reducing overfitting.</p><hr/><p></p>",
|
|
218
|
+
"id": "8262fb9a-a321-4733-9afb-2c40f9914482"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"type": "TEXT",
|
|
222
|
+
"value": "<p><b>Pasteurization</b></p><p>Replaces operator input values with NaN for instruments not in the universe. Original Alpha pasteurization settings are preserved. The combo pasteurization setting applies to operators used in the combo expression.</p><hr/><p></p>",
|
|
223
|
+
"id": "0e6884fd-9749-49ae-a15a-3cece2743eb6"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"type": "TEXT",
|
|
227
|
+
"value": "<p><b>NaN Handling</b></p><p>Allows aggregation operators to output numeric values when input values are NaN for a given instrument and date. Original Alpha NaN Handling settings are preserved. The combo NaN Handling setting applies to operators used in the combo expression.</p><hr/><p></p>",
|
|
228
|
+
"id": "87f7d02b-90e3-4d87-8203-6c93a7a53acc"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"type": "TEXT",
|
|
232
|
+
"value": "<p><b>Test Period</b></p><p>The Test Period setting offers you the flexibility to designate a separate testing period for your SuperAlpha. This period corresponds to the final 0-6 years of the In-Sample (IS) period, providing a distinct timeframe for assessing your SuperAlpha's performance before submission.</p>",
|
|
233
|
+
"id": "a34dcfb9-f873-4c0a-a3c7-a25da0a3092a"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"type": "HEADING",
|
|
237
|
+
"value": {
|
|
238
|
+
"level": "1",
|
|
239
|
+
"content": "Examples"
|
|
240
|
+
},
|
|
241
|
+
"id": "650664d7-7c76-4230-8330-39ace6a46107"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"type": "TABLE",
|
|
245
|
+
"value": {
|
|
246
|
+
"data": [
|
|
247
|
+
[
|
|
248
|
+
"Combo Expression",
|
|
249
|
+
"Description"
|
|
250
|
+
],
|
|
251
|
+
[
|
|
252
|
+
"1",
|
|
253
|
+
"This expression evaluates to 1 for every Alpha every day. It will weight each selected Alpha equally every day."
|
|
254
|
+
],
|
|
255
|
+
[
|
|
256
|
+
"stats = generate_stats(alpha);\nts_ir(stats.returns, 250)",
|
|
257
|
+
"This expression weights each Alpha by its information ratio from the previous 250 trading days (~1 year)."
|
|
258
|
+
],
|
|
259
|
+
[
|
|
260
|
+
"stats = generate_stats(alpha);\ninnerCorr = self_corr(stats.returns, 500);\nic = if_else(innerCorr == 1.0, nan, innerCorr);\nmaxCorr = reduce_max(ic);\n1 - maxCorr",
|
|
261
|
+
"This expression weights each Alpha by the maximum correlation with all other selected Alphas over a 2 year period, with more correlated Alphas receiving less weight."
|
|
262
|
+
]
|
|
263
|
+
],
|
|
264
|
+
"firstRowIsTableHeader": true,
|
|
265
|
+
"firstColIsHeader": false
|
|
266
|
+
},
|
|
267
|
+
"id": "85189703-db20-40fa-a8fa-a26b81611dfb"
|
|
268
|
+
}
|
|
269
|
+
],
|
|
270
|
+
"sequence": 3,
|
|
271
|
+
"category": "SuperAlpha"
|
|
272
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "getting-started-global-superalphas",
|
|
3
|
+
"title": "Global SuperAlphas",
|
|
4
|
+
"lastModified": "2025-11-04T02:39:54.299570-05:00",
|
|
5
|
+
"content": [
|
|
6
|
+
{
|
|
7
|
+
"type": "TEXT",
|
|
8
|
+
"value": "<p></p><p>Creating Global (GLB) SuperAlphas requires careful consideration, including neutralization, component Alpha selection, and simulation settings.</p><p><b>Neutralization</b></p><ul><li>Neutralize your SuperAlpha to <b>COUNTRY</b> to account for differences across countries in the global region.</li><li>This ensures fair comparisons and avoids biases caused by regional disparities.</li><li>Neutralization to country helps align signals across diverse regions.</li></ul><p><b>Universe selection</b></p><ul><li>The <b>MINVOL1M GLB</b> universe contains over 9,000 instruments, which can make simulations slower.</li><li>To speed up simulations, test your SuperAlpha on the <b>TOP3000</b> universe.</li><li>Once optimized, simulate and submit your SuperAlpha on the <b>MINVOL1M</b> universe.</li></ul><p><b>Selection Expression</b></p><ul><li>Select Alphas that are neutralized to <b>country</b> using the following methods:<ul><li><b>Select Alphas neutralized in expression</b>: <i>in(datafields, 'country')</i></li><li><b>Select Alphas neutralized in settings</b>: neutralization == 'COUNTRY'</li></ul></li><li>Choose Alphas with <b>1-2 years of OS data</b> to ensure reliability:<ul><li>Use the selection expression: <i>os_start_date <= '2022-01-23'</i></li></ul></li><li>Combine multiple selections using the <b>OR operator</b> to diversify your component Alphas and improve overall performance.<ul><li>This allows you to include a broader range of signals in your SuperAlpha.</li></ul></li></ul><p><b>Combo Expression</b></p><ul><li>Use the <b>combo_a operator</b> to combine Alphas effectively.<ul><li>This operator performs better when the selected Alphas are <b>different</b>.</li><li>Avoid selecting overly similar Alphas to maximize the effectiveness of the combo.</li></ul></li></ul><p><b>Simulation settings</b></p><ul><li>Enable the <b>Max Trade setting</b> during simulation, especially on the <b>MINVOL1M</b> universe.<ul><li>This ensures your SuperAlpha meets liquidity and scalability requirements.</li><li>It validates that your SuperAlpha can handle real-world constraints.</li></ul></li></ul><p><b>Tips for Success</b></p><ul><li><b>Diversify selection</b>: Use multiple selection expressions to ensure a broad range of Alphas in your SuperAlpha.</li><li><b>Focus on liquidity</b>: Simulating on the <b>TOP3000</b> universe speeds up testing, while submitting on <b>MINVOL1M</b> ensures scalability. Additionally, check <b>Investability constrained metrics</b> of your SuperAlpha.</li><li><b>Test OS performance</b>: Prioritize Alphas with sufficient OS data to avoid overfitting and ensure robust performance.</li></ul><p><b>More concepts that you can explore</b></p><ul><li><a href=\"https://platform.worldquantbrain.com/learn/documentation/superalpha/superalpha-overview\">What is a SuperAlpha?</a></li><li><a href=\"https://platform.worldquantbrain.com/learn/documentation/superalpha/selection-expression\">SuperAlpha Selection Expression</a></li><li><a href=\"https://platform.worldquantbrain.com/learn/documentation/superalpha/combo-expression\">SuperAlpha Combo Expression</a></li><li><a href=\"https://platform.worldquantbrain.com/learn/documentation/superalpha/helpful-tips\">SuperAlpha Helpful Tips</a></li><li><a href=\"https://platform.worldquantbrain.com/learn/documentation/regions-and-universes/global-region\">Getting Started: Global Alphas</a></li></ul>",
|
|
9
|
+
"id": "6f808a78-60b6-43ee-be1d-371aa7206b5f"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"sequence": 9,
|
|
13
|
+
"category": "SuperAlpha"
|
|
14
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "helpful-tips",
|
|
3
|
+
"title": "Helpful Tips",
|
|
4
|
+
"lastModified": "2025-06-02T05:35:07.668455-04:00",
|
|
5
|
+
"content": [
|
|
6
|
+
{
|
|
7
|
+
"type": "TEXT",
|
|
8
|
+
"value": "<p></p><hr/><p></p>",
|
|
9
|
+
"id": "fb413508-4c84-4337-8fa8-8d1e3c4505fe"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "HEADING",
|
|
13
|
+
"value": {
|
|
14
|
+
"level": "1",
|
|
15
|
+
"content": "Use Alpha Properties"
|
|
16
|
+
},
|
|
17
|
+
"id": "cf7ee363-e1a7-4348-8296-9ba95a35c5fa"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "TEXT",
|
|
21
|
+
"value": "<p>The best SuperAlphas are made with a robust analytical approach that incorporates your personal knowledge of the selected Alphas. Before you start researching SuperAlphas, it may be helpful to fill in the Alpha properties for each Alpha. Consider assigning a category, color, and/or custom tags to each Alpha so you can easily select them with your selection expression. For example, you can select all the Alphas which have been tagged using the selection expression <b><i>in(tags, \"my_example_tag\")</i></b>. Think about what tags would be most useful for grouping your Alphas. Note that each Alpha can have multiple tags.</p>",
|
|
22
|
+
"id": "6feb91da-8fec-46d2-a0e6-8c192b3ccd15"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"type": "HEADING",
|
|
26
|
+
"value": {
|
|
27
|
+
"level": "1",
|
|
28
|
+
"content": "Test First"
|
|
29
|
+
},
|
|
30
|
+
"id": "56b2bdbc-f64c-433f-9eea-e7b68ce7a874"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"type": "TEXT",
|
|
34
|
+
"value": "<p>SuperAlphas are computationally complex, and as such they can take a long time to simulate. Each person is allowed three concurrent simulations. Before you simulate a large SuperAlpha, try testing out the selection and combo expressions first. To test the selection expression, you can click on the \"Run Selection\" button and see the complete list of Alphas which will be included in your SuperAlpha. This takes only a few seconds, and can help you avoid a long simulations with the wrong Alphas. To test the combo expression, try setting the \"Selection Limit\" setting to a small number such as the minimum value, 10. Smaller SuperAlpha simulations will run much faster, allowing you to test your ideas more quickly. Once you are confident about your selection and combo expressions, then choose a larger set of Alphas to simulate.</p>",
|
|
35
|
+
"id": "5e1d0b35-97a9-46d1-8d44-d007532603ea"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"type": "HEADING",
|
|
39
|
+
"value": {
|
|
40
|
+
"level": "1",
|
|
41
|
+
"content": "Compare to Benchmarks"
|
|
42
|
+
},
|
|
43
|
+
"id": "b8bddac8-8338-4f67-a986-cd2ac39131b2"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type": "TEXT",
|
|
47
|
+
"value": "<p>SuperAlphas tend to perform much better than Alphas, so using Alpha performance as a benchmark may not be helpful for developing good SuperAlphas. To help with this, the PnL chart shown in SuperAlpha simulation results shows two lines. The blue line is the performance of your SuperAlpha; the gray line is the performance of the same set of Alphas combined with a simple, equal-weight combo. An equal weight combo can be recreated by entering a constant as the combo expression. Generally, a good combo expression should outperform the equal-weight combo, but keep in mind that returns are not the only important measure of performance. You may also want to create and track your own benchmarks as you research SuperAlphas.</p>",
|
|
48
|
+
"id": "65382bc9-5931-4538-91fc-fe690e06c888"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"type": "TEXT",
|
|
52
|
+
"value": "<img src='https://api.worldquantbrain.com/content/images/3diSVmxP_2TY5YCeJTon4mpl2zU=/135/original/' width='900'/>",
|
|
53
|
+
"id": "018ac8ad-b0c7-423f-ba15-88608ae6b4cd"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"sequence": 6,
|
|
57
|
+
"category": "SuperAlpha"
|
|
58
|
+
}
|