Muy buenas compañero.
¿Pusiste en el OnInit() la activación de la recepción del evento Object Delete??:
ChartSetInteger(0,CHART_EVENT_OBJECT_DELETE,true);
Un saludo.
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!
Tengo un problema, resulta que necesito reemplazar una linea si es que se la borra manualmente. Entonces lo que se me ocurrió fue usar OnChartEvent para reponer la linea borrada. Por lo tanto tengo el siguiente código:
El problema es que cuando intento obtener todos los datos de la linea borrada (color, time1, time2, price1, price2 y style) me devuelve todo 0, porque claro, la linea se borró y no puede obtener esos datos. Entonces quería saber si hay alguna manera de obtener esos datos o alguna otra forma de "reponer" la linea borrada manualmente (sin tener que preguntar en cada tick si existe la linea)
Muchas Gracias.