Forums › ProRealTime foro Español › Soporte ProBuilder › Vela de 1 hora y dentro las 5 de 15 minutos › Reply To: Vela de 1 hora y dentro las 5 de 15 minutos
07/25/2024 at 3:04 PM
#235785
Hola,
te refieres a algo como esto?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
if barindex>1 then if openhour<>openhour[1] then close1h=close[1] open1h=open[bar+1] high1h=highest[bar+1](high)[1] low1h=lowest[bar+1](low)[1] drawrectangle(barindex[bar[1]+1],close1h,barindex[1],open1h)coloured("blue") drawsegment(barindex[2],high1h,barindex[2],low1h)coloured("blue") bar=0 else bar=1+bar endif endif return |