Daily Period Separator/Session Break
Forums › ProRealTime English forum › ProBuilder support › Daily Period Separator/Session Break
- This topic has 5 replies, 2 voices, and was last updated 1 year ago by robertogozzi.
Viewing 6 posts - 1 through 6 (of 6 total)
-
-
04/12/2020 at 3:03 AM #125746
I am looking for a way to draw a vertical line
at the beginning of each day when the new daily candle begins.
The line would need to be visible on the lower time frames
I think mt4 calls these period separators
and tradingview calls them session breaks09/24/2020 at 6:13 PM #145269This will draw a vertical line each new day, but it’s not visible on lower TF’s (only PRT’s objects can):
1234IF (OpenTime = 000000) OR (OpenTime < OpenTime[1]) THENDRAWVLINE(BarIndex) coloured(0,0,255,255) //BlueENDIFRETURN08/30/2022 at 6:17 PM #19990608/30/2022 at 6:34 PM #199909This can be used for all TFs lower then weekly:
1234IF OpenDayOfWeek < OpenDayOfWeek[1] THENDRAWVLINE(BarIndex) coloured(0,0,255,255) //BlueENDIFRETURN06/30/2023 at 8:18 PM #21710107/01/2023 at 6:23 PM #217133There you go:
1234567891011121314151617181920212223ONCE Offset = lowest[500](low)IF OpenMonth <> OpenMonth[1] THENOffset = lowest[500](low)ENDIFIF (OpenTime = 090000) OR ((OpenTime > 090000) AND (OpenTime[1] < 090000)) THENDRAWVLINE(BarIndex) coloured("Blue",255)IF OpenDayOfWeek = 0 THENDrawText("Sunday",BarIndex + 9,Offset,Dialog,Bold,10) coloured("Green",255)ELSIF OpenDayOfWeek = 1 THENDrawText("Monday",BarIndex + 9,Offset,Dialog,Bold,10) coloured("Green",255)ELSIF OpenDayOfWeek = 2 THENDrawText("Tuesday",BarIndex + 9,Offset,Dialog,Bold,10) coloured("Green",255)ELSIF OpenDayOfWeek = 3 THENDrawText("Wednesday",BarIndex + 9,Offset,Dialog,Bold,10) coloured("Green",255)ELSIF OpenDayOfWeek = 4 THENDrawText("Thursday",BarIndex + 9,Offset,Dialog,Bold,10) coloured("Green",255)ELSIF OpenDayOfWeek = 5 THENDrawText("Friday",BarIndex + 9,Offset,Dialog,Bold,10) coloured("Green",255)ELSIF OpenDayOfWeek = 6 THENDrawText("Saturday",BarIndex + 9,Offset,Dialog,Bold,10) coloured("Green",255)ENDIFENDIFRETURN1 user thanked author for this post.
-
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)
Find exclusive trading pro-tools on
Similar topics: