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
double perceptron()
{
double w1 = x1 - 100;
double w2 = x2 - 100;
double w3 = x3 - 100;
double w4 = x4 - 100;
double a1 = iCustom(NULL,0, "Custom CCI", 0);
double a2 = iCustom(NULL,0, "Custom CCI", 7)
double a3 = iCustom(NULL,0, "Custom CCI", 14);//esto es CCI
double a4=iMA(NULL,0,21,0,0);//esto es Force Index
return(w1 * a1 + w2 * a2 + w3 * a3 + w4 * a4);
}
Hola, ¿alguien puede decirme si he llamado correctamente a los indicadores de mi EA?
double perceptron()
{
double w1 = x1 - 100;
double w2 = x2 - 100;
double w3 = x3 - 100;
double w4 = x4 - 100;
double a1 = iCustom(NULL,0, "Custom CCI", 0);
double a2 = iCustom(NULL,0, "Custom CCI", 7)
double a3 = iCustom(NULL,0, "Custom CCI", 14);//esto es CCI
double a4=iMA(NULL,0,21,0,0);//esto es Force Index
return(w1 * a1 + w2 * a2 + w3 * a3 + w4 * a4);
}
no.
iCustom, como cualquier otra función de llamada a un indicador, devuelve el mango del indicador. Lee la documentación.
Gracias. ¿¡Entonces así!? double a2 = iCCI(NULL,0,7, 0);
double a4=iForce(NULL,0,21,0,0);
El compilador acepta también la variante anterior.
Vea un ejemplo de nuestro indicador Alligator personalizado https://www.mql5.com/en/code/9
Allí:
Gracias. ¿¡Entonces así!? double a2 = iCCI(NULL,0,7, 0);
double a4=iForce(NULL,0,21,0,0);
El compilador también se conformará con la variante anterior.
El compilador está bien. Tengo un fragmento de código de este tipo al portar uno de los indukes de 4 compiladores:
Se veía así en la 4:
No logré traducir línea por línea porque iMAOnArray está ausente en la 5, y no quiero usar el include de la beta. Bueno, al principio transferí 2*iMa.... no pude entender por qué la salida resulta ser una basura. Me estaba enfadando. Estaba a punto de escribir en el foro. Entonces me di cuenta: mi hábito se ha impuesto. El compilador lo acepta porque el manejador devuelto en 5 tiene tipo de datos Int (un número, de hecho) y puede ser multiplicado por 2. Pero la manija de salida es una pregunta y no funcionará así
Empiezo a intentar migrar el sistema a 5 y enseguida me meto en problemas
Compila con 0 errores, pero el script no funciona :-(Empiezo a probar una transferencia de sistema a un cinco y es un enganche instantáneo
Compila con 0 errores, pero el script no funciona :-(
¿Qué quiere decir con "guión"? A juzgar por las funciones del código, ha publicado código EA. Mira la transición con MQL4
A qué se refiere con el nombre de "guión". A juzgar por las funciones del código, ha publicado código EA. Mira la transición con MQL4
Sí, es un EA, al pie de la letra, por supuesto. Necesito obtener una respuesta del servidor usando wininet.dll
Sí, exactamente un asesor, al pie de la letra, por supuesto. Necesito obtener una respuesta del servidor usando wininet.dllIntente utilizar las versiones Unicode de estas funciones. MQL5 utiliza la codificación Unicode.
Intente utilizar las versiones Unicode de estas funciones. MQL5 utiliza Unicode.
El caso es que cuando lo compilo durante la depuración me devuelve al editor MQL sin dar siquiera un error. Y cuando lo sacas al gráfico, ni siquiera aparece en él. Es decir, ni depurando ni lanzando el EA da errores en ningún sitio