colorbetween only for a certain time
Forums › ProRealTime English forum › ProBuilder support › colorbetween only for a certain time
- This topic has 3 replies, 2 voices, and was last updated 2 hours ago by
theunpredictable.
-
-
12/19/2025 at 2:33 PM #254664
Hi, does anyone have any idea how I can use the “colorbetween” command to highlight a specific time period?
I’ve already tried using time >080000 and time <130000, but prorealcode continues to draw up to the current candle.
I was able to fill the area with drawrectangle and it worked, but I can’t see any wicks or fuses in the colored area.
Thanks in advance.
Best regards,
Björn123456789101112131415161718192021222324252627// Linien nur von 08:00 bis 13:00 anzeigenIF Time >= 080000 AND Time <= 130000 THEN// ===== OBERHALB DES OPENS =====DRAWSEGMENT(barindex, up65, barindex + 1, up65) COLOURED(255,0,0)style(line,2)DRAWSEGMENT(barindex, up75, barindex + 1, up75) COLOURED(255,0,0)style(dottedline,2)DRAWSEGMENT(barindex, up115, barindex + 1, up115) COLOURED(255,0,0)style(line,2)DRAWSEGMENT(barindex, up125, barindex + 1, up125) COLOURED(255,0,0)style(dottedline, 2)DRAWSEGMENT(barindex, up160, barindex + 1, up160) COLOURED(0,0,0)style(line,2)//DRAWRECTANGLE(barindex, down65, barindex+1, down75) fillcolor(200,200,255,230) coloured(200,200,255,230)//DRAWRECTANGLE(barindex, down115, barindex+1, down125) fillcolor(200,200,255,230) coloured(200,200,255,230)//DRAWRECTANGLE(barindex, up65, barindex+1, up75) fillcolor(200,200,255,230) coloured(200,200,255,230)//DRAWRECTANGLE(barindex, up115, barindex+1, up125) fillcolor(200,200,255,230) coloured(200,200,255,230)//colorbetween(down65, down75,200,200,255,230)// ===== UNTERHALB DES OPENS =====DRAWSEGMENT(barindex, down65, barindex + 1, down65) COLOURED(0,0,255)style(line,2)DRAWSEGMENT(barindex, down75, barindex + 1, down75) COLOURED(0,0,255)style(dottedline,2)DRAWSEGMENT(barindex, down115, barindex + 1, down115) COLOURED(0,0,255)style(line,2)DRAWSEGMENT(barindex, down125, barindex + 1, down125) COLOURED(0,0,255)style(dottedline,2)DRAWSEGMENT(barindex, down160, barindex + 1, down160) COLOURED(0,0,0)style(line,2)ENDIF12/19/2025 at 5:30 PM #254672I can’t see any reason why it should plot segments outside your time range. I tested it from 110000 to 140000 and it only plots in that narrower range.
1 user thanked author for this post.
12/19/2025 at 5:31 PM #254674I moved your post from the German forum.
12/19/2025 at 5:52 PM #254676The drawing ends after the specified time with the rectangles. When I use the colorbetween command, it draws up to the current candle, even beyond the defined time.
-
AuthorPosts
Find exclusive trading pro-tools on