Está perdiendo oportunidades comerciales:
- Aplicaciones de trading gratuitas
- 8 000+ señales para copiar
- Noticias económicas para analizar los mercados financieros
Registro
Entrada
Usted acepta la política del sitio web y las condiciones de uso
Si no tiene cuenta de usuario, regístrese
Un pequeño resumen de los experimentos con análisis de garrapatas.
1. el manejador OnTick se salta un número significativo de ticks.
Por lo tanto, si se quiere analizar la franja de tratos a través del tic tac entrante, no tiene sentido.
Con este enfoque, los resultados del algoritmo en el probador y los resultados de la negociación real serán diferentes.
Como alternativa, se puede analizar la franja de operaciones para un periodo seleccionado o una cantidad determinada de últimas operaciones obteniendo los ticks del historial mediante las funciones CopyTicks() o CopyTicksRange().
En este caso, los resultados de la prueba del algoritmo en el probador y los resultados comerciales reales son los mismos.
Las desventajas son el menor rendimiento del algoritmo.
Sí, el Asesor Experto puede perder ticks. Por lo tanto, es el indicador o CopyTicks.
¿Y la degradación del rendimiento debido a qué? Copie sólo el segmento requerido (que ha aparecido desde la última recuperación de datos con éxito).
¿Por qué recogerlos "en tiempo real" si se utiliza de todos modos CopyTicks?
Puedes copiar las garrapatas a la profundidad adecuada en el momento que quieras.
Andrew, lee el título del tema
Añadido
No puedes conseguir la profundidad correcta con CopyTicks(), ¡sólo son 2000 ticks!
Andrei, lee el título del tema
¿Qué pasa con el hecho de que la tarea está originalmente establecida de forma incorrecta?
El análisis de los ticks en tiempo real es posible, pero es necesario utilizar el indicador o CopyTicks para evitar las brechas.
Con CopyTicks() no se consigue la profundidad requerida, ¡sólo 2000 ticks!
No existe tal limitación, véase el ejemplo de la documentación:
¿Qué pasa con el hecho de que la tarea está originalmente establecida de forma incorrecta?
El análisis de los ticks en tiempo real es posible, pero hay que utilizar un indicador o CopyTicks para asegurarse de que no hay omisiones.
No existe tal limitación, véase el ejemplo de la documentación:
1. No es necesariamente un indicador.
Si te refieres a la ayuda, que dice
En los Asesores Expertos y scripts, la función CopyTicks() puede esperar hasta 45 segundos....
Si lees hasta el final, dice
Velocidad de salida: el terminal almacena para cada carácter 4096 últimos ticks en la caché para un acceso rápido (65536 ticks para los caracteres con la pila en marcha ), las consultas a estos datos son las más rápidas.
El evento OnBookEvent() se activa cuando llega un nuevo paquete de ticks al terminal, por lo que
es posible recoger los ticks del Asesor Experto. Tome un ejemplo y compruébelo.
2. Existe esta limitación, compruébalo tú mismo(CopyTicksRange() no tiene ninguna limitación)
1. No es necesariamente un indicador.
El evento OnBookEvent() se activa cuando llega un nuevo paquete de ticks al terminal, por lo que
es posible recoger los ticks del Asesor Experto. Tome un ejemplo y compruébelo.
OnBookEvent no garantiza que los ticks no se pierdan. Si hay cálculos pesados allí, habrá el mismo salto que en OnTick.
Y no importa de dónde copiar la profundidad necesaria de ticks a través de CopyTicks.
2. Existe tal limitación, compruébelo usted mismo
Existe sólo para los parámetros 0, 0, lo que se menciona explícitamente en la ayuda:
Если параметры from и count не указаны, то в массив ticks_array[] будут записаны все доступные последние тики, но не более 2000.
OnBookEvent no garantiza que los ticks no se pierdan.
Repito
OnBookEvent() precisamente da esa garantía de que ha llegado un nuevo lote de garrapatas.
De la referencia:
Tasa de emisión: El terminal almacena para cada carácter 4096 últimos ticks en la caché de acceso rápido (para los caracterescon la pila en marcha, 65536 ticks), las consultas a estos datos sonlas más rápidas.
Fin de la cita----
Si el OnBookEvent no se activara, ¡todas las operaciones (de intercambio) en MT5 podrían tirarse a la basura!
Llegó un nuevo paquete de ticks - 100% disparó OnBookEvent, y el CopyTicks() muestra cuántos ticks llegaron,
¡datos ya almacenados en la caché y es el acceso más rápido!
Por eso el recolector de ticks puede ser implementado en tiempo real en el indicador y en el EA(cuando el mercado está en marcha).
Añadido por
Toma el código de arriba y compruébalo, luego argumenta...
El código del recolector de garrapatas es correcto, pero hay algunos errores de implementación.
y publicarlo más tarde.
Añadido
Recogida de todos los ticks en tiempo real de Expert Advisor
Por favor, utilice
Para comparar cómo funciona el recolector de ticks, puedes hacer una cinta de todos los oficios de él en un punto
(sustituyendo COPY_TICKS_ALL por COPY_TICKS_TRADE en dos lugares) y compárelo con la cinta de operaciones,
incrustado en el cristal del instrumento.
Si el instrumento es muy líquido, las impresiones pueden ir con mucho retraso
¿Las garrapatas no pueden tener más de una bandera a la vez?
Repita
OnBookEvent() es exactamente el tipo de garantía de queha llegado un nuevo lote de garrapatas.
Pero, ¿significa eso que hay una garantía de que manejará TODOS los eventos OnBookEvent?