Mô tả Bot "UTBotStrategy" cho cTrader (cAlgo)
Bot UTBotStrategy là một expert advisor (EA) được phát triển bằng C# cho nền tảng cTrader (cAlgo). Bot này sử dụng phương pháp dựa trên ATR và trailing stop động để xác định tín hiệu giao dịch và quản lý vị thế một cách tự động. Dưới đây là tổng quan về các tính năng chính của nó:
1. Tham số đầu vào
Bot có thể cấu hình cao thông qua các tham số đầu vào, bao gồm:
- Chỉ báo kỹ thuật:
-
- Giá trị chính (Độ nhạy tín hiệu, hệ số nhân ATR)
- Chu kỳ ATR (Chu kỳ của ATR)
- Heikin Ashi (Tùy chọn sử dụng nến Heikin Ashi thay vì nến thường)
- Quản lý giao dịch:
-
- Kích thước lô (Kích thước lô)
- Stop Loss tính bằng pips
- Giờ giao dịch (thời gian bắt đầu và kết thúc hoạt động)
- Đóng vị thế bắt buộc vào một thời điểm cụ thể
- Trailing Stop động:
-
- Kích hoạt sau một mức lợi nhuận nhất định tính bằng pips
- Bước trailing stop để điều chỉnh mức stop loss
2. Logic giao dịch
Bot theo dõi chiến lược dựa trên trailing stop được tính toán động với ATR (Average True Range). Cách hoạt động như sau:
Giai đoạn phân tích (OnBar)
- Bot tính giá trị ATR để thiết lập trailing stop thích ứng.
- Kiểm tra giá đóng cửa sử dụng Heikin Ashi (nếu được bật).
- So sánh giá trị hiện tại với mức trailing stop để xác định hướng thị trường.
- Điều kiện vào lệnh:
-
- Tín hiệu Long: Giá vượt qua trailing stop và xác nhận xu hướng tăng.
- Tín hiệu Short: Giá giảm xuống dưới trailing stop và xác nhận xu hướng giảm.
- Thực hiện lệnh mua hoặc bán với một stop loss được định sẵn.
Quản lý vị thế
- Trailing Stop động:
-
- Khi lợi nhuận đạt ngưỡng định trước, trailing stop sẽ di chuyển theo hướng có lợi cho vị thế.
- Đóng bắt buộc:
-
- Nếu đến giờ đã định, đóng tất cả các vị thế mở.
3. Tính năng bổ sung
- Biểu đồ với tín hiệu giao dịch: Bot vẽ mũi tên trên biểu đồ để báo hiệu cơ hội vào lệnh.
- In thông tin lên bảng điều khiển: Hiển thị giá trị trailing stop, giá và hướng thị trường.
- Bảo vệ ngoài giờ giao dịch: Ngăn chặn giao dịch ngoài khung giờ đã định.
4. Mục tiêu chiến lược
Chiến lược này hữu ích cho: ✅ Scalping hoặc Giao dịch trong ngày trên các khung thời gian thấp (1M, 5M, 15M).
✅ Theo xu hướng với trailing stop động.
✅ Tự động hóa giao dịch với quản lý rủi ro được thiết lập sẵn.
🔹 Điểm mạnh: Linh hoạt trong tham số, trailing stop thông minh, đóng bắt buộc để tránh qua đêm.
🔸 Cải tiến có thể: Triển khai các bộ lọc bổ sung (RSI, MACD) để giảm tín hiệu sai.
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 % |