This Indicator draws a rectangle around the candlesticks formed during the Pre-opening of the European Session, it provides the minimum, maximum values as well as the difference and draws segments from the highest and the lowest until the opening of the Session American …
[Properties] Two checkboxes
– “Info” Shows or hides alphanumeric information
– “Segment” Shows or hides the lines (higher / lower)
Two variables used to
– “Alpha” Adjust the transparency of text and lines (0 to 255)
– “Delta” Adjusts the information (above and below) of the rectangle
(to adjust according to the selected asset)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
// Pre-Market EUR (Opening Range) | Graph Indicator // 20.12.2018 (Release 1.0) // Swapping @ www.forexswap.fr // Sharing ProRealTime knowledge (alt+16) DefParam CalculateOnLastBars = 184 // (visualisation en UT 5mn sur une seule journée) // --- property settings Info = 1 // (0=false; 1=true) Delta = 10 // gap number/rectangle Alpha = 180 // transparency letter Segment = 1 // (0=false; 1=true) // --- end starttime = 080500 // 08h00 plage européenne (Cac, Dax, Footsie, ect...) endtime = 090000 // 09h00 // --- init alpha = max(alpha,0) alpha = min(alpha,255) // --- end if time = starttime then startbar = barindex endif if time = endtime then endbar = barindex endif if time >= starttime and time <= endtime then if high > hh then hh = high endif if low < ll or ll = 0 then ll = low endif endif if intradaybarindex = 0 then hh = 0 ll = 0 endif if time > endtime then DrawRectangle(startbar,hh,endbar,ll) coloured(0,255,255,alpha) // alpha (transparence) endif if time = endtime then upper = highest[12](high) // 12 Chandeliers de 5mn dans 60 minutes lower = lowest[12](low) dif = round(abs(upper-lower)) info = info // Visualisation des valeurs Alpha Numériques elsif info = 1 then DrawText("OPR #dif#pts",startbar+5,upper+(delta+dif/3),SansSerif,Bold,11) coloured(150,150,150,alpha) DrawText("#hh#",startbar+5,upper+(delta),SansSerif,Standard,11) coloured(250,150,100,alpha) DrawText("#ll#",startbar+5,lower-(delta),SansSerif,Standard,11) coloured(250,150,100,alpha) endif if time >= 091000 and time <= 140500 then segment = segment // Visualisation Segment "Haut/Bas" OPR de 09h00 à 14h00 DrawSegment(barindex-segment,upper,barindex,upper) coloured(250,150,100,alpha) // Segment Supérieur OPR (Résistance) DrawSegment(barindex-segment,lower,barindex,lower) coloured(250,150,100,alpha) // Segment Inférieur OPR (Support) endif return |
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
good work swapping, this is a great one, how can one change time frame though say 10 minutes or 1 hour?
Hello wanjpt, I do not see how to do it because the calculation is for 12 candles of 5mn only (so 1 hour…)
Thanks swapping.
@wanjpt
https://www.prorealcode.com/prorealtime-indicators/opening-range-eur-with-close-and-open-timeframedetection-for-configuration-with-1-5-10-15-30min-charts/