Por aclarar mejor mi problema: en MT5 yo quiero que se muestren todos los objetos que se han ido creando, igual que sucede en MT4, pero en MT5 el objeto desaparece cuando se crea el siguiente, con lo que sólo se ve el último objeto en la gráfica. En la lista de objetos sólo figura el último. Gracias.
Miguel Antonio Rojas Martinez:
Coloca el codigo en donde muestres como estas usando o llamando la funcion "Dibujar_Vela"
Saludos!!!
Hola Miguel Antonio,
La llamada a la función "Dibujar_Vela" está en OnTick de la siguiente manera:
Dibujar_Vela(2);
El código en OnTick en este EA es muy extenso pero no aporta nada interesante sobre lo que estamos hablando. La función Dibujar_Vela funciona, lo que no sé es porque en MT5 los textos dibujados no permanecen, sino que desaparecen. En MT4 sí que permanecen.
//Dibujar las señales weakness correspondiente for(int i=0; i<ArraySize(seniales_detected_w); i++) { //TextCreat crea el objeto de texto y lo modifica //0 significa la grafica actual //StringConcatenate(Time[ind],"w",seniales_detected_w[i]) es el nombre del objeto //Time[ind es para indicar donde se posiciona eje de tiempo, //LOw[]-.. ubicacion con eje de precio //seniales_detected_w[i] será el texto a insertar en el objeto StringConcatenate(var_1,iTime(NULL,PERIOD_CURRENT,ind); TextCreate(0,var_1," w ",seniales_detected_w[i]),0,iTime(NULL,PERIOD_CURRENT,ind),iLow(NULL,PERIOD_CURRENT,ind)-(2*atr[0])-(i*atr[0]),seniales_detected_w[i],"Arial",10,255,90); }
Prueba haciendo este pequeño cambio
Saludos!!!!
Miguel Angel eres un crack!! muchas gracias... siguiendo tu consejo he solucionado el problema!!
Miguel Antonio muchas gracias... sabes mucho!!
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
Hola a todos, espero alguien me pueda resolver esta duda. Gracias de antemano.
Mi EA dibuja un texto en la gráfica, pero sólo se visualiza el último, los anterior
es desaparecen de la gráfica. Esto funciona bien con la programación en mql4, pero la recodificar a mql5, esta parte de código parece que debería funcionar igual pero tengo este problema. Adjunto código y una fotografía de la gráfica, donde se ve junto al cursor el objeto dibujado (EF) pero no ninguno otro anterior.