Overnight High Low
Forums › ProRealTime English forum › ProBuilder support › Overnight High Low
- This topic has 7 replies, 2 voices, and was last updated 5 years ago by Vonasi.
Viewing 8 posts - 1 through 8 (of 8 total)
-
-
02/28/2019 at 1:22 PM #92533
Hello
I need som help here. I have done a search but cant find what I´m looking for
I want a line to show the high and the low between 220000 and 080000
The code I have used is something I found on here but It can only show the line from 000000 to 080000
Any idea how that can bo solved?
ONHL123456789101112131415161718192021if intradaybarindex =0 thenmaxprice = 0minprice = close * 100endiftcondition = time>=000000 and time<080100// Determine daily levelif tcondition thenmaxprice = max(maxprice,high)minprice = min(minprice,low)Long = maxpriceShort = minpriceendifreturn Long as "Long", Short as "Short"02/28/2019 at 6:20 PM #9255202/28/2019 at 9:53 PM #9256402/28/2019 at 10:17 PM #92568Try this:
1234567891011121314151617once maxprice = 0once minprice = close * 100tcondition = time>=000000 or time<080100// Determine daily levelif tcondition thenmaxprice = max(maxprice,high)minprice = min(minprice,low)Long = maxpriceShort = minpriceendifreturn Long as "Long", Short as "Short"1 user thanked author for this post.
02/28/2019 at 10:36 PM #9257102/28/2019 at 11:05 PM #92575Sorry but I’m trying to help while doing other things and not actually testing what I write!
Try this:
123456789101112131415tcondition = time>=000000 or time<080100// Determine daily levelif tcondition thenif time = 000000 thenmaxprice = 0minprice = close * 100endifmaxprice = max(maxprice,high)minprice = min(minprice,low)endifreturn maxprice as "Long", minprice as "Short"1 user thanked author for this post.
02/28/2019 at 11:25 PM #9258502/28/2019 at 11:33 PM #92590only changed time from 000000 to 220000
Oooops – too much cutting and pasting by me! Glad it finally works.
1 user thanked author for this post.
-
AuthorPosts
Viewing 8 posts - 1 through 8 (of 8 total)
Find exclusive trading pro-tools on
Similar topics: