PROTECTED SOURCE SCRIPT
[TH] Advanced SMC/ICT Strategy (Condark2)

### **Indicator Settings (English)**
This script is designed to analyze market structure and identify trading opportunities based on Smart Money Concept (SMC) and Inner Circle Trader (ICT) principles. Users can customize the following settings:
#### **Timeframe Settings**
* **Higher Timeframe (HTF) - For Main Structure:** Sets the higher timeframe used to analyze the main market structure (e.g., the primary trend). The default is 5 minutes.
* **Lower Timeframe (LTF):** This is the current chart timeframe you are on, used for more precise entry timing.
---
#### **Market Structure Settings**
* **Swing Lookback (HTF/LTF):** Defines the number of candles used to identify Swing Highs and Swing Lows on both the HTF and LTF.
* **Break of Structure (BOS) Line Color:** Sets the color for lines indicating the price has broken the previous structure in the direction of the trend.
* **Change of Character (CHoCH) Line Color:** Sets the color for lines indicating a potential change in the market trend.
---
#### **Point of Interest (POI) Settings**
* **Order Block Color (Bullish/Bearish):** Sets the color for "Order Block" zones (areas with anticipated significant buy or sell orders) for both uptrends and downtrends.
* **Show Premium/Discount Zones:** Toggles the display of expensive (Premium) and cheap (Discount) price zones, calculated from the last swing, to aid in deciding whether to look for buy or sell setups.
---
#### **Trade & Risk Management Settings**
* **Entry Type:** This is a key setting that defines your entry strategy. There are four options:
1. **Confirmation Candle:** Waits for a confirmation candle to form within the Order Block before entering (most conservative).
2. **Instant OB Edge Entry (Limit Entry):** Sets a limit order to enter as soon as the price touches the edge of the Order Block.
3. **50% of OB Entry (Aggressive Limit):** Sets a limit order at the midpoint of the Order Block for a better price, but with higher risk.
4. **Confirmation + Candle SL (Aggressive):** Waits for a confirmation candle and then places the Stop Loss right at the wick of that candle. This is the most aggressive entry style.
* **Stop Loss Placement:** Determines where the stop loss is placed, based on the LTF Order Block, the last LTF swing, or the last HTF swing. (This is ignored if using the "Aggressive SL" entry type).
* **Take Profit Mode:** Sets the profit target, which can be an HTF Liquidity level or a fixed Risk/Reward Ratio from 1R to 5R.
* **SL Buffer (multiplied by ATR):** Adds a small buffer to the Stop Loss, calculated using the ATR, to help prevent being stopped out by minor volatility.
* **Number of Trade History to Display:** Sets how many past trades are shown on the performance dashboard.
---
#### **Display Settings**
* **Enable Alerts:** Toggles alerts for new trade signals and when a trade is closed (for either a win or a loss).
***
### **คำอธิบายการตั้งค่า (ภาษาไทย)**
สคริปต์นี้ถูกออกแบบมาเพื่อวิเคราะห์โครงสร้างตลาดและหาจังหวะเข้าเทรดตามหลักการ Smart Money Concept (SMC) และ Inner Circle Trader (ICT) โดยผู้ใช้สามารถปรับแต่งค่าต่างๆ ได้ดังนี้
#### **การตั้งค่า Timeframe**
* **Higher Timeframe (HTF) - สำหรับโครงสร้างหลัก:** ใช้สำหรับกำหนดไทม์เฟรมที่ใหญ่กว่าเพื่อวิเคราะห์โครงสร้างตลาดหลัก (เช่น แนวโน้มหลัก) ค่าเริ่มต้นคือ 5 นาที
* **Lower Timeframe (LTF):** คือไทม์เฟรมปัจจุบันของกราฟที่คุณเปิดอยู่ ใช้สำหรับหาจังหวะการเข้าเทรดที่ละเอียดขึ้น
---
#### **การตั้งค่าโครงสร้างตลาด (Market Structure)**
* **ระยะมองหา Swing (HTF/LTF):** กำหนดจำนวนแท่งเทียนที่จะใช้ในการระบุจุดสูงสุด (Swing High) และจุดต่ำสุด (Swing Low) ทั้งในไทม์เฟรมหลักและไทม์เฟรมปัจจุบัน
* **สีเส้น Break of Structure (BOS):** กำหนดสีของเส้นที่บ่งบอกว่าราคาสามารถทะลุโครงสร้างเดิมไปในทิศทางเดียวกับแนวโน้ม
* **สีเส้น Change of Character (CHoCH):** กำหนดสีของเส้นที่บ่งบอกว่าราคาเริ่มมีการเปลี่ยนทิศทางของแนวโน้ม
---
#### **การตั้งค่าจุดสนใจ (Point of Interest)**
* **สี Order Block (Bullish/Bearish):** กำหนดสีของโซน "Order Block" (โซนที่คาดว่ามีคำสั่งซื้อขายรออยู่) สำหรับแนวโน้มขาขึ้นและขาลง
* **แสดงโซน Premium/Discount:** เปิด/ปิดการแสดงโซนราคาแพง (Premium) และราคาถูก (Discount) ซึ่งคำนวณจาก Swingล่าสุด เพื่อช่วยในการตัดสินใจว่าควรหาจังหวะซื้อหรือขาย
---
#### **การตั้งค่าการเข้าเทรดและจัดการความเสี่ยง**
* **รูปแบบการเข้าเทรด (Entry Type):** เป็นหัวใจสำคัญในการกำหนดกลยุทธ์ มี 4 รูปแบบให้เลือก:
1. **ยืนยันด้วยแท่งเทียน (Confirmation):** รอแท่งเทียนยืนยันการกลับตัวในโซน Order Block ก่อนเข้าเทรด (ปลอดภัยที่สุด)
2. **เข้าที่ขอบ OB ทันที (Limit Entry):** ตั้งคำสั่งรอเข้าเทรดที่ขอบของโซน Order Block ทันทีเมื่อราคาวิ่งเข้ามา
3. **เข้าที่ 50% ของ OB (Aggressive Limit):** ตั้งคำสั่งรอเข้าเทรดที่จุดกึ่งกลางของโซน Order Block เพื่อให้ได้ราคาที่ดีขึ้นแต่เสี่ยงกว่า
4. **ยืนยัน + SL ที่แท่งเทียน (Aggressive):** รอแท่งเทียนยืนยัน แล้ววางจุดตัดขาดทุน (Stop Loss) ไว้ที่ปลายไส้ของแท่งเทียนนั้นทันที เป็นรูปแบบที่ดุดันและมีความเสี่ยงสูงสุด
* **รูปแบบการวาง Stop Loss:** กำหนดตำแหน่งของจุดตัดขาดทุน โดยอิงจาก Order Block, Swing ล่าสุดใน LTF, หรือ Swing ล่าสุดใน HTF (ตัวเลือกนี้จะถูกข้ามไปหากเลือกเข้าเทรดแบบ "Aggressive SL")
* **รูปแบบ Take Profit:** กำหนดเป้าหมายการทำกำไร โดยสามารถเลือกเป็นจุดสภาพคล่อง (Liquidity) ใน HTF หรือกำหนดเป็นอัตราส่วนความเสี่ยงต่อผลตอบแทน (Risk/Reward Ratio) ตั้งแต่ 1R ถึง 5R
* **ระยะห่าง SL (คูณด้วย ATR):** เพิ่มระยะห่างของ Stop Loss เล็กน้อยโดยคำนวณจากค่า ATR เพื่อป้องกันการถูกเกี่ยว SL โดยไม่จำเป็น
* **จำนวนประวัติการเทรดที่จะแสดง:** กำหนดจำนวนผลการเทรดย้อนหลังที่จะแสดงบน Dashboard
---
#### **การตั้งค่าการแสดงผล**
* **เปิดใช้งานการแจ้งเตือน:** สามารถเปิด/ปิดการแจ้งเตือนเมื่อมีสัญญาณการเข้าเทรด หรือเมื่อการเทรดปิดลง (ทั้งกำไรและขาดทุน)
This script is designed to analyze market structure and identify trading opportunities based on Smart Money Concept (SMC) and Inner Circle Trader (ICT) principles. Users can customize the following settings:
#### **Timeframe Settings**
* **Higher Timeframe (HTF) - For Main Structure:** Sets the higher timeframe used to analyze the main market structure (e.g., the primary trend). The default is 5 minutes.
* **Lower Timeframe (LTF):** This is the current chart timeframe you are on, used for more precise entry timing.
---
#### **Market Structure Settings**
* **Swing Lookback (HTF/LTF):** Defines the number of candles used to identify Swing Highs and Swing Lows on both the HTF and LTF.
* **Break of Structure (BOS) Line Color:** Sets the color for lines indicating the price has broken the previous structure in the direction of the trend.
* **Change of Character (CHoCH) Line Color:** Sets the color for lines indicating a potential change in the market trend.
---
#### **Point of Interest (POI) Settings**
* **Order Block Color (Bullish/Bearish):** Sets the color for "Order Block" zones (areas with anticipated significant buy or sell orders) for both uptrends and downtrends.
* **Show Premium/Discount Zones:** Toggles the display of expensive (Premium) and cheap (Discount) price zones, calculated from the last swing, to aid in deciding whether to look for buy or sell setups.
---
#### **Trade & Risk Management Settings**
* **Entry Type:** This is a key setting that defines your entry strategy. There are four options:
1. **Confirmation Candle:** Waits for a confirmation candle to form within the Order Block before entering (most conservative).
2. **Instant OB Edge Entry (Limit Entry):** Sets a limit order to enter as soon as the price touches the edge of the Order Block.
3. **50% of OB Entry (Aggressive Limit):** Sets a limit order at the midpoint of the Order Block for a better price, but with higher risk.
4. **Confirmation + Candle SL (Aggressive):** Waits for a confirmation candle and then places the Stop Loss right at the wick of that candle. This is the most aggressive entry style.
* **Stop Loss Placement:** Determines where the stop loss is placed, based on the LTF Order Block, the last LTF swing, or the last HTF swing. (This is ignored if using the "Aggressive SL" entry type).
* **Take Profit Mode:** Sets the profit target, which can be an HTF Liquidity level or a fixed Risk/Reward Ratio from 1R to 5R.
* **SL Buffer (multiplied by ATR):** Adds a small buffer to the Stop Loss, calculated using the ATR, to help prevent being stopped out by minor volatility.
* **Number of Trade History to Display:** Sets how many past trades are shown on the performance dashboard.
---
#### **Display Settings**
* **Enable Alerts:** Toggles alerts for new trade signals and when a trade is closed (for either a win or a loss).
***
### **คำอธิบายการตั้งค่า (ภาษาไทย)**
สคริปต์นี้ถูกออกแบบมาเพื่อวิเคราะห์โครงสร้างตลาดและหาจังหวะเข้าเทรดตามหลักการ Smart Money Concept (SMC) และ Inner Circle Trader (ICT) โดยผู้ใช้สามารถปรับแต่งค่าต่างๆ ได้ดังนี้
#### **การตั้งค่า Timeframe**
* **Higher Timeframe (HTF) - สำหรับโครงสร้างหลัก:** ใช้สำหรับกำหนดไทม์เฟรมที่ใหญ่กว่าเพื่อวิเคราะห์โครงสร้างตลาดหลัก (เช่น แนวโน้มหลัก) ค่าเริ่มต้นคือ 5 นาที
* **Lower Timeframe (LTF):** คือไทม์เฟรมปัจจุบันของกราฟที่คุณเปิดอยู่ ใช้สำหรับหาจังหวะการเข้าเทรดที่ละเอียดขึ้น
---
#### **การตั้งค่าโครงสร้างตลาด (Market Structure)**
* **ระยะมองหา Swing (HTF/LTF):** กำหนดจำนวนแท่งเทียนที่จะใช้ในการระบุจุดสูงสุด (Swing High) และจุดต่ำสุด (Swing Low) ทั้งในไทม์เฟรมหลักและไทม์เฟรมปัจจุบัน
* **สีเส้น Break of Structure (BOS):** กำหนดสีของเส้นที่บ่งบอกว่าราคาสามารถทะลุโครงสร้างเดิมไปในทิศทางเดียวกับแนวโน้ม
* **สีเส้น Change of Character (CHoCH):** กำหนดสีของเส้นที่บ่งบอกว่าราคาเริ่มมีการเปลี่ยนทิศทางของแนวโน้ม
---
#### **การตั้งค่าจุดสนใจ (Point of Interest)**
* **สี Order Block (Bullish/Bearish):** กำหนดสีของโซน "Order Block" (โซนที่คาดว่ามีคำสั่งซื้อขายรออยู่) สำหรับแนวโน้มขาขึ้นและขาลง
* **แสดงโซน Premium/Discount:** เปิด/ปิดการแสดงโซนราคาแพง (Premium) และราคาถูก (Discount) ซึ่งคำนวณจาก Swingล่าสุด เพื่อช่วยในการตัดสินใจว่าควรหาจังหวะซื้อหรือขาย
---
#### **การตั้งค่าการเข้าเทรดและจัดการความเสี่ยง**
* **รูปแบบการเข้าเทรด (Entry Type):** เป็นหัวใจสำคัญในการกำหนดกลยุทธ์ มี 4 รูปแบบให้เลือก:
1. **ยืนยันด้วยแท่งเทียน (Confirmation):** รอแท่งเทียนยืนยันการกลับตัวในโซน Order Block ก่อนเข้าเทรด (ปลอดภัยที่สุด)
2. **เข้าที่ขอบ OB ทันที (Limit Entry):** ตั้งคำสั่งรอเข้าเทรดที่ขอบของโซน Order Block ทันทีเมื่อราคาวิ่งเข้ามา
3. **เข้าที่ 50% ของ OB (Aggressive Limit):** ตั้งคำสั่งรอเข้าเทรดที่จุดกึ่งกลางของโซน Order Block เพื่อให้ได้ราคาที่ดีขึ้นแต่เสี่ยงกว่า
4. **ยืนยัน + SL ที่แท่งเทียน (Aggressive):** รอแท่งเทียนยืนยัน แล้ววางจุดตัดขาดทุน (Stop Loss) ไว้ที่ปลายไส้ของแท่งเทียนนั้นทันที เป็นรูปแบบที่ดุดันและมีความเสี่ยงสูงสุด
* **รูปแบบการวาง Stop Loss:** กำหนดตำแหน่งของจุดตัดขาดทุน โดยอิงจาก Order Block, Swing ล่าสุดใน LTF, หรือ Swing ล่าสุดใน HTF (ตัวเลือกนี้จะถูกข้ามไปหากเลือกเข้าเทรดแบบ "Aggressive SL")
* **รูปแบบ Take Profit:** กำหนดเป้าหมายการทำกำไร โดยสามารถเลือกเป็นจุดสภาพคล่อง (Liquidity) ใน HTF หรือกำหนดเป็นอัตราส่วนความเสี่ยงต่อผลตอบแทน (Risk/Reward Ratio) ตั้งแต่ 1R ถึง 5R
* **ระยะห่าง SL (คูณด้วย ATR):** เพิ่มระยะห่างของ Stop Loss เล็กน้อยโดยคำนวณจากค่า ATR เพื่อป้องกันการถูกเกี่ยว SL โดยไม่จำเป็น
* **จำนวนประวัติการเทรดที่จะแสดง:** กำหนดจำนวนผลการเทรดย้อนหลังที่จะแสดงบน Dashboard
---
#### **การตั้งค่าการแสดงผล**
* **เปิดใช้งานการแจ้งเตือน:** สามารถเปิด/ปิดการแจ้งเตือนเมื่อมีสัญญาณการเข้าเทรด หรือเมื่อการเทรดปิดลง (ทั้งกำไรและขาดทุน)
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, özgürce ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgi burada.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, özgürce ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgi burada.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.