High / low / close – Yesterday, Premarket
Forums › ProRealTime English forum › ProBuilder support › High / low / close – Yesterday, Premarket
- This topic has 6 replies, 3 voices, and was last updated 2 years ago by robertogozzi.
Viewing 7 posts - 1 through 7 (of 7 total)
-
-
09/20/2022 at 6:48 PM #20109909/21/2022 at 6:02 AM #201118
This thread should help to get you going – does not include premarket window. you will have to adjust the times for your region.
https://www.prorealcode.com/topic/plot-yesterdays-high-low-and-close/09/21/2022 at 6:50 PM #201163There you go:
1234567891011121314151617181920212223242526272829303132333435363738DEFPARAM DrawOnLastBarOnly = trueONCE PrevHH = highONCE PrevLL = lowONCE PrecCL = closeONCE HH = highONCE LL = lowONCE CL = closeONCE pmHH = highONCE pmLL = lowIf OpenTime = 000000 OR (OpenTime >= 000000 AND OpenTime < OpenTime[1])THENPrevHH = HHPrevLL = LLPrevCL = close[1]LL = lowHH = highCL = closeBarID = BarIndexENDIFIf OpenTime = 040000 OR (OpenTime >= 040000 AND OpenTime < OpenTime[1])THENpmLL = lowpmHH = highpmBarID= BarIndexENDIFIF (OpenTime >= 040000) AND (OpenTime <= 093000) THENpmLL = min(pmLL,low)pmHH = max(pmHH,high)ENDIFHH = max(HH,high)LL = min(LL,low)CL = close//DrawSegment(BarID,PrevHH,BarIndex,PrevHH) coloured(0,128,0,155) style(line,2) //GreenDrawSegment(BarID,PrevLL,BarIndex,PrevLL) coloured(0,0,255,255) style(line,2) //BlueDrawSegment(BarID,PrevCL,BarIndex,PrevCL) coloured(255,0,0,255) style(line,2) //Red//DrawSegment(pmBarID,pmHH,BarIndex,pmHH) coloured(0,178,238,255) style(dottedline,3) //CyanDrawSegment(pmBarID,pmLL,BarIndex,pmLL) coloured(0,178,238,255) style(dottedline,3) //CyanRETURNpremarket data are plotted using cyan dotted bolder lines.
1 user thanked author for this post.
09/21/2022 at 8:14 PM #20117009/22/2022 at 5:18 PM #20120909/23/2022 at 3:56 PM #20124610/03/2022 at 1:18 AM #201796There you go:
12345678910111213141516171819202122232425262728293031323334353637383940DEFPARAM DrawOnLastBarOnly = trueONCE PrevHH = highONCE PrevLL = lowONCE PrecCL = closeONCE HH = highONCE LL = lowONCE CL = closeONCE pmHH = highONCE pmLL = lowIf OpenTime = 083000 OR (OpenTime >= 083000 AND OpenTime < OpenTime[1])THENPrevHH = HHPrevLL = LLPrevCL = CL//close[1]LL = lowHH = highCL = closeBarID = BarIndexENDIFIf OpenTime = 040000 OR (OpenTime >= 040000 AND OpenTime < OpenTime[1])THENpmLL = lowpmHH = highpmBarID= BarIndexENDIFIF (OpenTime >= 040000) AND (OpenTime <= 093000) THENpmLL = min(pmLL,low)pmHH = max(pmHH,high)ENDIFIF (OpenTime >= 083000) AND (OpenTime <= 150000) THENHH = max(HH,high)LL = min(LL,low)CL = closeENDIF//DrawSegment(BarID,PrevHH,BarIndex,PrevHH) coloured(0,128,0,155) style(line,2) //GreenDrawSegment(BarID,PrevLL,BarIndex,PrevLL) coloured(0,0,255,255) style(line,2) //BlueDrawSegment(BarID,PrevCL,BarIndex,PrevCL) coloured(255,0,0,255) style(line,2) //Red//DrawSegment(pmBarID,pmHH,BarIndex,pmHH) coloured(0,178,238,255) style(dottedline,3) //CyanDrawSegment(pmBarID,pmLL,BarIndex,pmLL) coloured(0,178,238,255) style(dottedline,3) //CyanRETURN1 user thanked author for this post.
-
AuthorPosts
Viewing 7 posts - 1 through 7 (of 7 total)
Find exclusive trading pro-tools on
Similar topics: