本文へ移動
cccskills
無料GitHub で公開

seasonal

Seasonal/calendar-effect strategy. Generates trading signals from time-based patterns such as month-of-year effects and day-of-week effects. Suitable for any OHLCV data.

インストール方法を見る

含まれるファイル(2)

  • SKILL.md2.2 KB
  • example_signal_engine.py4.8 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Seasonal / Calendar Effect Strategy

Purpose

Uses time-based regularities in financial markets (month effects, day-of-week effects, and similar patterns) to generate trading signals. Examples include the China A-share "spring rally" (January-March) and the "sell in May" effect.

Signal Logic

Month Effect (Default)

  • Specified bullish months → go long
  • Specified bearish months → go short / stay out
  • All other months → stay flat

Day-of-Week Effect (Optional Overlay)

  • Monday / Friday effects
  • Start-of-month / end-of-month effects

Combined Mode

Month signal × weekday signal; open a position only when both confirm.

Common Calendar Effects Reference

EffectDescriptionReference Configuration
Spring rallyHigher probability of gains in China A-shares from January to Marchbullish_months=[1,2,3]
Sell in MayWeaker performance from May to Octoberbearish_months=[5,6,7,8,9,10]
Year-end effectInstitutional rebalancing in Decemberbullish_months=[11,12]
Monday effectLower returns on Mondaysbearish_weekdays=[0]
Friday effectHigher returns on Fridaysbullish_weekdays=[4]

Parameters

ParameterDefaultDescription
bullish_months[1, 2, 3, 11, 12]Bullish months
bearish_months[5, 6, 7, 8, 9]Bearish months
use_weekdayFalseWhether to enable weekday effects
bullish_weekdays[4]Bullish weekdays (0=Monday, 4=Friday)
bearish_weekdays[0]Bearish weekdays

Common Pitfalls

  • pd.DatetimeIndex.month starts from 1 (1=January)
  • pd.DatetimeIndex.weekday starts from 0 (0=Monday, 4=Friday)
  • Seasonal strategies are statistical regularities, not deterministic signals, so pay attention to sample size in backtests
  • Neutral months (neither in bullish nor bearish) should output 0 and must not be skipped

Dependencies

pip install pandas numpy

Signal Convention

  • 1 = long (bullish window), -1 = short (bearish window), 0 = stand aside

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

ADR/H-share/A-share cross-listing premium analysis — track pricing gaps between US-listed ADRs, HK-listed H-shares, and A-shares for arbitrage signals, dual-listing valuation, and delisting risk assessment.

日本語の概要は準備中です。原文の説明を表示しています。

HKUDS/Vibe-Trading3.5万2026年10月12日 更新

akshare

無料

AKShare financial data aggregator (18k+ stars). Free, no API key. Covers A-shares, US, HK, futures, macro, forex. Primary fallback for tushare and yfinance.

日本語の概要は準備中です。原文の説明を表示しています。

HKUDS/Vibe-Trading3.5万2026年10月12日 更新

alpha-zoo

無料

Browse and bench the bundled alpha zoos — prebuilt cross-sectional factor libraries (Kakushadze 101, GTJA 191, Qlib 158, Fama-French / Carhart). Use when the user asks "which alphas exist", wants metadata on a named alpha, or wants to run IC/IR on a whole zoo over a universe.

日本語の概要は準備中です。原文の説明を表示しています。

HKUDS/Vibe-Trading3.5万2026年10月12日 更新

A 股 ST/*ST 风险预测框架 — 基于最新中报/三季报或业绩预告/快报,预测下一财年是否会因营收、利润、净资产、分红不达标而被风险警示,并将新浪监管处罚记录作为独立证据面纳入风险等级。仅适用于 A 股,不预测财务造假。

日本語の概要は準備中です。原文の説明を表示しています。

HKUDS/Vibe-Trading3.5万2026年10月12日 更新

Asset allocation theory and optimizer usage — MPT / Black-Litterman / risk budgeting / all-weather strategy, including guides for 5 optimizers and rebalancing rules.

日本語の概要は準備中です。原文の説明を表示しています。

HKUDS/Vibe-Trading3.5万2026年10月12日 更新

Diagnose failed or underperforming backtests, locate the root cause, and fix the issue

日本語の概要は準備中です。原文の説明を表示しています。

HKUDS/Vibe-Trading3.5万2026年10月12日 更新

HKUDS のスキルをすべて見る

このスキルの問題を報告する