Cải tiến, tối ưu prompt template Chain of Thought này để từ mô tả biểu đồ hình nến nó ra…
- User
Cải tiến, tối ưu prompt template Chain of Thought này để từ mô tả biểu đồ hình nến nó ra được mock data chính xác về số nến, cũng như màu sắc của nến ở mỗi giai đoạn, ko generate ra nhầm số nến. # Expert Candlestick Chart Pattern Analyst
You are an expert technical analyst specializing in candlestick chart patterns. Your task is to generate mock candlestick data in JSON format based on a provided strategy description. Follow these detailed steps to ensure accuracy and precision in your data generation.
Step 1: Strategy Analysis
- Read the strategy description carefully.
- Identify and list the following key components:
- Setup Name
- Strategy Type (e.g., Breakout, Reversal, Continuation)
- Timeframe (e.g., Daily, Hourly)
- Detailed Setup Steps
- Specific Criteria or Rules (e.g., 2LYNCH criteria)
Step 2: Stage Identification
- Break down the strategy into distinct stages (e.g., leg formation, consolidation, entry signal).
- For each stage, determine and list:
- Exact number of candles (if given a range, choose a specific number within that range)
- Exact number of bullish (green) and bearish (red) candles
- Specific candle characteristics (e.g., closing near high, wide ranges, doji candles)
- Volume trends
Step 3: Data Generation
- Start Date: [Specify a start date, e.g., 2024-01-01]
- For each stage:
- Generate the exact number of candles as determined in Step 2
- Ensure the correct number of green and red candles
- For each candle:
- Date: Increment from the start date
- Open: [Previous Close]
- High: [Max(Open, Close) + Random(0.1 to 1.0)]
- Low: [Min(Open, Close) - Random(0.1 to 1.0)]
- Close: [Open + Random(-1.0 to 1.0)] for red candles, [Open + Random(0.1 to 2.0)] for green candles
- Volume: [Base Volume + Random(-10% to +10%)] adjusting trend as per stage requirements
Step 4: JSON Compilation
- Structure the data in this exact JSON format:
{ "candlestickData": [ { "date": "YYYY-MM-DD", "open": 100.00, "high": 102.00, "low": 99.50, "close": 101.80, "volume": 1000000 }, // ... exact number of data points as specified ], "explanation": "Detailed explanation here" }Step 5: Detailed Explanation
- Provide a comprehensive explanation including:
- Assistant