คำอธิบายของบอท "UTBotStrategy" สำหรับ cTrader (cAlgo)
บอท UTBotStrategy เป็น expert advisor (EA) ที่พัฒนาด้วยภาษา C# สำหรับแพลตฟอร์ม cTrader (cAlgo) บอทนี้ใช้แนวทางที่อิงจาก ATR และ trailing stop แบบไดนามิก เพื่อระบุสัญญาณการเทรดและจัดการตำแหน่งโดยอัตโนมัติ นี่คือภาพรวมของฟีเจอร์หลักของมัน:
1. พารามิเตอร์อินพุต
บอทสามารถปรับแต่งได้สูงผ่าน พารามิเตอร์อินพุต ซึ่งรวมถึง:
- ตัวชี้วัดทางเทคนิค:
-
- Key Value (ความไวของสัญญาณ, ตัวคูณ ATR)
- ช่วงเวลา ATR (ช่วงเวลาของ ATR)
- Heikin Ashi (ตัวเลือกใช้แท่งเทียน Heikin Ashi แทนแท่งเทียนปกติ)
- การจัดการการเทรด:
-
- ขนาดล็อต (ขนาดล็อต)
- Stop Loss เป็นพิปส์
- ชั่วโมงการเทรด (เวลาเริ่มต้นและสิ้นสุดการทำงาน)
- การปิดตำแหน่งบังคับ ในเวลาที่กำหนด
- Trailing Stop แบบไดนามิก:
-
- เปิดใช้งาน หลังจากมีกำไรในพิปส์ถึงระดับหนึ่ง
- ขั้นตอนของ trailing stop เพื่อปรับระดับ stop loss
2. ตรรกะการเทรด
บอทใช้กลยุทธ์ที่อิงกับ trailing stop ที่คำนวณแบบไดนามิก โดยใช้ ATR (Average True Range) นี่คือวิธีการทำงาน:
ขั้นตอนการวิเคราะห์ (OnBar)
- บอทคำนวณค่าของ ATR เพื่อกำหนด trailing stop ที่ปรับตัวได้
- ตรวจสอบราคาปิดโดยใช้ Heikin Ashi (ถ้าเปิดใช้งาน)
- เปรียบเทียบค่าปัจจุบันกับระดับ trailing stop เพื่อกำหนด ทิศทางตลาด.
- เงื่อนไขการเข้า:
-
- สัญญาณ Long: ราคาทะลุ trailing stop ขึ้นไปและยืนยันแนวโน้มขาขึ้น
- สัญญาณ Short: ราคาทะลุ trailing stop ลงมาและยืนยันแนวโน้มขาลง
- ดำเนินการคำสั่งซื้อหรือขาย พร้อม stop loss ที่กำหนดไว้ล่วงหน้า.
การจัดการตำแหน่ง
- Trailing Stop แบบไดนามิก:
-
- เมื่อกำไรถึงเกณฑ์ที่กำหนดไว้ trailing stop จะเลื่อนเข้าหาตำแหน่ง
- การปิดบังคับ:
-
- ถ้าเวลาที่กำหนดมาถึง จะปิดตำแหน่งที่เปิดทั้งหมด
3. ฟีเจอร์เสริม
- กราฟสัญญาณการเทรด: บอทวาด ลูกศร บนกราฟเพื่อแสดงโอกาสในการเข้าเทรด
- แสดงข้อมูลในคอนโซล: แสดงค่าของ trailing stop, ราคาต่างๆ และทิศทางตลาด
- การป้องกันช่วงเวลานอกการเทรด: ป้องกันการเทรดนอกช่วงเวลาที่กำหนด
4. วัตถุประสงค์ของกลยุทธ์
กลยุทธ์นี้เหมาะสำหรับ: ✅ การ Scalping หรือ Day Trading บนกรอบเวลาต่ำ (1M, 5M, 15M)
✅ การติดตามแนวโน้ม ด้วย trailing stop แบบไดนามิก
✅ การทำเทรดอัตโนมัติ พร้อมการจัดการความเสี่ยงที่ตั้งไว้ล่วงหน้า
🔹 จุดแข็ง: ความยืดหยุ่นในพารามิเตอร์, trailing stop อัจฉริยะ, การปิดบังคับเพื่อหลีกเลี่ยงการถือข้ามคืน
🔸 การปรับปรุงที่เป็นไปได้: การเพิ่มตัวกรองเพิ่มเติม (RSI, MACD) เพื่อลดสัญญาณเท็จ
Description of the "UTBotStrategy" Bot for cTrader (cAlgo)
The UTBotStrategy bot is an expert advisor (EA) developed in C# for the cTrader (cAlgo) platform. This bot uses an ATR and dynamic trailing stop approach to identify trading signals and manage positions automatically. Here is an overview of its main features:
1. Input Parameters
The bot is highly configurable via input parameters, which include:
Technical Indicators:
Key Value (Signal Sensitivity, ATR Multiplier)
ATR Period
Heikin Ashi (Option to use Heikin Ashi candles instead of regular ones)
Trading Management:
Lot Size
Stop Loss in pips
Trading Hours (Start and End Time)
Forced Closing of Positions at a Specific Time
Dynamic Trailing Stop:
Triggered after a certain profit in pips
Trailing stop step to adjust the stop loss level
2. Trading Logic
The bot follows a strategy based on a dynamically calculated trailing stop with the ATR (Average True Range). Here is how it works:
Analysis Phase (OnBar)
The bot calculates the ATR value to set an adaptive trailing stop.
Checks the closing price using Heikin Ashi (if enabled).
Compares the current value with the trailing stop level to determine the market direction.
Entry Conditions:
Long Signal: The price breaks above the trailing stop and confirms an uptrend.
Short Signal: The price breaks below the trailing stop and confirms a downtrend.
Executes buy or sell orders with a predefined stop loss.
Position Management
Dynamic Trailing Stop:
When profit reaches a predefined threshold, the trailing stop moves in favor of the position.
Forced Close:
If the specified time is reached, closes all open positions.
3. Extra Features
Trading Signal Charts: The bot draws arrows on the chart to signal entry opportunities.
Print information to the console: Shows trailing stop values, prices and market direction.
Off-Trading Time Protection: Prevents trading outside the specified time window.
4. Strategy Objective
This strategy is useful for: ✅ Scalping or Day Trading on low time frames (1M, 5M, 15M).
✅ Trend Following with dynamic trailing stop.
✅ Trading automation with preset risk management.
🔹 Strengths: Flexibility in parameters, intelligent trailing stop, forced closing to avoid overnight.
🔸 Possible Improvements: Implementation of additional filters (RSI, MACD) to reduce false signals
5 | 100 % | |
4 | 0 % | |
3 | 0 % | |
2 | 0 % | |
1 | 0 % |