Pre-Market session EUR

Category: Indicators By: swapping Created: January 3, 2019, 12:14 PM
January 3, 2019, 12:14 PM
Indicators
4 Comments

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)

// 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

Download
Filename: PreMarket-EUR-Session.itf
Downloads: 280
swapping Master
<a href="http://www.forexswap.fr/">Le trading</a> une discipline sans faille qui en décourage plus d'un ! "Et pourtant..."
Author’s Profile

Comments

Logo Logo
Loading...