Viết 1 prompt template cho ChatOpenAI model để từ mô tả về biểu đồ nến Nhật thì nó sẽ sinh ra mock data chính xác nhất với mô tả. Ví dụ đoạn mô tả như sau: Setup Name: Continuation breakout Strategy Type: Breakout Timeframe: Daily chartDescription:
A leg of 3-5 daily candles, each candle has close near high, the range between the close and open is larger than normal
A period of 3-5 daily candles (yellow mark), of very narrow range (Doji), where the range between high to low is smaller than normal
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. Yêu cầu prompt này sẽ chỉ truyền 1 biến mô tả vào!
Assistant
Sure! Below is a prompt template for the ChatOpenAI model that takes a single {description} variable detailing a Japanese candlestick chart pattern and generates corresponding mock data accurately reflecting the description. The output is structured in a tabular CSV format with relevant fields.
Prompt Template
code
Bạn là một chuyên gia phân tích kỹ thuật chuyên về biểu đồ nến Nhật. Dựa trên mô tả dưới đây về một mẫu hình biểu đồ, hãy tạo ra dữ liệu giả lập (mock data) cho biểu đồ nến Nhật hàng ngày. Dữ liệu cần bao gồm các cột: Ngày (Date), Mở cửa (Open), Cao nhất (High), Thấp nhất (Low), Đóng cửa (Close), Khối lượng (Volume). Đảm bảo rằng dữ liệu sinh ra phù hợp với tất cả các yếu tố được mô tả trong phần mô tả, bao gồm các mẫu hình nến, điều kiện thiết lập và tiêu chí.
**Mô tả:**
{description}
**Yêu cầu:**
1. **Ngày (Date):** Tạo một chuỗi các ngày liên tiếp phù hợp với khung thời gian hàng ngày.
2. **Giá mở cửa (Open), Giá cao nhất (High), Giá thấp nhất (Low), Giá đóng cửa (Close):** Các giá này phải phản ánh chính xác các mô tả về mẫu hình nến, bao gồm:
- Các nến tăng (Green) và giảm (Red) phù hợp với tiêu chí Linearity (L).
- Các nến Doji với phạm vi giá hẹp theo tiêu chí Narrow (N).
- Nến nhập lệnh lớn với đóng cửa gần giá cao theo tiêu chí High (H).
3. **Khối lượng (Volume):** Đảm bảo rằng khối lượng giao dịch phản ánh sự củng cố (Consolidation - C) với khối lượng giảm trong khoảng thời gian hợp nhất.
4. **Tuân thủ các tiêu chí Setup Criteria 2LYNCH:** Đảm bảo rằng trước ngày nhập lệnh, các điều kiện về sự thay đổi ròng, tính tuyến tính, phạm vi hẹp và sự củng cố được đáp ứng đầy đủ.
**Định dạng xuất dữ liệu:**
- Sử dụng định dạng CSV với các cột: Date, Open, High, Low, Close, Volume.
- Đảm bảo dữ liệu dễ đọc và không có lỗi cú pháp.
**Ví dụ định dạng CSV:**
Vui lòng sinh dữ liệu giả lập phù hợp với mô tả trên.
Cách Sử Dụng
Chèn Mô Tả Cụ Thể:
Thay thế {description} bằng đoạn mô tả chi tiết về mẫu hình biểu đồ nến Nhật mà bạn muốn tạo dữ liệu.
Gửi Yêu Cầu:
Sử dụng prompt đã điền đầy đủ và gửi đến mô hình ChatOpenAI để nhận được dữ liệu giả lập.
Ví dụ Sử Dụng
Mô tả đã điền:
code
Setup Name: Continuation breakout
Strategy Type: Breakout
Timeframe: Daily chart
Description:
1. A leg of 3-5 daily candles, each candle has close near high, the range between the close and open is larger than normal
2. A period of 3-5 daily candles (yellow mark), of very narrow range (Doji), where the range between high to low is smaller than normal
3. 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.