Errores, fallos, preguntas - página 1807

 

para que quede claro:

abrir una operación de compra

2017.02.15 15:16:39.662 Trades  '5246495': instant buy 1.00 EURUSD at 1.05572
2017.02.15 15:16:40.944 Trades  '5246495': accepted instant buy 1.00 EURUSD at 1.05572
2017.02.15 15:16:40.944 Trades  '5246495': deal #117730573 buy 1.00 EURUSD at 1.05572 done (based on order #134121208)
2017.02.15 15:16:40.944 Trades  '5246495': order #134121208 buy 1.00 / 1.00 EURUSD at 1.05572 done in 1284.090 ms

el experto lo multiplica


2017.02.15 15:16:41.720 Trades  '5246495': failed instant buy 1.00 EURUSD at 1.05574 (deviation: 16) [No prices]
2017.02.15 15:16:42.735 Trades  '5246495': failed instant buy 1.00 EURUSD at 1.05575 (deviation: 16) [No prices]
2017.02.15 15:16:43.749 Trades  '5246495': failed instant buy 1.00 EURUSD at 1.05575 (deviation: 16) [No prices]
2017.02.15 15:16:44.760 Trades  '5246495': failed instant buy 1.00 EURUSD at 1.05577 (deviation: 16) [No prices]
2017.02.15 15:16:45.774 Trades  '5246495': failed instant buy 1.00 EURUSD at 1.05577 (deviation: 16) [No prices]
2017.02.15 15:16:46.789 Trades  '5246495': failed instant buy 1.00 EURUSD at 1.05575 (deviation: 16) [No prices]
2017.02.15 15:16:47.804 Trades  '5246495': failed instant buy 1.00 EURUSD at 1.05577 (deviation: 16) [No prices]
2017.02.15 15:16:48.818 Trades  '5246495': failed instant buy 1.00 EURUSD at 1.05577 (deviation: 16) [No prices]
2017.02.15 15:16:49.831 Trades  '5246495': instant buy 1.00 EURUSD at 1.05577 (deviation: 18)
2017.02.15 15:16:49.891 Trades  '5246495': accepted instant buy 1.00 EURUSD at 1.05577 (deviation: 18)
2017.02.15 15:16:49.892 Trades  '5246495': order #134121233 buy 1.00 / 1.00 EURUSD at 1.05577 done in 61.372 ms
2017.02.15 15:16:49.893 Trades  '5246495': deal #117730596 buy 1.00 EURUSD at 1.05577 done (based on order #134121233)
 
Vladislav Andruschenko:

para que quede claro:

OK, añadido al BOD.

Los errores comerciales son más alarmantes que cualquier otra cosa. Actualizar a 1531+ para que los registros sean más completos.

 
2017.02.16 08:53:03.158 Network '2250': disconnected from FXOpen-MT5
2017.02.16 08:53:03.285 MQL5    wrong type, loading of Test failed
2017.02.16 08:53:03.813 Network '5122740': authorized on MetaQuotes-Demo through Access Point EU Amsterdam (ping: 50.93 ms)

¿Qué es?

No hay nada que se ejecute en el único gráfico. Este mensaje aparece cada vez que se cambia de cuenta.

 

@Slawa, ¿la sincronización se extiende a TimeCurrent()? Ahora me encuentro con la siguiente imagen: anoche a las 22.45 horas apagué el terminal. Lo encendí esta mañana. El mercado sigue cerrado. FORTALEZAS. Los ticks llegan antes de la apertura del mercado a las 10:00 hora de Moscú. La información de cada tick se procesa en OnBookEvent(). El problema es que a pesar de la comprobación de sincronización redundante:

bool GetRatesTotal( int& rates_total )                          // Количество просчитанных баров (out)
        {
         //--- Проверка переданного значения
         if( rates_total > 0 )                                                          // Если передано корректное значение
                 return( true );                                                                        // Возвращаем истину
         //--- Проверка синхронизации
         bool isSync = SymbolIsSynchronized( _Symbol );
         bool sync = (bool)SeriesInfoInteger( _Symbol, _Period, SERIES_SYNCHRONIZED );
         //---
    if( !isSync || !sync )                                                              // Если история не синхронизирована
        {
         Print( __FUNCTION__,": ОШИБКА РАССИНХРОНИЗАЦИИ! isSync = ",isSync,", sync = ",sync,", rt = ",rates_total );
         return( false );                                                                       // Выходим с ошибкой
        }
    //--- Определим число просчитанных баров
         rates_total = Bars( _Symbol, _Period );                // Определяем число баров
         if( rates_total <= 0 )                                                         // Если синхронизация не произведена
                {
                 Print( __FUNCTION__,": ОШИБКА #",GetLastError(),": Синхронизация по Bars() не пройдена!" );
                 return( false );                                                                       // Возвращаем ложь
                }
         else                                                                                                   // Если значение получено
                 return( true );                                                                        // Возвращаем истину
        }

seguido de una solicitud de hora y de SYMBOL_SESSION_actual... valor - HORA NO CORRECTA = HORA DE CIERRE DE LA TERMINAL, es decir, ¡22:45! En consecuencia, la entrada al archivo está torcida y las lecturas son confusas. Compruebe la sincronización de la función TimeCurrent().

Añadido:

¡El valor del argumento rates_total que se pasa a la función es siempre = 0! Es decir, ¡se comprueba la sincronización!

 
Alexey Kozitsyn:

LA HORA NO ES CORRECTA = HORA DE CIERRE DE LA TERMINAL, es decir, 22:45

Foro sobre trading, sistemas de trading automatizados y pruebas de estrategias de trading

Bichos, errores, preguntas

fxsaber, 2017.02.14 15:40

Si dejas sólo los símbolos MOEX en Metaquotes-Demo en el Market Watch, TimeCurrent se retrasará 15 minutos. En cuanto se añade un solo símbolo FOREX, TimeCurrent salta hacia delante 15 minutos de una vez.
 
fxsaber:

Esta es una apertura real, es poco probable que los personajes de FOREX puedan ser añadidos allí... ¡Pero si es así, TimeCurrent() debe estar realmente torcido ahora, e incluso no puede ser sincronizado por todos los medios disponibles!

De nuevo, si añadimos SYMBOL_SESSION_... se añadirían a su hora de llegada real, no tendríamos tanto problema. Y no tendríamos que hacer muletillas con TimeCurrent().

 
fxsaber:

Por cierto, el caso que describes es bastante lógico, porque el retraso de la cotización de la bolsa es de 15 minutos. No hay retraso de forex, por lo que el tiempo se ajusta según forex. Pero, por supuesto, esto es un error. Es decir, TimeCurrent() "no navega" entre diferentes mercados.

También es posible que TimeCurrent() provenga del proveedor de liquidez. Y la liquidez se recoge de diferentes lugares.

 
Alexey Kozitsyn:

Por cierto, el caso que describes es bastante lógico, porque el retraso de la cotización de la bolsa es de 15 minutos. No hay retraso de forex, por lo que el tiempo se ajusta según forex. Pero, por supuesto, esto es un error. Es decir, TimeCurrent() "no navega" entre diferentes mercados.

También es posible que TimeCurrent() provenga del proveedor de liquidez. Y la liquidez se recoge de diferentes lugares.

_TimeCurrent = MathMax(SymbolInfoInteger(Symbol1, SYMBOL_TIME), SymbolInfoInteger(Symbol2, SYMBOL_TIME), ...);
 
fxsaber:
_TimeCurrent = MathMax(SymbolInfoInteger(Symbol1, SYMBOL_TIME), SymbolInfoInteger(Symbol2, SYMBOL_TIME), ...);
Gracias por la idea, deberíamos comparar SYMBOL_TIME y TimeCurrent(). Tal vez haya diferencias...
 
Alexey Kozitsyn:
Gracias por la idea, habrá que comparar SYMBOL_TIME y TimeCurrent(). Quizá haya diferencias...

Ooh... No pensé que fuera a suceder tan rápido:

2017.02.16 12:47:37.575 GetTimeCurrent: ВНИМАНИЕ! timeCurrent < timeSymbol (2017.02.16 10:47:35 2017.02.16 10:47:36)
2017.02.16 12:47:37.575 GetTimeCurrent: ВНИМАНИЕ! timeCurrent < timeSymbol (2017.02.16 10:47:35 2017.02.16 10:47:36)
2017.02.16 12:47:37.575 GetTimeCurrent: ВНИМАНИЕ! timeCurrent < timeSymbol (2017.02.16 10:47:35 2017.02.16 10:47:36)
2017.02.16 12:47:37.575 GetTimeCurrent: ВНИМАНИЕ! timeCurrent < timeSymbol (2017.02.16 10:47:35 2017.02.16 10:47:36)
2017.02.16 12:47:37.575 GetTimeCurrent: ВНИМАНИЕ! timeCurrent < timeSymbol (2017.02.16 10:47:35 2017.02.16 10:47:36)
2017.02.16 12:47:37.575 GetTimeCurrent: ВНИМАНИЕ! timeCurrent < timeSymbol (2017.02.16 10:47:35 2017.02.16 10:47:36)
2017.02.16 12:47:52.889 GetTimeCurrent: ВНИМАНИЕ! timeCurrent < timeSymbol (2017.02.16 10:47:51 2017.02.16 10:47:52)
2017.02.16 12:47:52.890 GetTimeCurrent: ВНИМАНИЕ! timeCurrent < timeSymbol (2017.02.16 10:47:51 2017.02.16 10:47:52)
2017.02.16 12:47:52.890 GetTimeCurrent: ВНИМАНИЕ! timeCurrent < timeSymbol (2017.02.16 10:47:51 2017.02.16 10:47:52)
2017.02.16 12:47:52.890 GetTimeCurrent: ВНИМАНИЕ! timeCurrent < timeSymbol (2017.02.16 10:47:51 2017.02.16 10:47:52)
2017.02.16 12:47:52.890 GetTimeCurrent: ВНИМАНИЕ! timeCurrent < timeSymbol (2017.02.16 10:47:51 2017.02.16 10:47:52)
2017.02.16 12:47:52.890 GetTimeCurrent: ВНИМАНИЕ! timeCurrent < timeSymbol (2017.02.16 10:47:51 2017.02.16 10:47:52)
2017.02.16 12:48:06.890 GetTimeCurrent: ВНИМАНИЕ! timeCurrent < timeSymbol (2017.02.16 10:48:05 2017.02.16 10:48:06)
2017.02.16 12:48:06.890 GetTimeCurrent: ВНИМАНИЕ! timeCurrent < timeSymbol (2017.02.16 10:48:05 2017.02.16 10:48:06)
2017.02.16 12:48:06.890 GetTimeCurrent: ВНИМАНИЕ! timeCurrent < timeSymbol (2017.02.16 10:48:05 2017.02.16 10:48:06)
2017.02.16 12:48:06.890 GetTimeCurrent: ВНИМАНИЕ! timeCurrent < timeSymbol (2017.02.16 10:48:05 2017.02.16 10:48:06)
2017.02.16 12:48:06.891 GetTimeCurrent: ВНИМАНИЕ! timeCurrent < timeSymbol (2017.02.16 10:48:05 2017.02.16 10:48:06)
2017.02.16 12:48:06.891 GetTimeCurrent: ВНИМАНИЕ! timeCurrent < timeSymbol (2017.02.16 10:48:05 2017.02.16 10:48:06)

Cuando el terminal se enciende, se apaga. ¡Un error obvio de TimeCurrent()!