Phase 1: initial codes
This commit is contained in:
@@ -0,0 +1,94 @@
|
||||
STOCK_SUMMARY_SYSTEM = "You are a professional equity analyst. Be concise, factual, and avoid hype."
|
||||
|
||||
STOCK_SUMMARY_PROMPT = """
|
||||
Ticker: {symbol}
|
||||
Company: {name}
|
||||
Sector: {sector}
|
||||
Industry: {industry}
|
||||
Market Cap: {market_cap}
|
||||
P/E Ratio: {pe_ratio}
|
||||
EPS: {eps}
|
||||
52W High: {week_52_high} | 52W Low: {week_52_low}
|
||||
Dividend Yield: {dividend_yield}
|
||||
|
||||
Recent News Headlines:
|
||||
{headlines}
|
||||
|
||||
Write a concise 3-paragraph stock summary:
|
||||
1. Business overview and recent performance
|
||||
2. Key financial metrics analysis
|
||||
3. Near-term catalysts and risks
|
||||
"""
|
||||
|
||||
TECHNICAL_READ_SYSTEM = "You are a technical analyst specializing in chart pattern recognition."
|
||||
|
||||
TECHNICAL_READ_PROMPT = """
|
||||
Ticker: {symbol}
|
||||
Period Analyzed: {period}
|
||||
Current Price: {price}
|
||||
SMA20: {sma20} | SMA50: {sma50}
|
||||
RSI(14): {rsi}
|
||||
MACD: {macd} | Signal: {macd_signal}
|
||||
Bollinger Bands: Upper {bb_upper} | Lower {bb_lower}
|
||||
Recent price action: {price_action}
|
||||
|
||||
Provide a technical analysis in 2-3 paragraphs covering:
|
||||
1. Current trend, key support/resistance levels
|
||||
2. Indicator readings and what they signal
|
||||
3. Actionable technical outlook (bullish/bearish/neutral)
|
||||
"""
|
||||
|
||||
SENTIMENT_SCORE_SYSTEM = "You are a financial sentiment analyst. Classify sentiment precisely."
|
||||
|
||||
SENTIMENT_SCORE_PROMPT = """
|
||||
Ticker: {symbol}
|
||||
Analyze the sentiment of these news headlines:
|
||||
|
||||
{headlines}
|
||||
|
||||
Respond in this exact format:
|
||||
OVERALL: [BULLISH/BEARISH/NEUTRAL]
|
||||
SCORE: [0-100 where 0=extreme bearish, 50=neutral, 100=extreme bullish]
|
||||
REASONING: [2-3 sentences explaining the dominant themes]
|
||||
HEADLINE_BREAKDOWN:
|
||||
[For each headline: + or - or ~ and one line explanation]
|
||||
"""
|
||||
|
||||
PRICE_OUTLOOK_SYSTEM = "You are a quantitative strategist. Base your outlook on data, not speculation."
|
||||
|
||||
PRICE_OUTLOOK_PROMPT = """
|
||||
Ticker: {symbol}
|
||||
Current Price: {price}
|
||||
Technical snapshot: RSI={rsi}, trend={trend}, momentum={momentum}
|
||||
Recent news sentiment: {sentiment}
|
||||
Sector performance: {sector_perf}
|
||||
|
||||
Provide a short-term price outlook in this format:
|
||||
1-DAY BIAS: [BULLISH/BEARISH/NEUTRAL] — [confidence %] — [one-line rationale]
|
||||
1-WEEK BIAS: [BULLISH/BEARISH/NEUTRAL] — [confidence %] — [one-line rationale]
|
||||
1-MONTH BIAS: [BULLISH/BEARISH/NEUTRAL] — [confidence %] — [one-line rationale]
|
||||
KEY RISKS: [2 bullet points]
|
||||
"""
|
||||
|
||||
PORTFOLIO_REVIEW_SYSTEM = "You are a portfolio risk manager. Identify risks clearly and suggest actionable improvements."
|
||||
|
||||
PORTFOLIO_REVIEW_PROMPT = """
|
||||
Portfolio Holdings:
|
||||
{holdings}
|
||||
|
||||
Total Value: {total_value}
|
||||
Cash Position: {cash}
|
||||
Largest Position: {top_position}
|
||||
Sector Allocation: {sector_allocation}
|
||||
|
||||
Provide a portfolio review covering:
|
||||
1. Concentration risk (any position > 20% or sector > 40%)
|
||||
2. Correlation risk (holdings that move together)
|
||||
3. Missing diversification (sectors, asset classes)
|
||||
4. Top 3 actionable recommendations
|
||||
"""
|
||||
|
||||
CHAT_SYSTEM = """You are StockMind AI, an expert financial assistant integrated into a stock market application.
|
||||
You have access to real-time market context provided by the user. Answer questions about stocks, crypto,
|
||||
market trends, investment strategies, and financial analysis. Be concise and professional.
|
||||
Always note that your analysis is for informational purposes only and not financial advice."""
|
||||
Reference in New Issue
Block a user