Từ description về biểu đồ hình nến sau: """Setup Name: Continuation breakout
Strategy Type: Breakout
Timeframe: Daily chart
Description:
A leg of 3-10 daily candles, 75% are the green candles close near high. the range between the close and open is larger than normal. 25% candles are bearish, or small narrow range candle.
A period of 3-5 daily candles in consolidation. The candles can be small range.
A big daily candle, close near high, as the entry candle
Setup Criteria 2LYNCH:
(2): Not up 2 days in a row - Before the entry day, the previous 2 days should not have positive net change. Net change of a candle is calculated by its closing price toward the previous candle's closing price.
(L): Linearity - The leg (description 1.) should have more green candles than red candle, and not many wicks
(N): Narrow - Before the entry day, the previous day should be a doji or a red candle, not a green candle
(C): Consolidation - The pullback (description 2.) should be tight, compact, in low declining volume
(H): High: the entry candle at the close, should have closing price near the high of day""" Hãy thiết kế một chain of thought prompt để kết quả cuối cùng tạo ra được mock data mô tả chính xác biểu đồ hình nến đó: chính xác về số nến, màu sắc nến ở mỗi giai đoạn. Ví dụ: đầu ra: Example JSON Format:
json
{{
"candlestickData": [
{{
"date": "2024-01-01",
"open": 100.00,
"high": 102.00,
"low": 99.50,
"close": 101.80,
"volume": 1000000
}},
{{
"date": "2024-01-02",
"open": 101.90,
"high": 103.50,
"low": 101.70,
"close": 103.30,
"volume": 1100000
}},
// ... more data points
],
"explanation": "Brief explanation of how the generated data matches the input description, highlighting key features and patterns."
}}
Assistant
Sure! Below is a Chain of Thought Prompt designed to guide the creation of mock candlestick data that accurately reflects the described "Continuation Breakout" pattern. This prompt breaks down the task into clear, actionable steps to ensure all criteria are met and the final JSON output is precise.
Chain of Thought Prompt: Generating Mock Candlestick Data for "Continuation Breakout" Pattern
Objective: Create mock candlestick data that accurately represents the "Continuation Breakout" pattern based on the provided description and criteria.
Step 1: Understand the Setup Criteria
Leg of 3-10 Daily Candles:
75% Green Candles:
Close near the high of the day.
Larger range between close and open than normal.
25% Bearish or Small Range Candles:
Red candles or candles with a narrow range.
Consolidation Period:
3-5 Daily Candles:
Small range candles.
Tight and compact pullback.
Low declining volume.
Entry Candle:
Big Daily Candle:
Closes near the high of the day.
Serves as the entry point for the breakout.
2LYNCH Criteria:
(2) Not Up 2 Days in a Row:
The two days before the entry day should not have a positive net change.
(L) Linearity:
More green candles than red in the initial leg.
Minimal wicks on candles.
(N) Narrow:
The day before the entry day should be a doji or a red candle.
(C) Consolidation:
Tight pullback with low declining volume.
(H) High:
Entry candle closes near the high of the day.
Step 2: Define the Date Range
Determine the total number of candles required:
Initial Leg: 3-10 candles.
Consolidation: 3-5 candles.
Entry Candle: 1 candle.
Additional 2 days before entry for 2LYNCH criteria.
Example: Total of 10-18 days.
Step 3: Generate the Initial Leg Candles
Determine the Number of Candles:
Choose a number within the 3-10 range (e.g., 7 candles).
Assign Candle Colors and Properties:
75% Green Candles:
~5 candles.
Close prices near the high.
Larger range between open and close.
25% Bearish or Small Range Candles:
~2 candles.
Red candles or small range (narrow difference between open and close).
Ensure Linearity:
Minimal wicks on all candles.
Prices show a general upward trend.
Step 4: Generate the Consolidation Period Candles
Determine the Number of Candles:
Choose a number within the 3-5 range (e.g., 4 candles).
Assign Candle Properties:
Small range (close and open prices are close).
Can include both green and red candles.
Low declining volume compared to the initial leg.
Step 5: Generate the Entry Candle
Assign Candle Properties:
Big range with a large bullish move.
Close near the high of the day.
Higher volume compared to consolidation.
Step 6: Implement 2LYNCH Criteria
Not Up 2 Days Before Entry:
The two days preceding the entry day should not have positive net changes.
Narrow Before Entry Day:
The day immediately before the entry candle should be a doji or a red candle.
Consolidation Tightness:
Ensure consolidation candles are tight and have declining volume.
Step 7: Assign Realistic Prices and Volume
Set a Base Price:
Start with an arbitrary open price (e.g., 100.00).
Calculate High, Low, Close Prices:
Ensure logical price movements based on candle type (green/red).
Maintain consistency in trends and ranges.
Assign Volume:
Higher volumes for bullish candles in the initial leg and entry candle.
Lower volumes during consolidation.
Step 8: Structure the Data in JSON Format
Create a JSON object with an array of candlestick data.
Each candlestick includes:
date: YYYY-MM-DD format.
open: Opening price.
high: Highest price of the day.
low: Lowest price of the day.
close: Closing price.
volume: Trading volume.
Step 9: Provide an Explanation
Summarize how the generated data matches the "Continuation Breakout" pattern.
Highlight key features and patterns that align with the criteria.
Example JSON Format:
json
{
"candlestickData": [
{
"date": "2024-01-01",
"open": 100.00,
"high": 102.00,
"low": 99.50,
"close": 101.80,
"volume": 1000000
},
{
"date": "2024-01-02",
"open": 101.90,
"high": 103.50,
"low": 101.70,
"close": 103.30,
"volume": 1100000
},
// ... more data points
],
"explanation": "Brief explanation of how the generated data matches the input description, highlighting key features and patterns."
}
Final Notes
Consistency: Ensure that all generated candles follow the specified patterns without contradictions.
Realism: Prices and volumes should reflect realistic trading scenarios.
Verification: After generating the data, cross-check each candle against the setup and 2LYNCH criteria to ensure compliance.
By following this chain of thought, you can systematically create mock candlestick data that accurately represents the "Continuation Breakout" pattern as described.