cryogenic22 commited on
Commit
b009c0a
·
verified ·
1 Parent(s): 92e78b2

Create utils/prompts.py

Browse files
Files changed (1) hide show
  1. utils/prompts.py +43 -0
utils/prompts.py ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # src/utils/prompts.py
2
+
3
+ def create_analysis_prompt(patterns, indicators):
4
+ """Create the analysis prompt template"""
5
+ prompt = """You are an expert financial analyst. Please analyze this financial chart
6
+ and provide insights in the following structured format:
7
+
8
+ 1. VISUAL ANALYSIS
9
+ - First identify the type of chart (candlestick, line, OHLC, area, etc.)
10
+ - Identify and describe the main trend
11
+ - Note key price levels visible in the chart
12
+ - Describe any significant patterns: {patterns}
13
+ - Comment on volume trends if visible
14
+ - Analyze these technical indicators: {indicators}
15
+
16
+ 2. TECHNICAL INTERPRETATION
17
+ - Current market structure and trend strength
18
+ - Key support and resistance levels with price points
19
+ - Any visible divergences or convergences
20
+ - Pattern reliability assessment
21
+
22
+ 3. RISK ANALYSIS
23
+ - Potential risk levels
24
+ - Risk/reward scenarios
25
+ - Warning signs or red flags
26
+ - Market context considerations
27
+
28
+ 4. ACTIONABLE INSIGHTS
29
+ - Potential trading scenarios
30
+ - Key price targets
31
+ - Suggested stop-loss levels
32
+ - Timeframe considerations
33
+
34
+ 5. SIMPLIFIED EXPLANATION
35
+ Provide a 2-3 sentence summary in simple terms for novice traders.
36
+
37
+ IMPORTANT: Clearly mark this as AI-generated analysis for informational purposes only.
38
+ """
39
+
40
+ return prompt.format(
41
+ patterns=', '.join(patterns) if patterns else 'all visible patterns',
42
+ indicators=', '.join(indicators) if indicators else 'visible indicators'
43
+ )