opening range
Forums › ProRealTime English forum › ProBuilder support › opening range
- This topic has 26 replies, 4 voices, and was last updated 6 years ago by Marius.
Tagged: drawsegment, range
-
-
11/16/2018 at 6:22 PM #85057
Hello,
I am looking for an indicator that automatically draws the first hour ( from 0800 to 0900) opening range with 2 simple black lines reaching from 0800 hour to 2200 hour. I am struggling like hell and was hoping that someone could help me out here. I am using a 15 minute chart for trading.
Thanks in advance and regards,
Mert
11/16/2018 at 6:59 PM #85060There you go
123456789101112131415161718DEFPARAM DrawOnLastBarOnly = trueDEFPARAM CalculateOnLastBars = 1000IF time <= 080000 THENhh = 0ll = 999999ENDIFIF time = 090000 THENMyBar = barindexENDIFIF time >= 090000 AND time <= 100000 THENhh = max(hh,high)ll = min(ll,low)ENDIFIF time >= 100000 AND time <= 220000 THENDRAWSEGMENT(MyBar,hh,barindex,hh) COLOURED(255,255,255,255)DRAWSEGMENT(MyBar,ll,barindex,ll) COLOURED(255,255,255,255)ENDIFRETURN11/16/2018 at 11:16 PM #8507411/17/2018 at 12:56 AM #85077It does not work after 22, as you asked. Change hours as you please.
It will work if you comment out, or remove, line 1. In this case you’ll will still see older lines, though.
Anyway, the file is attached.
11/17/2018 at 7:10 AM #8508111/17/2018 at 10:00 AM #85091Sorry @pippo999, I attached the wrong file related to another topic. You can now download the correct file.
Please speak english in the english forum. Thank you.
Have a nice weekend.
11/17/2018 at 11:17 AM #8509611/17/2018 at 11:59 AM #85097On which instrument and TF are you using it?
11/17/2018 at 12:51 PM #8509911/17/2018 at 12:58 PM #85100After commenting out line 1. this is the result on AEX cfd (with IG) on a 15-minute chart.
11/17/2018 at 1:20 PM #8510211/17/2018 at 2:07 PM #85105I have no idea why such difference.
Try changing colors.
11/17/2018 at 2:16 PM #85107I hope you do not misunderstand but the colours you see are painted candles that I have coded. This has nothing to do with the opening range. I only, if I add the code, get a grey line far above the price action. Either way, if it is not working it is ok. I draw it by hand. Thanks for the trouble anyway and thanks fo the color scheme.
Regards,
Mert
11/17/2018 at 2:22 PM #85108What version of ProRealTime do you have?
Is that T2, by chance?
11/17/2018 at 2:29 PM #85109 -
AuthorPosts
Find exclusive trading pro-tools on