This indicator represents the open range for 2 time zones and different time units. My special thanks go to Kasper Elsborg @ Elsborgrading, whose basic idea I have extended here.
The goal is to detect potential breakouts early, I have made use of an observation that each of the targeted targets make up 100% of the pre-market range. Thus, goal 1 gives 100%, goal 2 200% ect. ,
I try to display 2 ranges from 8:00 to 9:00 and from 9:00 to 10:00, or 14:30 to 15:30 and 15:30 to 16:30.
The variable “Underlying” 1 stands for London Session and 2 for US Session
The variable “time unit” is selectable for the preferred time unit in the chart, possible selection 1 (1 min), 3 (3 min), 5 (5 min), 10 (10 min), 15 (15 min), 30 (30 min ), 60 (60 min). Attempting to enter other numbers will inevitably lead to the indicator falling!
The thin black line indicates the opening and can be hidden.
Good Trades!
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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 |
//=========================================================== //VORBÖRSE UND iBOX FÜR DAX UND DOW VARIABLE ZEITEINHEIT UND ZIELZONEN. BASIEREND AUF EINER IDEE VON Kasper Elsborg @Elsborgtrading. MODIFIZIERT UND ERWWEITERT VON A. CAPELLE (ATXeeL) //=========================================================== //Variable Zeiteinheit 1, 3, 5, 10, 15, 30, 60 //Variable Underlying 1, für London-Session und 2 für US-Session defparam drawonlastbaronly = false IF UNDERLYING =1 THEN //DAX TTIME = 080000 ENDIF IF UNDERLYING =2 THEN //DOW TTIME = 143000 ENDIF RV=200 GV=000 BV=250 RH=0 GH=050 BH=255 EROEFFNUNG= DOPEN(0) IF ZEITEINHEIT =1 THEN ZE= 60 PF=25 PH=6 starttime = TTIME+010100 endtime = TTIME+020000 starttimeV = TTIME+00100 endtimeV = TTIME+010000 ENDIF IF ZEITEINHEIT =3 THEN ZE= 21 PF=7 PH=5 starttime =TTIME+ 010300 endtime =TTIME +020300 starttimeV =TTIME+ 000300 endtimeV =TTIME+ 010300 ENDIF IF ZEITEINHEIT =5 THEN ZE= 13 PF=5 PH=4 starttime =TTIME+ 010500 endtime =TTIME+ 020500 starttimeV = TTIME+000500 endtimeV =TTIME+ 010500 ENDIF IF ZEITEINHEIT =10 THEN ZE= 7 PF=7 PH=3 starttime =TTIME+ 011000 endtime =TTIME+ 021000 starttimeV =TTIME+ 001000 endtimeV =TTIME+ 011000 ENDIF IF ZEITEINHEIT =15 THEN ZE= 5 PF=5 PH=3 starttime =TTIME+ 011500 endtime = TTIME+021500 starttimeV =TTIME+ 001500 endtimeV =TTIME+ 011500 ENDIF IF ZEITEINHEIT =30 THEN ZE= 3 PF=2 PH=2 starttime =TTIME+ 013000 endtime = TTIME+023000 starttimeV =TTIME+ 003000 endtimeV =TTIME+ 013000 ENDIF IF ZEITEINHEIT =60 THEN ZE= 1 PF=1 PH=2 starttime =TTIME+ 020000 endtime =TTIME+ 030000 starttimeV =TTIME+ 010000 endtimeV =TTIME+ 020000 ENDIF If Time = endtime then upper=highest[ZE](high) lower=lowest[ZE](low) DIF = upper-lower zielzonelongI = upper +dif zielzoneSHORTI =LOWER -DIF zielzonelongI2 = upper +dif*2 zielzoneSHORTI2 =LOWER -DIF*2 zielzonelongI3 = upper +dif*3 zielzoneSHORTI3 =LOWER -DIF*3 zielzonelongI4 = upper +dif*4 zielzoneSHORTI4 =LOWER -DIF*4 zielzonelongI5 = upper +dif*5 zielzoneSHORTI5 =LOWER -DIF*5 zielzonelongI6 = upper +dif*6 zielzoneSHORTI6 =LOWER -DIF*6 //bars=barindex DRAWTEXT("#dif# PKT", barindex-PH, upper+10,SansSerif,bold, 12)COLOURED(RH,GH,BH) DRAWTEXT("#upper#", barindex-PH-5, upper+3,SansSerif,bold, 12)COLOURED(RH,GH,BH) DRAWTEXT("#lower#", barindex-PH-5, lower-3,SansSerif,bold, 12)COLOURED(RH,GH,BH) DRAWTEXT("#zielzonelongI# ZIEL1", barindex-PF-12, zielzonelongI,SansSerif,bold, 12)COLOURED(RH,GH,BH) DRAWTEXT("#zielzoneSHORTI# ZIEL1", barindex-PF-12, zielzoneSHORTI,SansSerif,bold, 12)COLOURED(RH,GH,BH) DRAWTEXT("#zielzonelongI2# ZIEL2", barindex-PF-12, zielzonelongI2,SansSerif,bold, 12)COLOURED(RH,GH,BH) DRAWTEXT("#zielzoneSHORTI2# ZIEL2", barindex-PF-12, zielzoneSHORTI2,SansSerif,bold, 12)COLOURED(RH,GH,BH) DRAWTEXT("#zielzonelongI3# ZIEL3", barindex-PF-12, zielzonelongI3,SansSerif,bold, 12)COLOURED(RH,GH,BH) DRAWTEXT("#zielzoneSHORTI3# ZIEL3", barindex-PF-12, zielzoneSHORTI3,SansSerif,bold, 12)COLOURED(RH,GH,BH) DRAWTEXT("#zielzonelongI4# ZIEL4", barindex-PF-12, zielzonelongI4,SansSerif,bold, 12)COLOURED(RH,GH,BH) DRAWTEXT("#zielzoneSHORTI4# ZIEL4", barindex-PF-12, zielzoneSHORTI4,SansSerif,bold, 12)COLOURED(RH,GH,BH) DRAWTEXT("#zielzonelongI5# ZIEL5", barindex-PF-12, zielzonelongI5,SansSerif,bold, 12)COLOURED(RH,GH,BH) DRAWTEXT("#zielzoneSHORTI5# ZIEL5", barindex-PF-12, zielzoneSHORTI5,SansSerif,bold, 12)COLOURED(RH,GH,BH) DRAWTEXT("#zielzonelongI6# ZIEL6", barindex-PF-12, zielzonelongI6,SansSerif,bold, 12)COLOURED(RH,GH,BH) DRAWTEXT("#zielzoneSHORTI6# ZIEL6", barindex-PF-12, zielzoneSHORTI6,SansSerif,bold, 12)COLOURED(RH,GH,BH) endif If Time = endtimeV then upperV=highest[ZE](high) lowerV=lowest[ZE](low) DIFV=upperV-lowerV zielzonelong = upperV +difv zielzoneSHORT =LOWERV -DIFV zielzonelong2 = upperV +difv*2 zielzoneSHORT2 =LOWERV -DIFV*2 zielzonelong3 = upperV +difv*3 zielzoneSHORT3 =LOWERV -DIFV*3 zielzonelong4 = upperV +difv*4 zielzoneSHORT4 =LOWERV -DIFV*4 zielzonelong5 = upperV +difv*5 zielzoneSHORT5 =LOWERV -DIFV*5 zielzonelong6 = upperV +difv*6 zielzoneSHORT6 =LOWERV -DIFV*6 zielzonelong7 = upperV +difv*7 zielzoneSHORT7 =LOWERV -DIFV*7 zielzonelong8 = upperV +difv*8 zielzoneSHORT8 =LOWERV -DIFV*8 //bars=barindex DRAWTEXT("#difV# PKT", barindex-PH, upperV+10,SansSerif,bold, 12)COLOURED(RV,GV,BV) DRAWTEXT("#upperV#", barindex-PH, upperV+3,SansSerif,bold, 12)COLOURED(RV,GV,BV) DRAWTEXT("#lowerV#", barindex-PH, lowerV-3,SansSerif,bold, 12)COLOURED(RV,GV,BV) DRAWTEXT("#zielzonelong# ZIEL1", barindex-PF, zielzonelong,SansSerif,bold, 12)COLOURED(RV,GV,BV) DRAWTEXT("#zielzoneSHORT# ZIEL1", barindex-PF, zielzoneSHORT,SansSerif,bold, 12)COLOURED(RV,GV,BV) DRAWTEXT("#zielzonelong2# ZIEL2", barindex-PF, zielzonelong2,SansSerif,bold, 12)COLOURED(RV,GV,BV) DRAWTEXT("#zielzoneSHORT2# ZIEL2", barindex-PF, zielzoneSHORT2,SansSerif,bold, 12)COLOURED(RV,GV,BV) DRAWTEXT("#zielzonelong3# ZIEL3", barindex-PF, zielzonelong3,SansSerif,bold, 12)COLOURED(RV,GV,BV) DRAWTEXT("#zielzoneSHORT3# ZIEL3", barindex-PF, zielzoneSHORT3,SansSerif,bold, 12)COLOURED(RV,GV,BV) DRAWTEXT("#zielzonelong4# ZIEL4", barindex-PF, zielzonelong4,SansSerif,bold, 12)COLOURED(RV,GV,BV) DRAWTEXT("#zielzoneSHORT4# ZIEL4", barindex-PF, zielzoneSHORT4,SansSerif,bold, 12)COLOURED(RV,GV,BV) DRAWTEXT("#zielzonelong5# ZIEL5", barindex-PF, zielzonelong5,SansSerif,bold, 12)COLOURED(RV,GV,BV) DRAWTEXT("#zielzoneSHORT5# ZIEL5", barindex-PF, zielzoneSHORT5,SansSerif,bold, 12)COLOURED(RV,GV,BV) DRAWTEXT("#zielzonelong6# ZIEL6", barindex-PF, zielzonelong6,SansSerif,bold, 12)COLOURED(RV,GV,BV) DRAWTEXT("#zielzoneSHORT6# ZIEL6", barindex-PF, zielzoneSHORT6,SansSerif,bold, 12)COLOURED(RV,GV,BV) DRAWTEXT("#zielzonelong7# ZIEL7", barindex-PF, zielzonelong7,SansSerif,bold, 12)COLOURED(RV,GV,BV) DRAWTEXT("#zielzoneSHORT7# ZIEL7", barindex-PF, zielzoneSHORT7,SansSerif,bold, 12)COLOURED(RV,GV,BV) DRAWTEXT("#zielzonelong8# ZIEL8", barindex-PF, zielzonelong8,SansSerif,bold, 12)COLOURED(RV,GV,BV) DRAWTEXT("#zielzoneSHORT8# ZIEL8", barindex-PF, zielzoneSHORT8,SansSerif,bold, 12)COLOURED(RV,GV,BV) endif if time >=ENDTIME and Time <=220000 then count=count+1 DRAWsegment(barindex-count,upper,barindex,upper) coloured(RH,GH,BH) DRAWsegment(barindex-count,lower,barindex,lower)coloured(RH,GH,BH) DRAWsegment(barindex-count,zielzonelongI,barindex,zielzonelongI)coloured(RH,GH,BH) DRAWsegment(barindex-count,zielzoneSHORTI,barindex,zielzoneSHORTI)coloured(RH,GH,BH) DRAWsegment(barindex-count,zielzonelongI2,barindex,zielzonelongI2)coloured(RH,GH,BH) DRAWsegment(barindex-count,zielzoneSHORTI2,barindex,zielzoneSHORTI2)coloured(RH,GH,BH) DRAWsegment(barindex-count,zielzonelongI3,barindex,zielzonelongI3)coloured(RH,GH,BH) DRAWsegment(barindex-count,zielzoneSHORTI3,barindex,zielzoneSHORTI3)coloured(RH,GH,BH) DRAWsegment(barindex-count,zielzonelongI4,barindex,zielzonelongI4)coloured(RH,GH,BH) DRAWsegment(barindex-count,zielzoneSHORTI4,barindex,zielzoneSHORTI4)coloured(RH,GH,BH) DRAWsegment(barindex-count,zielzonelongI5,barindex,zielzonelongI5)coloured(RH,GH,BH) DRAWsegment(barindex-count,zielzoneSHORTI5,barindex,zielzoneSHORTI5)coloured(RH,GH,BH) DRAWsegment(barindex-count,zielzonelongI6,barindex,zielzonelongI6)coloured(RH,GH,BH) DRAWsegment(barindex-count,zielzoneSHORTI6,barindex,zielzoneSHORTI6)coloured(RH,GH,BH) else count=0 endif if intradaybarindex=0 then hh = 0 ll = 0 alreadydrawn = 0 endif 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 time>endtime and alreadydrawn=0 then drawrectangle(startbar,hh,endbar,ll) COLOURED(RH,GH,BH,90) alreadydrawn=1 endif if time >=ENDTIME and Time <=220000 then countV=countV+1 DRAWsegment(barindex-countV,upperV,barindex,upperV)COLOURED(RV,GV,BV) DRAWsegment(barindex-countV,lowerV,barindex,lowerV)COLOURED(RV,GV,BV) DRAWsegment(barindex-countV,zielzonelong,barindex,zielzonelong)COLOURED(RV,GV,BV) DRAWsegment(barindex-countV,zielzoneSHORT,barindex,zielzoneSHORT)COLOURED(RV,GV,BV) DRAWsegment(barindex-countV,zielzonelong2,barindex,zielzonelong2)COLOURED(RV,GV,BV) DRAWsegment(barindex-countV,zielzoneSHORT2,barindex,zielzoneSHORT2)COLOURED(RV,GV,BV) DRAWsegment(barindex-countV,zielzonelong3,barindex,zielzonelong3)COLOURED(RV,GV,BV) DRAWsegment(barindex-countV,zielzoneSHORT3,barindex,zielzoneSHORT3)COLOURED(RV,GV,BV) DRAWsegment(barindex-countV,zielzonelong4,barindex,zielzonelong4)COLOURED(RV,GV,BV) DRAWsegment(barindex-countV,zielzoneSHORT4,barindex,zielzoneSHORT4)COLOURED(RV,GV,BV) DRAWsegment(barindex-countV,zielzonelong5,barindex,zielzonelong5)COLOURED(RV,GV,BV) DRAWsegment(barindex-countV,zielzoneSHORT5,barindex,zielzoneSHORT5)COLOURED(RV,GV,BV) DRAWsegment(barindex-countV,zielzonelong6,barindex,zielzonelong6)COLOURED(RV,GV,BV) DRAWsegment(barindex-countV,zielzoneSHORT6,barindex,zielzoneSHORT6)COLOURED(RV,GV,BV) DRAWsegment(barindex-countV,zielzonelong7,barindex,zielzonelong7)COLOURED(RV,GV,BV) DRAWsegment(barindex-countV,zielzoneSHORT7,barindex,zielzoneSHORT7)COLOURED(RV,GV,BV) DRAWsegment(barindex-countV,zielzonelong8,barindex,zielzonelong8)COLOURED(RV,GV,BV) DRAWsegment(barindex-countV,zielzoneSHORT8,barindex,zielzoneSHORT8)COLOURED(RV,GV,BV) else countV=0 endif if intradaybarindex=0 then hhV = 0 llV = 0 alreadydrawnV = 0 endif if time=starttimeV then startbarV=barindex endif if time=endtimeV then endbarV=barindex endif if time>=starttimeV and time<=endtimeV then if high>hhV then hhV = high endif if low<llV or llV=0 then llV = low endif endif if time>endtimeV and alreadydrawnV=0 then drawrectangle(startbarV,hhV,endbarV,llV) COLOURED(RV,GV,BV,90) alreadydrawnV=1 endif RETURN upperV As"upperVV" , lowerV as" lowerVV" ,upper as"upper", lower as"lower",EROEFFNUNG AS" ERÖFFNUNG" |
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
Hallo Atxeel, sehr interessanter Code, habe das installiert und funktioniert. Danke! Kannst Du die Anwendung noch etwas genauer beschreiben? Bedeutet das das Hoch oder Tief vor der Eröffnung zu 100, 200 oder mehr % nach oben oder unten umgelegt werden?
Hallo hartgeld, die Ziele sind schlicht, bspw. die Range beträgt 10 Punkte, dann ist das Ziel für Long 10 Punkte von der Range Oberkante und vice versa. Beschrieben als Ziel 1-8.