本文へスキップ
Skillpedia
分析とスプレッドシート37k · #7551

seasonal

できること

このスキルは、カレンダーに基づく取引が機能するかを検証します。たとえば、特定の月に買うなどです。春の上昇や「5月に売れ」のようなパターンを信じるトレーダー向けです。

使う場面

  • ✓A株の春の上昇など、季節性のアイデアをテストしたいとき。
  • ✓曜日のパターン、例えば月曜日のリターンが弱いことを疑うとき。
  • ✓月のシグナルと曜日のフィルターを組み合わせたいとき。

スキルのリンク

https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/seasonal/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/seasonal/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“このインデックスで、1月から3月に買い、残りの年は市場に入らない戦略が機能したかをテストしてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

このスキルは、強気と弱気の月や曜日を設定し、カレンダーに基づいてロング、ショート、または見送りを決めます。月と曜日のルールを組み合わせて、取引が両方に一致する必要があるようにもできます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

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

Effect Description Reference Configuration
Spring rally Higher probability of gains in China A-shares from January to March bullish_months=[1,2,3]
Sell in May Weaker performance from May to October bearish_months=[5,6,7,8,9,10]
Year-end effect Institutional rebalancing in December bullish_months=[11,12]
Monday effect Lower returns on Mondays bearish_weekdays=[0]
Friday effect Higher returns on Fridays bullish_weekdays=[4]

Parameters

Parameter Default Description
bullish_months [1, 2, 3, 11, 12] Bullish months
bearish_months [5, 6, 7, 8, 9] Bearish months
use_weekday False Whether 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
よくある質問

「5月に売れ」の効果とは何ですか?

5月から10月にかけて市場の成績が悪くなるという考えです。このスキルは、弱気の月のセットを使って、それをテストできます。

カレンダーのパターンは常に機能しますか?

いいえ。カレンダーの効果は信頼できないことが多いため、信じる前に過去のデータでテストしてください。

株や暗号資産にも使えますか?

標準的なOHLCVの形式の価格データであれば、株、ETF、暗号資産を含め、どれにでも使えます。

詳細

作者による元の説明

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.

repo: HKUDS/Vibe-Trading

人気

GitHubのスター
37k
ランキング
#7551
ライセンス
MIT
更新日
2026/11/1

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル