High/Low/Close previous day with time
Forums › ProRealTime English forum › ProBuilder support › High/Low/Close previous day with time
- This topic has 33 replies, 8 voices, and was last updated 2 years ago by Tom.J.
-
-
09/17/2020 at 8:16 AM #144487
Hi guys,
Will you be so kind to make an indicator that shows:
high (blue) / low (blue) / close (yellow) of the previous day
with Monday showing the previous Friday
with time setting (for example from 09.00 – 17.35 hours)
for use in intraday charts
Thank you in advance!
09/17/2020 at 8:41 AM #144497This might be of interest to you:
09/17/2020 at 10:25 AM #144518I had already noticed this one, an impressive indicator.
The only thing missing are the time settings.
I use 24-hour charts, but I would like to see the high / low / close of the opening hours, the cashtrade business.
Can this be added?
09/17/2020 at 11:40 AM #144530Friend123456789// For Friend (Zigo)defparam drawonlastbaronly = trueif intradaybarindex >1 thenDRAWHLINE(Dhigh(1))coloured(0,125,255,255)DRAWHLINE(Dlow(1))coloured(0,125,255,255)DRAWHLINE(Dclose(1))coloured(255,255,0,255)endifreturn09/17/2020 at 12:05 PM #14453409/17/2020 at 12:51 PM #144540Try the codes from this topic: https://www.prorealcode.com/topic/highest-high-and-highest-low-of-previous-days-and-of-specific-schedules/
09/18/2020 at 3:45 PM #14468409/18/2020 at 5:06 PM #144698Try this one:
1234567891011121314151617181920212223242526ONCE FromD = 090000ONCE ToD = 160000ONCE CurC = closeONCE PrevC = closeONCE CurH = highONCE PrevH = highONCE CurL = lowONCE PrevL = lowdCond = (OpenDayOfWeek >= 1 AND OpenDayOfWeek <= 5)tCond = OpenTime >= FromD AND OpenTime <= ToDIF OpenDay <> OpenDay[1] THENIF dCond THENPrevC = CurCPrevH = CurHPrevL = CurLCurH = highCurL = lowCurC = closeENDIFENDIFIF dCond AND tCond THENCurC = closeCurL = min(CurL,low)CurH = max(CurH,high)ENDIFRETURN PrevC coloured(238,238,0,255) AS "close",PrevH coloured(0,0,255,255) AS "high",PrevL coloured(0,0,255,255) AS "low09/19/2020 at 11:10 AM #144748Mille grazie, Roberto!
This is exactly what I meant
1 user thanked author for this post.
09/19/2020 at 2:35 PM #144763After reading again my indicator, I spotted a logical error that makes it not as accurate due to incorrect time detection, this is correct:
123456789101112131415161718192021222324ONCE FromD = 090000ONCE ToD = 160000ONCE CurC = closeONCE PrevC = closeONCE CurH = highONCE PrevH = highONCE CurL = lowONCE PrevL = lowdCond = (OpenDayOfWeek >= 1 AND OpenDayOfWeek <= 5)tCond = OpenTime >= FromD AND OpenTime <= ToDIF OpenDay <> OpenDay[1] THENPrevC = CurCPrevH = CurHPrevL = CurLCurH = 0CurL = 999999CurC = 0ENDIFIF dCond AND tCond THENCurC = closeCurL = min(CurL,low)CurH = max(CurH,high)ENDIFRETURN PrevC coloured(238,238,0,255) AS "close",PrevH coloured(0,0,255,255) AS "high",PrevL coloured(0,0,255,255) AS "low09/19/2020 at 5:57 PM #14477809/30/2021 at 5:08 PM #17882209/30/2021 at 7:15 PM #178826There you go:
1234567891011121314151617181920212223242526272829303132ONCE FromD = 090000ONCE ToD = 160000ONCE CurC = closeONCE PrevC = closeONCE CurH = highONCE PrevH = highONCE CurL = lowONCE PrevL = lowONCE CurO = openONCE PrevO = opendCond = (OpenDayOfWeek >= 1 AND OpenDayOfWeek <= 5)tCond = OpenTime >= FromD AND OpenTime <= ToDIF OpenDay <> OpenDay[1] THENPrevC = CurCPrevH = CurHPrevL = CurLPrevO = CurOCurH = openCurL = openCurO = open//CurC = closeENDIFIF dCond AND tCond THENIF CurL = CurO THENCurL = lowCurH = highENDIFCurC = closeCurL = min(CurL,low)CurH = max(CurH,high)ENDIFRETURN PrevC coloured(238,238,0,255) AS "close",PrevH coloured(0,0,255,255) AS "high",PrevL coloured(0,0,255,255) AS "low",PrevO coloured(0,255,255,255) AS "open"10/11/2021 at 5:06 PM #17941110/11/2021 at 7:00 PM #179423You need that at line 24 to detect when it all needs to start.
It just ignores any value prior to the starting time. -
AuthorPosts
Find exclusive trading pro-tools on