Cualquier pregunta de los recién llegados sobre MQL4 y MQL5, ayuda y discusión sobre algoritmos y códigos - página 1653
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
Para un probador esto
OrderSend
lo hará e incluso funcionará en servidores rápidos, pero si no es un probador es mejor hacerlo según la documentación :)
En realidad, lo que intenté pero no pude añadir aquí: hacer que el EA espere 4 precios de apertura de vela seguidos después de que todos los indicadores ( precios de apertura de vela) coincidan:
1. El precio de apertura de la 1ª vela - (5) sobre (75) y (85) + barra MACD abierta por encima de 0- 1 de 4 confirmaciones es;
2. El precio de apertura de la 2ª vela - (5) sobre (75) y (85) + barra MACD abierta por encima de 0- 2 de 4 confirmaciones es;
3.3. El precio de apertura de la 3ª vela - (5) por encima de (75) y (85) + barra MACD abierta por encima de 0- 3 de 4 confirmaciones sí;
4. El precio de apertura de la 4ª vela - (5) por encima de (75) y (85) + barra MACD abierta por encima de 0- 4 de 4 confirmaciones sí- Abrir operación de compra en la misma vela (4ª).
La misma situación con las órdenes de venta, sólo que en la otra dirección deben abrirse los indicadores. Y hay un punto importante - si en, digamos, cualquier etapa de la 1 ª vela a la 4 ª, los indicadores cambian su posición(por ejemplo, en la 3 ª vela de apertura, la barra de MACD se abre por debajo de 0, o = 0) - entonces todo se restablece, porque las señales no se verificaron en la apertura de 4 ª vela en una fila.
Por favor, programadores experimentados, ¿qué hay que cambiar en el código para que estas condiciones funcionen? He probado muchas cosas, y no sé...
if(malw>mas1 && malw>mas2 && OrderSell)
Como dicen, no te fíes de nuestra palabra.
OrderSell
No sé qué puede haber en él, comparte la lógica de la toma de decisiones en el código.
artem artem #:
El precio de apertura de la 1ª vela - (5) sobre (75) y (85) + barra MACD abierta sobre 0 - 1 de 4 confirmaciones sí;
2 El precio de apertura de la 2ª vela - (5) sobre (75) y (85) + barra MACD abierta sobre 0- 2 de 4 confirmaciones sí;
3 El precio de apertura de la 3ª vela - (5) sobre (75) y (85) + barra MACD abierta sobre 0- 3 de 4 confirmaciones es;
4 El precio de apertura de la 4ª vela - (5) por encima de (75) y (85) + barra MACD abierta por encima de 0- 4 de 4 confirmaciones sí- Abrir operación de compra en la misma vela (4ª).
Anotar un valor con otro, ¿nada? Dividir primer bloque = solución, segundo bloque = solución, comparar bloques.
Anotar un valor con otro, ¿nada? Dividir primer bloque = solución, segundo bloque = solución, comparar bloques.
Resulta que tienes, en el código, un error lógico.
Vale, pero las variables se colapsarán si las usas así y entonces no sabrás qué son los "milagros"
Vale, pero las variables se colapsarán si las usas así y entonces no sabrás qué son los "milagros".
Si conoces otra opción, escríbela...
Puedes ayudar a la gente).