Cualquier pregunta de los recién llegados sobre MQL4 y MQL5, ayuda y discusión sobre algoritmos y códigos - página 1287
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! 2020.10.28_05:19:00 GMT+3. He traducido el indicador LeManTrend_Indicator.mq5 a la cuarta versión .mq4 . El indicador aparece en el gráfico, pero cuando intento cambiar GBPUSD,H1 a M5 timeframe, MetaTrader4 se cuelga, la CPU está sobrecargada. Tengo que cerrar MetaTrader4 y abrirlo de nuevo. No se congela cuando quito LeManTrend_Indicator.ex4 del gráfico. No entiendo qué es lo que falla en el código del indicador. ¿Quién puede darme una pista? ¿Cómo solucionarlo?
Y LeMan_BrainTrend1Sig.mq5 convertido a la cuarta versión, está en la lista de indicadores, pero no aparece nada en el gráfico. Cómo reescribir el código de este indicador para que funcione correctamente, no lo sé. Ya he escrito antes sólo sobre Asesores Expertos. Cómo comprobarlos enel probador de estrategias- lo sé. Y cuando escribo Print() de las variables en el código, queda claro lo que está mal. No sé cómo comprobar los indicadores. He escrito Print() en el código, no se guarda en ningún registro. ¿Alguien me puede aconsejar qué hacer con los indicadores para que funcionen y no ocupen espacio en el disco duro? Espero tener noticias suyas. 05:44 GMT+3.
Sí, voy a publicar los códigos de los indicadores ahora. Una cosa más. ¿Por qué he convertido los indicadores de .mq5 a .mq4? Porque mi broker tiene cuentas en rublos sólo en MetaTrader4. Y los indicadores están escritos en quinta versión. Y necesito indicadores para escribir un Asesor Experto rentable para MetaTrader4. Eso es todo. 05:53 GMT+3.
¡Hola! 2020.10.28_05:19:00 GMT+3. He traducido el indicador LeManTrend_Indicator.mq5 a la cuarta versión .mq4 . El indicador aparece en el gráfico, pero cuando intento cambiar GBPUSD,H1 a M5 timeframe, MetaTrader4 se cuelga, la CPU está sobrecargada. Tengo que cerrar MetaTrader4 y abrirlo de nuevo. No se congela cuando quito LeManTrend_Indicator.ex4 del gráfico. No entiendo qué es lo que falla en el código del indicador. ¿Quién puede darme una pista? ¿Cómo solucionarlo?
Y LeMan_BrainTrend1Sig.mq5 convertido a la cuarta versión, está en la lista de indicadores, pero no aparece nada en el gráfico. Cómo reescribir el código de este indicador para que funcione correctamente, no lo sé. Ya he escrito antes sólo sobre Asesores Expertos. Cómo comprobarlos enel probador de estrategias- lo sé. Y cuando escribo Print() de las variables en el código, queda claro lo que está mal. No sé cómo comprobar los indicadores. He escrito Print() en el código, no se guarda en ningún registro. ¿Alguien me puede aconsejar qué hacer con los indicadores para que funcionen y no ocupen espacio en el disco duro? Espero tener noticias suyas. 05:44 GMT+3.
Sí, voy a publicar los códigos de los indicadores ahora. Una cosa más. ¿Por qué he convertido los indicadores de .mq5 a .mq4? Porque mi broker tiene cuentas en rublos sólo en MetaTrader4. Y los indicadores están escritos en quinta versión. Y necesito indicadores para escribir un Asesor Experto rentable para MetaTrader4. Eso es todo. 05:53 GMT+3.
LeManTrend_Indicator.mq5- el propio indicador aquíhttps://www.mql5.com/ru/code/27570
también funciona en el 4 - pero hay que quitar la repetición (string ) antes de (err_text)
se vería así
LeManTrend_Indicator.mq5- el propio indicador aquíhttps://www.mql5.com/ru/code/27570
también funciona en el 4 - pero hay que quitar la repetición (string ) antes de (err_text)
debería ser así
cadena
BrainTrend1Sig para 4 aquí -https://www.mql5.com/ru/code/8772
Este debe contener el LeManTrend_Indicator.mq4 ya corregido para 4
BrainTrend1Sig para 4 aquí -https://www.mql5.com/ru/code/8772
Aquí tienes que añadir LeManTrend_Indicator.mq4, ya arreglado para 4
hay un error - necesitas borrar esta línea ( double const = 0; )
y todo funcionará
Eres un comediante.
¿Con quién estaba hablando?
¿A qué se debe esta situación? El mismo índice de barras. Y parece que sólo ocurre en la primera ejecución de un símbolo. O bien profundizar en la historia. Pensaba que el código de arriba sólo comprobaba las barras...
Aquí hay un buen indicadorhttps://www.mql5.com/ru/code/28364
¡¡¡¡¡¡¡Todo lo que necesita puede ser incorporado en él !!!!!!!
¡Buenas tardes!
Por favor, ayúdenme con la siguiente tarea:
Necesito ejecutar un script (Python) desde MQL4 Expert Advisor. Estoy tratando de hacerlo usando ShellExecuteW() de la siguiente manera:
Obtengo un error de acceso al archivo. El script se ejecuta pero el código no va más allá.
Estaré encantado si puedes compartir la función para ejecutar el script.
Otra pregunta: ¿cómo puedo comprobar la ejecución del script?
¡Hola! 2020.10.28_05:19:00 GMT+3. He traducido el indicador LeManTrend_Indicator.mq5 a la cuarta versión .mq4 .
Este no encaja
https://www.mql5.com/ru/code/9096
Y este no encaja.
https://www.mql5.com/ru/code/9096
Este parece ser mejor.