Errores, fallos, preguntas - página 2133
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
Hola. Por favor, ayúdenme a encontrar la causa de este error. Estoy transfiriendo un indicador de mql4 a mql5. Estoy utilizando el siguiente "shell" para las funciones de iHigh:
Como resultado, obtengo el error 4301: "Símbolo desconocido", a pesar de que se pasa una cadena devuelta por la función Symbol() como parámetro de símbolo. Este es un fragmento de código de la función que llama a iHigh
¿Quién es "yo"? ¿Cuál es su valor antes del bucle?
¿Está haciendo la llamada ResetLastError antes deiHigh?
¿Quién es la "i"? ¿Cuál es su valor antes del bucle?
¿Hace una llamada a ResetLastError antes deiHigh?
El valor de i se repite en la función OnCalculate
No hice la llamada ResetLastError, ahora lo hice - el código de error es el mismo. Utilizo arrays low[i], high[i] etc. en la función OnCalculate, y iHigh, iLow etc. en funciones externas.
El valor de i se repite en la función OnCalculate
No llamé a ResetLastError, ahora lo hice - el código de error es el mismo. Utilizo arrays low[i], high[i] etc. en la función OnCalculate y iHigh, iLow etc. en funciones externas.
Proporcione el código MQL5 que se puede ejecutar y describa las condiciones en las que se produce el error.
Proporcione el código MQL5 que se puede ejecutar y describa las condiciones en las que se produce el error.
Parece que tengo algo mal en mi terminal. Corrí el mismo código en el netbook en otro mt5, la misma cuenta de demostración - no hay error.
Aquí está el código en sí:
Parece que tengo algo mal en mi terminal. Corrí el mismo código en el netbook en otro mt5, la misma cuenta de demostración - no hay error.
Aquí está el código en sí:
Nota: Estás escribiendo en la sección principal del foro de MQL5, aquí es donde se habla de MQL5. Para MQL4 hay una sección especial:MQL4 y MetaTrader 4. Por favor, publique su código en la sección correspondiente. Es aún mejor cuando el editor respeta a los usuarios y publica inmediatamente el código en la cabecera donde se puede ver el tipo de lenguaje.
¡Hola!
No puedo cambiar el marco temporal de un objeto gráfico, no sé si el terminal se está equivocando o yo.
Este es el código de comprobación
El resultado es incorrecto
Pero en cuanto se comenta la línea seleccionada, el indicador empieza a funcionar correctamente
Por alguna razón, ChartGetInteger en OnInit afecta a las propiedades del objeto gráfico.