Cualquier pregunta de los recién llegados sobre MQL4 y MQL5, ayuda y discusión sobre algoritmos y códigos - página 1493
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
Por favor, aconseja mql5, quiero recoger estadísticas del tamaño medio de, por ejemplo, una vela de 12 horas, hoy por ejemplo es viernes, y quiero tomar los datos del jueves, miércoles, martes y lunes para los cálculos.
Creo que no podemos prescindir del bucle. Pero el bucle puede construirse de diferentes maneras. Preste atención a CopyRates()
Establecemos PERIOD_H1, start_time - fecha 12:00 y count 1. En la siguiente iteración, añadimos a esta fecha o la restamos (dependiendo de cómo esté organizado el bucle) PeriodSeconds(PERIOD_D1)
Por favor, dígame cómo enumerar los parámetros del indicador en iCustom.
Tengo un indicador estocástico con alergia, da una señal al cruzar las líneas móviles. Por favor, díganme cómo hacer que dé una señal cruzando los resbalones sólo cuando esté por encima o por debajo de la zona de sobrecompra o sobreventa.
Buenos días a todos.
Me pueden decir cómo codificar correctamente la siguiente condición utilizando no recuerdo qué función matemática.
if (Bid - Low[1]>=0.0030 && Bid - Low[1]<0.0035) {action;}
Sé que hay una función matemática que se puede utilizar en la condición anterior sin el signo &&. Pero no recuerdo cómo se llama esta función matemática y cómo aplicarla.
Gracias por la ayuda.
Si cambias una variable global en una función, ésta cambiará. Pero esta es una forma peligrosa de programar, porque en el código, al crecer, habrá asignaciones no evidentes en diferentes funciones del programa.
Hay una función principal en el programa, ahí es donde se hace la asignación de la variable global. Y en otras funciones, hazlo así:
O así:
cómo codificar correctamente la siguiente condición utilizando no recuerdo qué función matemática
No conozco una forma mejor de establecer la condición
Buenos días a todos.
Me pueden decir cómo codificar correctamente la siguiente condición utilizando no recuerdo qué función matemática.
if (Bid - Low[1]>=0.0030 && Bid - Low[1]<0.0035) {action;}
Sé que hay una función matemática que se puede utilizar en la condición anterior sin el signo &&. Pero no recuerdo cómo se llama esta función matemática y cómo aplicarla.
Gracias por la ayuda.
Sin y
Muchas gracias por el consejo.
Este es el código
El programa no lee Pr como 1,60854 aunquePrint( ) muestra el valor de Pr como 1,60854. Como resultado, el programa abre la segunda orden, pero no debería hacerlo
.
Y si ponemos el número 1,60854 en lugar de la variable Pr , el programa lo lee y no abre la segunda orden.
PREGUNTA Qué cambios debemos hacer en el código para que el programa lea el Pr y no abra la segunda orden.
Gracias por su ayuda.