Sincronizar la hora local de Windows con el servidor MT5 - página 9

 

CambiadoCOPY_TICKS_ALL aCOPY_TICKS_INFO

y todavía no hay coincidencia.

2017.01.23 23:05:58.985 TestTicks (ALRS-3.17,H1)        New test start.
2017.01.23 23:05:59.077 TestTicks (ALRS-3.17,H1)        Total 2000 ticks.
2017.01.23 23:05:59.077 TestTicks (ALRS-3.17,H1)        Symbol = Si-3.17 Time = 2017.01.20 23:49:00.109 last =60497.0 flags = 2
2017.01.23 23:05:59.077 TestTicks (ALRS-3.17,H1)        Symbol = Si-3.17 Time = 2017.01.20 23:49:01.110 last =60496.0 flags = 6
2017.01.23 23:05:59.077 TestTicks (ALRS-3.17,H1)        Symbol = Si-3.17 Time = 2017.01.20 23:49:01.113 last =60496.0 flags = 4
2017.01.23 23:05:59.077 TestTicks (ALRS-3.17,H1)        Symbol = Si-3.17 Time = 2017.01.20 23:49:01.700 last =60498.0 flags = 2
2017.01.23 23:05:59.077 TestTicks (ALRS-3.17,H1)        Symbol = Si-3.17 Time = 2017.01.20 23:49:02.675 last =60498.0 flags = 6
2017.01.23 23:05:59.077 TestTicks (ALRS-3.17,H1)        Symbol = Si-3.17 Time = 2017.01.20 23:49:13.854 last =60495.0 flags = 6
2017.01.23 23:05:59.077 TestTicks (ALRS-3.17,H1)        Symbol = Si-3.17 Time = 2017.01.20 23:49:14.210 last =60495.0 flags = 4
2017.01.23 23:05:59.077 TestTicks (ALRS-3.17,H1)        Symbol = Si-3.17 Time = 2017.01.20 23:49:16.726 last =60494.0 flags = 4
2017.01.23 23:05:59.077 TestTicks (ALRS-3.17,H1)        Symbol = Si-3.17 Time = 2017.01.20 23:49:17.109 last =60495.0 flags = 4
2017.01.23 23:05:59.077 TestTicks (ALRS-3.17,H1)        Symbol = Si-3.17 Time = 2017.01.20 23:49:17.543 last =60494.0 flags = 4
2017.01.23 23:05:59.077 TestTicks (ALRS-3.17,H1)        Symbol = Si-3.17 Time = 2017.01.20 23:49:17.543 last =60494.0 flags = 2
2017.01.23 23:05:59.077 TestTicks (ALRS-3.17,H1)        Symbol = Si-3.17 Time = 2017.01.20 23:49:18.272 last =60496.0 flags = 4
2017.01.23 23:05:59.077 TestTicks (ALRS-3.17,H1)        Symbol = Si-3.17 Time = 2017.01.20 23:49:19.144 last =60493.0 flags = 2
2017.01.23 23:05:59.077 TestTicks (ALRS-3.17,H1)        Symbol = Si-3.17 Time = 2017.01.20 23:49:19.147 last =60492.0 flags = 4
 

El registro de CopyTicks muestra 1 tick en 1 segundo

2017.01.23 23:05:59.077 TestTicks (ALRS-3.17,H1)        Symbol = Si-3.17 Time = 2017.01.20 23:49:00.109 last =60497.0 flags = 2

Y en el registro de la bolsa

replID            replRev     replAct     id_ord      sess_id   isin_id amount amount_rest id_deal xstatus status  price              moment           dir    action  deal_price
61121596561     61121596561     0       24657039482     5205    795262  5       5       0       5121    5121    60498.00000     2017-01-20 23:49:00.017 2       1       0.00000
61121596564     61121596564     0       24657039483     5205    795262  2       2       0       5121    5121    60497.00000     2017-01-20 23:49:00.020 1       1       0.00000
61121596784     61121596784     0       24653666035     5205    795262  1       0       0       2102273 2102273 60226.00000     2017-01-20 23:49:00.060 1       0       0.00000
61121596860     61121596860     0       24653666013     5205    795262  1       0       0       2102273 2102273 60898.00000     2017-01-20 23:49:00.060 2       0       0.00000
61121596863     61121596863     0       24657039505     5205    795262  5       5       0       5121    5121    60499.00000     2017-01-20 23:49:00.060 2       1       0.00000
61121596874     61121596874     0       24657011636     5205    795262  100     0       0       2102273 2102273 60421.00000     2017-01-20 23:49:00.063 1       0       0.00000
61121596881     61121596881     0       24656457983     5205    795262  1       0       0       2102273 2102273 60386.00000     2017-01-20 23:49:00.063 1       0       0.00000
61121596944     61121596944     0       24656457986     5205    795262  1       0       0       2102273 2102273 60596.00000     2017-01-20 23:49:00.067 2       0       0.00000
61121597008     61121597008     0       24657039527     5205    795262  100     100     0       5121    5121    60397.00000     2017-01-20 23:49:00.073 1       1       0.00000
61121597151     61121597151     0       24657039552     5205    795262  3       3       0       1025    1025    60497.00000     2017-01-20 23:49:00.087 2       1       0.00000
61121597221     61121597221     0       24657039555     5205    795262  22      22      0       1026    1026    60494.00000     2017-01-20 23:49:00.090 2       1       0.00000
61121597250     61121597250     0       24657039400     5205    795262  1000    0       0       2102273 2102273 60477.00000     2017-01-20 23:49:00.093 1       0       0.00000

2/3 de la misma no encajan :( sólo 69 garrapatas
 

Comprobado el registro de la bolsa para isin_id (instrumento) en todas partes sólo 795262 ( Si-3.17)

Añadido

CambiadoCOPY_TICKS_INFO aCOPY_TICKS_TRDAE

Yo tampoco entiendo los tratos...

61121597156     61121597156     0       24657039552     5205    795262  3       0       1693721366      1                               1       60497.00000     2017-01-20 23:49:00.087 2       2       60497.00000
61121597157     61121597157     0       24657038660     5205    795262  3       60      1693721366      9223372034707296257     -2147479551     60497.00000     2017-01-20 23:49:00.087 1       2       60497.00000
61121597226     61121597226     0       24657039555     5205    795262  22      0       1693721376      9223372034707292162     -2147483646     60494.00000     2017-01-20 23:49:00.090 2       2       60497.00000
61121597227     61121597227     0       24657038660     5205    795262  22      38      1693721376      9223372034707296257     -2147479551     60497.00000     2017-01-20 23:49:00.090 1       2       60497.00000
61121597265     61121597265     0       24657039558     5205    795262  2       0       1693721380      1                               1       60497.00000     2017-01-20 23:49:00.093 2       2       60497.00000
61121597266     61121597266     0       24657038660     5205    795262  2       36      1693721380      9223372034707296257     -2147479551     60497.00000     2017-01-20 23:49:00.093 1       2       60497.00000
2017.01.23 23:40:10.786 TestTicks (ALRS-3.17,H1)        New test start.
2017.01.23 23:40:11.947 TestTicks (ALRS-3.17,H1)        Total 2000 ticks.
2017.01.23 23:40:11.947 TestTicks (ALRS-3.17,H1)        Symbol = Si-3.17 Time = 2017.01.20 23:49:00.88 last = 60497.0 flags = 88
2017.01.23 23:40:11.947 TestTicks (ALRS-3.17,H1)        Symbol = Si-3.17 Time = 2017.01.20 23:49:00.90 last = 60497.0 flags = 88
2017.01.23 23:40:11.947 TestTicks (ALRS-3.17,H1)        Symbol = Si-3.17 Time = 2017.01.20 23:49:00.94 last = 60497.0 flags = 88
2017.01.23 23:40:11.947 TestTicks (ALRS-3.17,H1)        Symbol = Si-3.17 Time = 2017.01.20 23:49:00.109 last = 60497.0 flags = 88
2017.01.23 23:40:11.947 TestTicks (ALRS-3.17,H1)        Symbol = Si-3.17 Time = 2017.01.20 23:49:00.114 last = 60497.0 flags = 88
2017.01.23 23:40:11.947 TestTicks (ALRS-3.17,H1)        Symbol = Si-3.17 Time = 2017.01.20 23:49:00.114 last = 60497.0 flags = 88
2017.01.23 23:40:11.947 TestTicks (ALRS-3.17,H1)        Symbol = Si-3.17 Time = 2017.01.20 23:49:00.114 last = 60497.0 flags = 88
2017.01.23 23:40:11.947 TestTicks (ALRS-3.17,H1)        Symbol = Si-3.17 Time = 2017.01.20 23:49:00.114 last = 60497.0 flags = 88
2017.01.23 23:40:11.947 TestTicks (ALRS-3.17,H1)        Symbol = Si-3.17 Time = 2017.01.20 23:49:00.147 last = 60496.0 flags = 88
2017.01.23 23:40:11.947 TestTicks (ALRS-3.17,H1)        Symbol = Si-3.17 Time = 2017.01.20 23:49:00.502 last = 60496.0 flags = 88
2017.01.23 23:40:11.947 TestTicks (ALRS-3.17,H1)        Symbol = Si-3.17 Time = 2017.01.20 23:49:00.529 last = 60496.0 flags = 88
2017.01.23 23:40:11.947 TestTicks (ALRS-3.17,H1)        Symbol = Si-3.17 Time = 2017.01.20 23:49:00.581 last = 60496.0 flags = 88
2017.01.23 23:40:11.947 TestTicks (ALRS-3.17,H1)        Symbol = Si-3.17 Time = 2017.01.20 23:49:00.624 last = 60496.0 flags = 88
2017.01.23 23:40:11.947 TestTicks (ALRS-3.17,H1)        Symbol = Si-3.17 Time = 2017.01.20 23:49:00.669 last = 60498.0 flags = 56

hay compra y venta (dir - dirección de la orden 1 - COMPRA; 2 - VENTA) (acción: 0 - orden retirada; 1 - orden puesta; 2 - comercio) (amount_rest - saldo)

61121597156     61121597156     0       24657039552     5205    795262  3       0       1693721366      1                               1       60497.00000     2017-01-20 23:49:00.087 2       2       60497.00000
61121597157     61121597157     0       24657038660     5205    795262  3       60      1693721366      9223372034707296257     -2147479551     60497.00000     2017-01-20 23:49:00.087 1       2       60497.00000

Y sólo hemos vendido

2017.01.23 23:40:11.947 TestTicks (ALRS-3.17,H1)        Symbol = Si-3.17 Time = 2017.01.20 23:49:00.88 last = 60497.0 flags = 88

Tal vez esto se deba a que estas dos ofertas se fusionaron en una (su id_deal es el mismo)1693721366

Añadido

Resulta que sóloCOPY_TICKS_TRDAE funciona correctamente?

(Todas las pruebas se realizaron en Otkritie real, build 1495, 64 bits, servidor Access IV)

 

No fui perezoso y edité el archivo Exchange y resultó que por minuto en Si-3.17

Se realizaron 460 operaciones, y la prueba CopyTicks() conCOPY_TICKS_TRDAE mostró que hubo 294 operaciones

Troncos en el sótano

Archivos adjuntos:
Si_deals.zip  45 kb
 
prostotrader:

No fui perezoso y edité el archivo Exchange y resultó que por minuto en Si-3.17

Se realizaron 460 operaciones, y la prueba CopyTicks() conCOPY_TICKS_TRDAE mostró que hubo 294 operaciones

Troncos en el sótano

CopyTicks está mintiendo - ¡Urgente a SR!
 
fxsaber:
CopyTicks está mintiendo - ¡urgente a la SD!

Solicitud ya publicada#1656450

Añadido por

Sólo que creo que es la función de los ticks de la historia la que miente.

En el momento en que estaba escribiendo el indicador "indicador de todos los oficios"

Tenía incoherencias con la historia.

 

¡Oooop`s!

¡La muleta ha funcionado correctamente!

2017.01.24 10:00:00.005 Time_sync_forts (URKA-3.17,H1)  Local time sync is done. Symbol = RTS-3.17 Sync hour = 10 Sync min = 0 Sync sec = 0 Sync ms = 5
2017.01.24 10:00:02.764 trader (ED-3.17,H1) OnTradeTransaction: Сделка совершена. Билет = 51601238


¡Y el trabajo estaba hecho!

2017.01.24 10:00:02.763 Trades  'ххххх': deal #33631469 sell 1.00 ED-3.17 at 1.0761 done (based on order #51601238)


Se adjunta el código del experto.

Archivos adjuntos:
 

He añadido la limpieza diurna, pero la nocturna no funciona,

porque la puja comienza a las 19:00 y a las 19:05.

Archivos adjuntos:
 
fxsaber:
CopyTicks está mintiendo - ¡urgente al SR!
El SR escribió que la solicitud ha sido aceptada para su ejecución...
 
prostotrader:
El SR escribió que la solicitud ha sido aceptada para su ejecución...
Manténgase en contacto, por favor. @Dmitriy Skub afirmó que el historial de copytix coincide al 100% con los datos de la bolsa.