Market Open-Close Hours MT4 Indicator to prorealtime
Forums › ProRealTime English forum › ProBuilder support › Market Open-Close Hours MT4 Indicator to prorealtime
- This topic has 6 replies, 3 voices, and was last updated 4 years ago by kabbel.
Tagged: market hours
-
-
05/15/2020 at 11:09 AM #131749
Hello everybody,
Is it possible somebody make a conversion of the indicator “Market Open-Close Hours MT4 Indicator” to prorealtime?
https://www.forexmt4indicators.com/nl/market-open-close-hours-mt4-indicator/
I put the mt4 in the attachment.
Thanks in advance!!!
05/18/2020 at 8:44 AM #13207005/18/2020 at 12:37 PM #132136Something similar could be coded, but with limitations:
- only compatible with PRT version 11
- will not automatically adapt with your own timezone
Hello Nicolas,
I was hoping you would give a reaction. Lucky for me you’re in my timezone! I’ve the 10.3 version. Maybe I should just learn it.
05/18/2020 at 1:31 PM #132139Something could be created for 10.3 where the user can just set the start and end times for each market so it could work for every time zone but in 10.3 we cannot draw into the future and so you would not see that a market is about to open in the next bar until the market is actually open on the next bar.
05/18/2020 at 2:14 PM #132146This is for v10.3. I’ve set the times at UTC so you will have to change them to what you need.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657NewYorkOpen = 1430NewYorkClose = 2100LondonOpen = 0800LondonClose = 1630JapanOpen = 0100JapanClose = 0700nyOpen = NewYorkOpen*100nyClose = NewYorkClose*100LoOpen = LondonOpen*100LoClose = LondonClose*100JaOpen = JapanOpen*100JaClose = JapanClose*100if opentime = nyopen thenny=1endifif opentime = nyclose thenny=0endifif opentime = loopen thenlo=1endifif opentime = loclose thenlo=0endifif opentime = jaopen thenja=1endifif opentime = jaclose thenja=0endifif ny thenif not ny[1] thendrawtext("NewYork",barindex-5,2,sansserif,bold,10) coloured(0,0,0)endifdrawtext("█",barindex,2,sansserif,bold,16) coloured(0,0,255)endifif lo thenif not lo[1] thendrawtext("London",barindex-4,1,sansserif,bold,10) coloured(0,0,0)endifdrawtext("█",barindex,1,sansserif,bold,16) coloured(128,0,0)endifif ja thenif not ja[1] thendrawtext("Tokyo",barindex-4,3,sansserif,bold,10) coloured(0,0,0)endifdrawtext("█",barindex,3,sansserif,bold,16) coloured(0,128,0)endifreturn 0 coloured(0,0,0,0), 4 coloured(0,0,0,0)05/19/2020 at 12:16 PM #13226105/19/2020 at 12:24 PM #132263 -
AuthorPosts
Find exclusive trading pro-tools on