seasonal
What it does
This skill tests whether trading by the calendar works, such as buying in certain months. It is for traders who believe in patterns like the spring rally or sell in May.
When to use it
- ✓When you want to test a seasonal idea, such as the spring rally in China A-shares.
- ✓When you suspect a weekday pattern, such as weaker Monday returns.
- ✓When you want to combine a month signal with a day-of-week filter.
Skill link
https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/seasonal/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Test whether buying in January through March and staying out the rest of the year would have worked on this index.”
5 new skills a week. 1 minute to read.
How it works
It sets bullish and bearish months or weekdays, then goes long, goes short, or stays flat based on the calendar. Month and weekday rules can be combined so that a trade needs both to agree.
Technical content (original SKILL.md)
Original text by the author, straight from 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.monthstarts from 1 (1=January)pd.DatetimeIndex.weekdaystarts 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
bullishnorbearish) 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
FAQ
What is the sell in May effect?
It is the idea that markets tend to do worse from May to October. The skill can test this with a set of bearish months.
Does a calendar pattern always work?
No. Calendar effects are unreliable, so test them on past data before trusting them.
Can I use it on crypto or stocks?
It suits any price data in standard OHLCV form, including stocks, ETFs, and crypto.
Details
Original description by the author
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
Popularity
- GitHub stars
- 37k
- Ranking position
- #7551
- License
- MIT
- Updated
- 11/1/2026
Comments
- …
More skills from this repository
vibe-trading
37kGives your agent a full finance research toolkit, covering backtests, factor analysis, options pricing and market data across many markets.
adr-hshare
37kShows your agent how to compare the price of a Chinese company listed in several markets, such as a US ADR and a Hong Kong share.
akshare
37kLets your agent pull free market data for Chinese and global stocks, futures, forex and economic indicators, with no API key needed.
alpha-zoo
37kLets your agent browse a library of ready-made stock factors and test how well a whole set of them predicts returns on a chosen market.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.