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
No utilizo el dealing forex.
Usted, en el ejemplo deCopyTick, sólo obtiene un último elemento de la estructura, de hecho sólo los mejores precios.
¿Qué te hace pensar que es sólo un artículo?
Esa es la cuestión, me salen absolutamente todos los ticks (y no sólo los ticks, sino también los cambios en la taza)
Consulte
Ahí lo tienes, eso es bueno.
Prometí hablarle de otra ventaja de OnTick, en comparación con OnBook. Si tiene cálculos un poco pesados (o, Dios no lo quiera, operaciones), puede acumular una cola bastante grande de eventos que no tienen sentido(no contienen información relacionada con el evento). Aquí es donde la ventaja se convierte en desventaja, como suele ocurrir.
En este caso, OnTick simplemente omitirá los eventos que entraron en el momento del cálculo, y se activará en el primer evento nuevo y relevante. En la variante OnBook, para liberar la cola (omitir los eventos inútiles), tiene que hacer sus propias muletas.
Ahí lo tienes, eso es bueno.
Prometí hablarle de otra ventaja de OnTick, en comparación con OnBook. Si tiene cálculos un poco pesados (o, Dios no lo quiera, operaciones), puede acumular una cola bastante grande de eventos que no tienen sentido(no contienen información relacionada con el evento). Aquí es donde la ventaja se convierte en desventaja, como suele ocurrir.
En este caso, OnTick simplemente omitirá los eventos que entraron en el momento del cálculo, y se activará en el primer evento nuevo y relevante. En la variante de OnBook, para liberar la cola (omitir los eventos inútiles), hay que hacer sus propias muletillas.
Personalmente, utilizo las órdenes asíncronas en las operaciones comerciales.
La cuestión es que (si operas en serio en la Bolsa), necesitas todos los cambios del mercado,
y cuanto antes llegue este acontecimiento, mejor.
Además, necesita volúmenes de compra y venta...
Yo, por mi parte, no veo ninguna alternativa a OnBook
No utilizo el dealing forex.
En el ejemplo deCopyTick sólo se obtiene un último elemento de la estructura, de hecho sólo los mejores precios.
Al ejecutar el código anterior, resulta que
s_tick.flags = 0
:)
El mismo tick y al llamar aSymbolInfoTick- no hay bandera :)
Añadido
Recibimos una garrapata pero no sabemos quién la ha "creado".
¿Qué pasa con los tiempos de las garrapatas?
Parece absurdo. Recibimos los ticks del nuevo paquete con la hora19:36:54.735, peroSymbolInfoTick se adelantó en 900 ms.
De la ayuda deSymbolInfoTick
Bonito tema, muchas cosas interesantes, gracias chicos.
Sin bromas y sin chanzas...
Sólo que no desarmes el código, lo tendré en cuenta...
De todas formas, ¿qué pasa con el tiempo de tic-tac?
Es absurdo. Obtenemos los ticks del nuevo paquete con la hora19:36:54.735, pero al llamar aSymbolInfoTick obtenemos el tick "adelantado" en 900 ms??
De referencia
Realmente extraño, el valor de la oferta es el mismo para todos, pero el tiempo de SymbolInfoTick es diferente.
Realmente extraño, el valor de la Oferta es el mismo para todos, pero el tiempo de SymbolInfoTick es diferente.
Parece que el terminal organiza el tiempo "como quiere" :)
¡Casi 4 segundos pasaron por la hora local!
¡Eso no puede ser!
Y aquí todo es normal.
Parece que el terminal organiza el tiempo "como quiere" :)
¡Casi 4 segundos han pasado por la hora local!
¡No puede ser!
El registro muestra que OnTick capturó el mismo tick 4 segundos más rápido que OnBookEvent
Según el registro resulta que OnTick capturó el mismo tick más rápido por 4 segundos que OnBookEvent
Definitivamente, esto no puede ser el caso en la realidad,
porque los ticks ya están en el terminal (es decir, ya ha llegado un nuevo paquete de ticks)
Definitivamente, esto no puede ser el caso en la realidad,
porque los ticks ya están en el terminal (es decir, ya ha llegado un nuevo paquete de ticks)
Pero miro el registro, y el registro uno y el mismo tick con una diferencia de 4 segundos vino.
p.d.
Realmente no me gusta la frase "no puede ser", me acostumbré a que todo puede pasar.
Por cierto, tal vez es lejos del tema, pero una vez en la afirmación de que la tierra es redonda, también, dijo algo como esto - "no puede ser.
En general, siempre tengo dudas hasta que lo compruebo y lo vuelvo a comprobar, y preferiblemente alguien más lo vuelve a comprobar unas cuantas veces.
¿Estás seguro de que tu código no se está estropeando, que forma el registro, procesa los datos?
este código produjo milagros con una diferencia de 4 segundos?