AgentSkillsCN

sector-pe-ratios

利用Octagon MCP获取各行业的市盈率。当您需要将公司估值与行业基准进行对比、分析各交易所内的行业估值,或把握全市场范围的估值趋势时,此技能将助您一臂之力。

SKILL.md
--- frontmatter
name: sector-pe-ratios
description: Retrieve sector P/E ratios using Octagon MCP. Use when comparing company valuations to sector benchmarks, analyzing sector valuations across exchanges, and understanding market-wide valuation trends.

Sector P/E Ratios

Retrieve price-to-earnings ratios by sector and exchange using the Octagon MCP server.

Prerequisites

Ensure Octagon MCP is configured in your AI agent (Cursor, Claude Desktop, Windsurf, etc.). See references/mcp-setup.md for installation instructions.

Workflow

1. Identify Parameters

Determine your query parameters:

  • Date: Specific date for the data
  • Exchange: NYSE, NASDAQ, etc.
  • Sector: Technology, Healthcare, Financials, etc.

2. Execute Query via Octagon MCP

Use the octagon-agent tool with a natural language prompt:

code
Retrieve the latest sector P/E ratios for <DATE>, filtered by exchange <EXCHANGE> and sector <SECTOR>.

MCP Call Format:

json
{
  "server": "octagon-mcp",
  "toolName": "octagon-agent",
  "arguments": {
    "prompt": "Retrieve the latest sector P/E ratios for 2025-02-03, filtered by exchange NASDAQ and sector Technology."
  }
}

3. Expected Output

The agent returns sector P/E data:

MetricValue
SectorTechnology
ExchangeNASDAQ
P/E Ratio58.77
Date2025-02-03

Data Sources: octagon-stock-data-agent

4. Interpret Results

See references/interpreting-results.md for guidance on:

  • Comparing company P/E to sector P/E
  • Historical sector valuation context
  • Cross-sector comparisons
  • Exchange-specific analysis

Example Queries

Specific Sector and Exchange:

code
Retrieve the latest sector P/E ratios for 2025-02-03, filtered by exchange NASDAQ and sector Technology.

All Sectors on Exchange:

code
Get P/E ratios for all sectors on the NYSE.

Sector Comparison:

code
Compare P/E ratios for Technology, Healthcare, and Financials sectors.

Historical Trend:

code
What is the historical P/E trend for the Technology sector on NASDAQ?

Cross-Exchange:

code
Compare Technology sector P/E ratios on NYSE vs. NASDAQ.

Understanding P/E Ratios

Definition

code
P/E Ratio = Stock Price / Earnings Per Share

For sectors:

code
Sector P/E = Weighted Average P/E of all stocks in the sector

Types of P/E

TypeDescription
Trailing P/EBased on past 12 months earnings
Forward P/EBased on estimated future earnings
GAAP P/EUsing GAAP earnings
Non-GAAP P/EUsing adjusted earnings

Sector Categories

Major Sectors

SectorTypical P/E Range
Technology25-60
Healthcare18-35
Financials10-18
Consumer Discretionary15-30
Consumer Staples18-25
Industrials15-25
Energy8-20
Utilities15-22
Real Estate30-50
Materials12-20
Communications15-25

P/E Characteristics by Sector

SectorP/E TendencyReason
TechnologyHigherGrowth expectations
FinancialsLowerMature, regulated
UtilitiesModerateStable, dividend-focused
HealthcareVariableMix of growth/value

Major Exchanges

Exchange Characteristics

ExchangeFocus
NYSELarge-cap, established
NASDAQTech-heavy, growth
AMEXSmaller companies, ETFs

Exchange P/E Differences

FactorNYSENASDAQ
Tech WeightLowerHigher
Average P/EGenerally lowerGenerally higher
Growth vs. ValueMore balancedGrowth-tilted

Using Sector P/E for Analysis

Company Valuation Context

ComparisonInterpretation
Company P/E < Sector P/EPotentially undervalued or issues
Company P/E = Sector P/EFairly valued relative to sector
Company P/E > Sector P/EPremium valuation or overvalued

Premium/Discount Calculation

code
Premium/Discount = (Company P/E - Sector P/E) / Sector P/E × 100%

Example

  • Company P/E: 45
  • Sector P/E: 58.77
  • Discount: (45 - 58.77) / 58.77 = -23.4% (trading at discount)

Historical Context

Valuation Levels

Sector P/E vs. HistoryInterpretation
Above 10-year averagePotentially elevated
At 10-year averageNormal valuation
Below 10-year averagePotentially attractive

Cycle Considerations

PhaseTypical Sector P/E Behavior
Early RecoveryRising from lows
Mid-CycleModerate, stable
Late CycleOften elevated
RecessionCompressed or distorted

Cross-Sector Analysis

Relative Value

ComparisonUse
Tech vs. FinancialsGrowth vs. value
Cyclical vs. DefensiveRisk appetite
High vs. Low P/EMarket expectations

Rotation Signals

SignalMeaning
Tech P/E rising fasterGrowth favored
Value sectors risingRisk-off rotation
ConvergenceNormalization
DivergenceTheme-driven market

Data Considerations

Timing

FactorConsideration
Earnings seasonP/E updates with new earnings
Price movementsDaily fluctuation
Index rebalancingComposition changes

Calculation Differences

SourceMay Differ On
WeightingMarket-cap vs. equal
EarningsTrailing vs. forward
ConstituentsIndex composition

Common Use Cases

Stock Valuation

code
Is AAPL's P/E reasonable compared to the Technology sector?

Sector Selection

code
Which sectors have the lowest P/E ratios currently?

Market Timing

code
Are Technology sector valuations elevated compared to history?

Portfolio Analysis

code
How do my holdings' P/E ratios compare to their sectors?

Analysis Tips

  1. Compare apples to apples: Same sector, similar companies.

  2. Consider growth: High P/E may be justified by high growth.

  3. Check historical range: Current vs. typical levels.

  4. Look at earnings quality: P/E only as good as earnings.

  5. Cross-reference exchanges: Same sector, different exchanges.

  6. Watch for outliers: Negative earnings distort averages.

Integration with Other Skills

SkillCombined Use
financial-metrics-analysisCompany P/E vs. sector
income-statementEarnings driving P/E
stock-quoteCurrent price context
analyst-estimatesForward P/E calculation