Skip to content
cccskills
FreePublished on GitHub

seasonal

Generates buy, sell, or stand-aside signals from calendar patterns using price and volume data. Supports configurable months and weekdays, including combined conditions, for testing seasonal trading ideas against historical data.

OriginalShow the original description

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.

Run score Not tested

See how to install

Good for

  • Testing trading rules based on particular months
  • Adding weekday conditions to a seasonal strategy
  • Combining month and weekday signals
  • Including neutral periods in historical tests

Files included (2)

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

SKILL.md (original)

Review the instructions the agent will receive before you install.

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

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

adr-hshare

FreeSummary

Compare a Chinese company's US depositary receipts, Hong Kong shares, and mainland shares after adjusting for exchange rates and share ratios. Analyze pricing gaps, valuation differences, and delisting risks to support research into its different listings.

  • Compare A-share and H-share pricing gaps
  • Measure ADR premiums against Hong Kong shares
  • Review US delisting risks and Hong Kong listing alternatives
HKUDS/Vibe-Trading36.5KUpdated Oct 23, 2026

akshare

FreeSummary

Retrieve stock prices, futures quotes, exchange rates, and economic indicators with the free Python library AKShare. The skill explains market-specific functions, symbol formats, and data preparation for analysis and testing strategies against historical data.

  • Retrieve historical prices for Chinese, US, and Hong Kong stocks
  • Collect Chinese GDP and consumer price data
  • Check futures quotes and foreign exchange rates
HKUDS/Vibe-Trading36.5KUpdated Oct 23, 2026

alpha-zoo

FreeSummary

Explore bundled libraries of investment factors, signals used to compare securities, and inspect individual formulas and metadata. Evaluate a factor or an entire library across a chosen universe and period, producing aggregate performance statistics and an HTML report.

  • Find bundled momentum or reversal factors
  • Inspect a named factor's formula and metadata
  • Compare a factor library across a chosen universe and period
HKUDS/Vibe-Trading36.5KUpdated Oct 23, 2026

Assess whether a Chinese A-share company may receive ST or *ST risk warnings next financial year. Review financial forecasts, dividends, audit opinions, and regulatory penalties, then report risk severity separately from confidence in the prediction.

  • Reviewing a Chinese A-share company's future ST risk
  • Assessing escalation risk for an existing ST or *ST stock
  • Checking revenue, equity, and dividend warning signs
HKUDS/Vibe-Trading36.5KUpdated Oct 23, 2026

asset-allocation

FreeSummary

Plan portfolio allocations across assets using risk, correlations, return forecasts, and trading costs. Compare five optimization methods, produce settings for config.json, and define rebalancing rules that adjust holdings back toward their target weights.

  • Comparing allocations across stocks, bonds, and gold
  • Choosing an optimizer based on return forecasts and correlations
  • Preparing portfolio settings for config.json
HKUDS/Vibe-Trading36.5KUpdated Oct 23, 2026

Diagnose failed or abnormal backtests, which test trading strategies on historical data. Inspect result files, strategy code, and configuration to identify bugs, make targeted repairs, rerun tests, and verify the updated metrics.

  • Investigating backtest execution errors
  • Finding why a strategy produces no trades
  • Checking delayed trades or low capital usage
HKUDS/Vibe-Trading36.5KUpdated Oct 23, 2026

See all skills by HKUDS

Report a problem with this skill