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
Código alternativo:
Código alternativo:
if(índice>0 || índice>8) devuelve (-1);
Quizás if(index < 0 || ...) ...; ?
La segunda versión del código es realmente mejor... y más bonita
--
Es cierto... cuando es más difícil mantener un código de tamaño optimizado que uno borroso.
es decir, escribir más ampliamente es a veces más fácil de mantener...
--
En SQL está al revés... optimización del código
ponerlo en una sola consulta incluso duele
lo que es interesante ...
por ejemplo, el código SQL de una consulta compleja es más difícil de leer que unas cuantas consultas SQL sucesivas
y, por extraño que parezca, el rendimiento de tres consultas simples suele ser mejor que el de una consulta compleja (aparentemente optimizada)
La lógica de los que escriben consultas SQL complejas... sufre... sólo porque...
1 - inconveniente para el mantenimiento
2-funcionamiento más lento
--
no se aplican a su código
eso es sólo por experiencia...
Aquí hay algo que me gustó mucho... Tomado del hilo de Igor Kim, su primer código:
... y su segundo:
¿Cómo es? A mí personalmente me ha gustado... :))Hizo un indicador. Pero cuando ZZCount>1 el terminal se cuelga. Parece que no hay errores.
¿Tal vez alguien encuentre la causa?
Tú también puedes ser un anciano.
¡Muchas gracias!
A veces es necesario ordenar los datos en MQL4 sin tocar los datos mismos. No hay punteros en MQL4, y tampoco hay estructuras.
He aquí un ejemplo de un script que ordena los datos por diferentes parámetros mediante la emulación de punteros. Tal vez, alguien encuentre útil este enfoque y la función de clasificación.
El resultado del trabajo: