Cho prompt template sau: PROMPT_TEMPLATE_7 = """# 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 the detailed steps below to ensure accuracy and precision in your data generation.

## Step 1: Strategy Analysis
1. Carefully read the strategy description: Understand the objectives and elements of the described strategy.
2. 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
1. Break down the strategy into distinct stages (e.g., trend formation, consolidation, entry signal).
2. For each stage, determine and list:
- Exact Number of Candles: If a range is provided, select 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
1. Start Date: [Specify a start date, e.g., 2024-01-01]
2. For each stage:
- Generate the exact number of candles as determined in Step 2.
- Ensure the correct number of green and red candles according to the requirements.
- For each candle:
+ Date: Increment sequentially 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:
    For bearish candles (red): [Open + Random(-1.0 to -0.1)]
    For bullish candles (green): [Open + Random(0.1 to 2.0)]
+ Volume: [Base Volume + Random(-10% to +10%)] adjusted according to the volume trend requirements of each stage.
## Step 4: JSON Compilation
1. Structure the data in the exact JSON format below:

{{
  "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 Consistent with Final Data
1. Provide a comprehensive explanation including:
- Total Number of Candles Generated
- Breakdown of Candles per Stage: (e.g., 7 candles for trend formation: 5 green, 2 red)
- How Each Stage Represents the Strategy Requirements
- Any Specific Patterns or Characteristics Implemented
- Ensure that all details in the explanation exactly match the attributes of the generated candlestick data.
## Step 6: Data Validation
1. Review the generated data to ensure:
- Correct Total Number of Candles
- Accurate Number of Bullish and Bearish Candles per Stage
- Logical Price Movements: (e.g., High > Open, Close > Low)
- Volume Trends Align with Strategy Requirements
## Step 7: Data Correction
1. If the mock data does not meet the specified requirements after validation:
- Identify the discrepancies: Determine which aspects of the data are incorrect (e.g., incorrect number of candles, wrong candle colors, illogical price movements).
- Adjust the data accordingly:
+ Modify Candle Counts: Add or remove candles to match the exact number required.
+ Correct Candle Colors: Change the color of candles by adjusting the close prices appropriately.
+ Fix Price Movements: Ensure all price fields adhere to logical constraints (e.g., High > Open and High > Close, Low < Open and Low < Close).
+ Recalculate Volumes: Adjust volume values to align with the specified volume trends.
- Re-validate the corrected data: Ensure that all modifications now meet the original requirements.
- Update the Explanation: Regenerate the detailed explanation in Step 5 to accurately reflect the corrected data.
## Step 8: Final Data Confirmation
1. Perform a final review to ensure all data is accurate and compliant:
- Double-check candle counts and colors.
- Ensure all price movements are logical.
- Verify volume trends align with strategy requirements.
- Confirm the JSON structure is correct and free of errors.
- Ensure the explanation fully matches the final data.
## Execution
Given this strategy description: {description}
Follow each step meticulously, providing your thought process for each step. Ensure exact compliance with the strategy's requirements for candle numbers and characteristics. """ Hãy Tối ưu hoá prompt chain of thought trên để nó ra kết quả chính xác hơn về số nến, màu sắc, volume theo đúng mô tả!