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
Yo, en cambio, lo saqué de un montón de código:
Una pregunta: ¿por qué los resbalones? Y el 10 (número de repeticiones) debería trasladarse a las variables globales.
¿Qué te parece este?
Hay diferentes resbalones. Los que están en el bucle son... Cuando tienes a una chica sentada, tienes que repetirlo diez veces y esperar a que se pinte los labios. Cuando una chica está sentada, tiene que repetirlo diez veces y esperar hasta que se maquille. Y a veces el servidor se ralentiza. Todo esto es para la "DC real".
Se desliza después de PlaySound, para que otros sonidos no le hagan sombra, PlaySound interrumpe el sonido del anterior.
Lasvariables globales están inteligentemente ponderadas por el terminal. Y no es necesario, el algoritmo externo debería funcionar normalmente con las órdenes que no están cerradas.
Las variables globales están inteligentemente ponderadas por el terminal.
Ah, se me olvidaba -- RefreshRates al principio del bucle después de capturar el contexto, entonces no tendrás que jugar con Ask y Bid. Y también otros valores.
RefreshRates no está ahí para nada más. Así es como intenté tratar las situaciones en las que OrderClose devuelve false, pero la orden realmente se cierra. Después de la pausa y RefreshRates viene OrderSelect(). No sé cómo está ahí, pero parece que funciona.
Preguntar y ofertar son una auténtica maravilla, a veces hay que normalizarlas :)
---
Lo de las diez repeticiones y para qué en las variables globales, no lo entiendo. Son diez, con margen suficiente. ¿Es externo?
¿Y si el pedido se cierra en un minuto? No se puede superar eso con un código. Se trata de un fallo de comunicación del terminal.
gip:
No entiendo lo de las diez repeticiones y para qué en las variables globales.
Simplemente reduce el número de fallos por un factor de dos. Por supuesto, no todas las situaciones se manejan exactamente en este bloque. Si una orden se cierra durante un minuto, el programa tiene que esperar todo ese tiempo. Estas esperas, aunque se corten, retrasan el bucle y al final todo funciona como debería.
---
> Para evitar los números mágicos y el ajuste fácil.
¿Ajustar este diez? Sí es con tanto margen, que es más fácil cambiar el DC :) Y por el bien de megalot, si es así tuvo que, y puede estar en el código para corregir.
Hay un consejero. Tenemos que hacer que parezca decente.
Estas son las funciones del mismo. Hay una manera de hacer que parezca decenteHe añadido dos funciones para simplificar el trabajo
Uno comprueba el tipo de orden y el segundo busca la última orden abierta
Parte de las funciones del autor reelaboradas