Descripción del Bot "UTBotStrategy" para cTrader (cAlgo)
El bot UTBotStrategy es un expert advisor (EA) desarrollado en C# para la plataforma cTrader (cAlgo). Este bot utiliza un enfoque basado en ATR y trailing stop dinámico para identificar señales de trading y gestionar las posiciones de forma automática. Aquí hay una visión general de sus principales funcionalidades:
1. Parámetros de Entrada
El bot es altamente configurable mediante parámetros de entrada, que incluyen:
- Indicadores Técnicos:
-
- Valor Clave (Sensibilidad de la señal, multiplicador del ATR)
- Periodo ATR (Periodo del ATR)
- Heikin Ashi (Opción para usar velas Heikin Ashi en lugar de las normales)
- Gestión del Trading:
-
- Tamaño del Lote (Tamaño del lote)
- Stop Loss en pips
- Horarios de trading (hora de inicio y fin de operación)
- Cierre forzado de posiciones a una hora específica
- Trailing Stop Dinámico:
-
- Activación después de cierto beneficio en pips
- Paso del trailing stop para ajustar el nivel de stop loss
2. Lógica de Trading
El bot sigue una estrategia basada en un trailing stop calculado dinámicamente con el ATR (Average True Range). Así es como funciona:
Fase de Análisis (OnBar)
- El bot calcula el valor del ATR para establecer un trailing stop adaptativo.
- Verifica el precio de cierre utilizando Heikin Ashi (si está habilitado).
- Compara el valor actual con el nivel del trailing stop para determinar la dirección del mercado.
- Condiciones de entrada:
-
- Señal Long: El precio supera el trailing stop y confirma una tendencia alcista.
- Señal Short: El precio cae por debajo del trailing stop y confirma una tendencia bajista.
- Ejecuta órdenes de compra o venta con un stop loss predefinido.
Gestión de Posiciones
- Trailing Stop Dinámico:
-
- Cuando el beneficio alcanza un umbral predefinido, el trailing stop se mueve a favor de la posición.
- Cierre forzado:
-
- Si se alcanza la hora especificada, cierra todas las posiciones abiertas.
3. Funcionalidades Extra
- Gráficos con Señales de Trading: El bot dibuja flechas en el gráfico para señalar oportunidades de entrada.
- Imprime información en la consola: Muestra los valores del trailing stop, precios y dirección del mercado.
- Protección contra horarios fuera de trading: Evita operar fuera de la ventana horaria especificada.
4. Objetivo de la Estrategia
Esta estrategia es útil para: ✅ Scalping o Day Trading en marcos temporales bajos (1M, 5M, 15M).
✅ Seguimiento de Tendencias con trailing stop dinámico.
✅ Automatización del trading con gestión de riesgo preestablecida.
🔹 Puntos Fuertes: Flexibilidad en los parámetros, trailing stop inteligente, cierre forzado para evitar posiciones abiertas durante la noche.
🔸 Posibles Mejoras: Implementación de filtros adicionales (RSI, MACD) para reducir señales falsas.
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 % |