Vela abierta de tiempo específico
Hola chicos..
Estoy intentando codificar un interior para mostrar Abierto del día actual en la ventana y quiero ver que cambie cuando cambie el día. Escribí esto en el interior (y todavía no estoy seguro de que sea correcto
https://www.forosforex.com/attachments/1529227805.png), pero parece que no cambia cuando cambia el día. ¿Puede alguien ayudarme a resolver este problema? Gracias.
Código insertado #property indior_chart_window extern datetime FirstTime = D'1: 00 '; doble DayOpen = iOpen (NULL, 0, iBarShift (NULL, 0, FirstTime)); int init () {ObjectCreate (OP, OBJ_LABEL, 0, 0, 0, 0, 0); ObjectSet (OP, OBJPROP_CORNER, 0); ObjectSet (OP, OBJPROP_YDISTANCE, 15); ObjectSet (OP, OBJPROP_XDISTANCE, 200); ObjectSetText (OP,, 5, Arial, CLR_NONE); retorno (0); } int deinit () {ObjectDelete (OP); retorno (0); } int start () {ObjectCreate (O, OBJ_LABEL, 0, 0, 0, 0, 0); ObjectSet (O, OBJPROP_CORNER, 0); ObjectSet (O, OBJPROP_YDISTANCE, 20); ObjectSet (O, OBJPROP_XDISTANCE, 5); ObjectSetText (O, precio abierto del día =, 12, Arial, clrAqua); ObjectSetText (OP, DoubleToStr (DayOpen, 4), 20, Arial Bold, clrRed); retorno (0); }