prc_ict-killzones-and-pivots Mittellinien der Boxen hinzufügen
Forums › ProRealTime Deutsch forum › ProBuilder Support › prc_ict-killzones-and-pivots Mittellinien der Boxen hinzufügen
- This topic has 18 replies, 3 voices, and was last updated 2 months ago by
Razz.
-
-
05/08/2025 at 7:49 AM #246890
Guten Morgen
Ich finde den Indikator super , wäre es möglich den Boxen Mittellinien hinzuzufügen (als zb. graue gepunktete Mittellinie)
Das wäre echt super
https://www.prorealcode.com/prorealtime-indicators/ict-killzones-and-pivots/
05/08/2025 at 10:04 AM #246892Hier ist der geänderte Code, in dem ich den Parameter ShowMidLine hinzugefügt habe, um auszuwählen, ob die Mittellinie gedruckt werden soll oder nicht (verwenden Sie die angehängte ITF-Datei):
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330//----------------------------------------------////PRC_ICT Killzones and Pivots//version = 0//10.10.2024//Iván González @ www.prorealcode.com//Sharing ProRealTime knowledge//----------------------------------------------////-----INPUTS-----------------------------------////----------------------------------------------////openAS=020000//closeAS=060000//openLO=080000//closeLO=110000//openNYam=153000//closeNYam=170000//openNYlch=180000//closeNYlch=190000//openNYpm=193000//closeNYpm=220000//ShowNylch=1//ShowMidLine=1openNY=openNYamcloseNY=closeNYpmlimitday=180000openTrueDay=060000if gettimeframe<=3600 then//----------------------------------------------////-----ASIA Zone--------------------------------////----------------------------------------------//once maxHighAS=highonce minLowAS=lowif opentime>=openAS and opentime<=closeAS thenbarAS=barAS+1if high>=maxHighAS thenmaxHighAS=highelsemaxHighAS=maxHighASendifif low<=minLowAS thenminLowAS=lowelseminLowAS=minLowASendifendifif opentime=closeAS thendrawrectangle(barindex[barAS],minLowAS,barindex,maxHighAS)coloured("blue")fillcolor("blue",30)IF ShowMidLine THENMidRange = (maxHighAS - minLowAS) / 2MidPrice = minLowAS + MidRangedrawsegment(barindex[barAS],MidPrice,barindex,MidPrice)coloured("Cyan") style(dottedline,4)ENDIFdrawtext("AS.H: #maxHighAS#",barindex[round(barAS/2)],maxHighAS+0.3*tr)drawtext("AS.L: #minLowAS#",barindex[round(barAS/2)],minLowAS-0.3*tr)prevLowAS=minLowASprevHighAS=maxHighASprevidxAS=barindexbarAS=0minLowAS=high*100maxHighAS=0endifif low crosses under prevLowAS thendrawsegment(previdxAS,prevLowAS,barindex,prevLowAS)coloured("blue")prevLowAS=0elsif opentime=limitday and prevLowAS<>0 thendrawsegment(previdxAS,prevLowAS,barindex,prevLowAS)coloured("blue")prevLowAS=0elsif islastbarupdate and prevLowAS<>0 thendrawsegment(previdxAS,prevLowAS,barindex,prevLowAS)coloured("blue")endifif high crosses over prevHighAS thendrawsegment(previdxAS,prevHighAS,barindex,prevHighAS)coloured("blue")prevHighAS=0elsif opentime=limitday and prevHighAS<>0 thendrawsegment(previdxAS,prevHighAS,barindex,prevHighAS)coloured("blue")prevHighAS=0elsif islastbarupdate and prevHighAS<>0 thendrawsegment(previdxAS,prevHighAS,barindex,prevHighAS)coloured("blue")endif//----------------------------------------------////-----London Zone------------------------------////----------------------------------------------//once maxHighLO=highonce minLowLO=lowif opentime>=openLO and opentime<=closeLO thenbarLO=barLO+1if high>=maxHighLO thenmaxHighLO=highelsemaxHighLO=maxHighLOendifif low<=minLowLO thenminLowLO=lowelseminLowLO=minLowLOendifendifif opentime=closeLO thendrawrectangle(barindex[barLO],minLowLO,barindex,maxHighLO)coloured("red")fillcolor("red",30)IF ShowMidLine THENMidRange = (maxHighLO - minLowLO) / 2MidPrice = minLowLO + MidRangedrawsegment(barindex[barLO],MidPrice,barindex,MidPrice)coloured("Cyan") style(dottedline,4)ENDIFdrawtext("LO.H: #maxHighLO#",barindex[round(barLO/2)],maxHighLO+0.3*tr)drawtext("LO.L: #minLowLO#",barindex[round(barLO/2)],minLowLO-0.3*tr)prevLowLO=minLowLOprevHighLO=maxHighLOprevidxLO=barindexbarLO=0minLowLO=high*100maxHighLO=0endifif low crosses under prevLowLO thendrawsegment(previdxLO,prevLowLO,barindex,prevLowLO)coloured("red")prevLowLO=0elsif opentime=limitday and prevLowLO<>0 thendrawsegment(previdxLO,prevLowLO,barindex,prevLowLO)coloured("red")prevLowLO=0elsif islastbarupdate and prevLowLO<>0 thendrawsegment(previdxLO,prevLowLO,barindex,prevLowLO)coloured("red")endifif high crosses over prevHighLO thendrawsegment(previdxLO,prevHighLO,barindex,prevHighLO)coloured("red")prevHighLO=0elsif opentime=limitday and prevHighLO<>0 thendrawsegment(previdxLO,prevHighLO,barindex,prevHighLO)coloured("red")prevHighLO=0elsif islastbarupdate and prevHighLO<>0 thendrawsegment(previdxLO,prevHighLO,barindex,prevHighLO)coloured("red")endifif ShowNylch then//----------------------------------------------////-----New York AM------------------------------////----------------------------------------------//once maxHighNYam=highonce minLowNYam=lowif opentime>=openNYam and opentime<=closeNYam thenbarNYam=barNYam+1if high>=maxHighNYam thenmaxHighNYam=highelsemaxHighNYam=maxHighNYamendifif low<=minLowNYam thenminLowNYam=lowelseminLowNYam=minLowNYamendifendifif opentime=closeNYam thendrawrectangle(barindex[barNYam],minLowNYam,barindex,maxHighNYam)coloured("green")fillcolor("green",30)IF ShowMidLine THENMidRange = (maxHighNYam - minLowNYam) / 2MidPrice = minLowNYam + MidRangedrawsegment(barindex[barNYam],MidPrice,barindex,MidPrice)coloured("Cyan") style(dottedline,4)ENDIFdrawtext("NYam.H: #maxHighNYam#",barindex[round(barNYam/2)],maxHighNYam+0.3*tr)drawtext("NYam.L: #minLowNYam#",barindex[round(barNYam/2)],minLowNYam-0.3*tr)prevLowNYam=minLowNYamprevHighNYam=maxHighNYamprevidxNYam=barindexbarNYam=0minLowNYam=high*100maxHighNYam=0endifif low crosses under prevLowNYam thendrawsegment(previdxNYam,prevLowNYam,barindex,prevLowNYam)coloured("green")prevLowNYam=0elsif opentime=limitday and prevLowNYam<>0 thendrawsegment(previdxNYam,prevLowNYam,barindex,prevLowNYam)coloured("green")prevLowNYam=0elsif islastbarupdate and prevLowNYam<>0 thendrawsegment(previdxNYam,prevLowNYam,barindex,prevLowNYam)coloured("green")endifif high crosses over prevHighNYam thendrawsegment(previdxNYam,prevHighNYam,barindex,prevHighNYam)coloured("green")prevHighNYam=0elsif opentime=limitday and prevHighNYam<>0 thendrawsegment(previdxNYam,prevHighNYam,barindex,prevHighNYam)coloured("green")prevHighNYam=0elsif islastbarupdate and prevHighNYam<>0 thendrawsegment(previdxNYam,prevHighNYam,barindex,prevHighNYam)coloured("green")endif//----------------------------------------------////-----New York lunch Zone----------------------////----------------------------------------------//once maxHighNYlch=highonce minLowNYlch=lowif opentime>=openNYlch and opentime<=closeNYlch thenbarNYlch=barNYlch+1if high>=maxHighNYlch thenmaxHighNYlch=highelsemaxHighNYlch=maxHighNYlchendifif low<=minLowNYlch thenminLowNYlch=lowelseminLowNYlch=minLowNYlchendifendifif opentime=closeNYlch thendrawrectangle(barindex[barNYlch],minLowNYlch,barindex,maxHighNYlch)coloured("yellow")fillcolor("yellow",30)IF ShowMidLine THENMidRange = (maxHighNYlch - minLowNYlch) / 2MidPrice = minLowNYlch + MidRangedrawsegment(barindex[barNYlch],MidPrice,barindex,MidPrice)coloured("Cyan") style(dottedline,4)ENDIFprevLowNYlch=minLowNYlchprevHighNYlch=maxHighNYlchprevidxNYlch=barindexbarNYlch=0minLowNYlch=high*100maxHighNYlch=0endif//----------------------------------------------////-----New York PM -----------------------------////----------------------------------------------//once maxHighNYpm=highonce minLowNYpm=lowif opentime>=openNYpm and opentime<=closeNYpm thenbarNYpm=barNYpm+1if high>=maxHighNYpm thenmaxHighNYpm=highelsemaxHighNYpm=maxHighNYpmendifif low<=minLowNYpm thenminLowNYpm=lowelseminLowNYpm=minLowNYpmendifendifif opentime=closeNYpm thendrawrectangle(barindex[barNYpm],minLowNYpm,barindex,maxHighNYpm)coloured("purple")fillcolor("purple",30)IF ShowMidLine THENMidRange = (maxHighNYpm - minLowNYpm) / 2MidPrice = minLowNYpm + MidRangeENDIFdrawsegment(barindex[barNYpm],MidPrice,barindex,MidPrice)coloured("Cyan") style(dottedline,4)drawtext("NYpm.H: #maxHighNYpm#",barindex[round(barNYpm/2)],maxHighNYpm+0.3*tr)drawtext("NYpm.L: #minLowNYpm#",barindex[round(barNYpm/2)],minLowNYpm-0.3*tr)prevLowNYpm=minLowNYpmprevHighNYpm=maxHighNYpmprevidxNYpm=barindexbarNYpm=0minLowNYpm=high*100maxHighNYpm=0endifif low crosses under prevLowNYpm thendrawsegment(previdxNYpm,prevLowNYpm,barindex,prevLowNYpm)coloured("purple")prevLowNYpm=0elsif opentime=limitday and prevLowNYpm<>0 thendrawsegment(previdxNYpm,prevLowNYpm,barindex,prevLowNYpm)coloured("purple")prevLowNYpm=0elsif islastbarupdate and prevLowNYpm<>0 thendrawsegment(previdxNYpm,prevLowNYpm,barindex,prevLowNYpm)coloured("purple")endifif high crosses over prevHighNYpm thendrawsegment(previdxNYpm,prevHighNYpm,barindex,prevHighNYpm)coloured("purple")prevHighNYpm=0elsif opentime=limitday and prevHighNYpm<>0 thendrawsegment(previdxNYpm,prevHighNYpm,barindex,prevHighNYpm)coloured("purple")prevHighNYpm=0elsif islastbarupdate and prevHighNYpm<>0 thendrawsegment(previdxNYpm,prevHighNYpm,barindex,prevHighNYpm)coloured("purple")endifelseonce maxHighNY=highonce minLowNY=lowif opentime>=openNY and opentime<=closeNY thenbarNY=barNY+1if high>=maxHighNY thenmaxHighNY=highelsemaxHighNY=maxHighNYendifif low<=minLowNY thenminLowNY=lowelseminLowNY=minLowNYendifendifif opentime=closeNY thendrawrectangle(barindex[barNY],minLowNY,barindex,maxHighNY)coloured("purple")fillcolor("purple",30)drawtext("NY.H: #maxHighNY#",barindex[round(barNY/2)],maxHighNY+0.3*tr)drawtext("NY.L: #minLowNY#",barindex[round(barNY/2)],minLowNY-0.3*tr)prevLowNY=minLowNYprevHighNY=maxHighNYprevidxNY=barindexbarNY=0minLowNY=high*100maxHighNY=0endifif low crosses under prevLowNY thendrawsegment(previdxNY,prevLowNY,barindex,prevLowNY)coloured("purple")prevLowNY=0elsif opentime=limitday and prevLowNY<>0 thendrawsegment(previdxNY,prevLowNY,barindex,prevLowNY)coloured("purple")prevLowNY=0elsif islastbarupdate and prevLowNY<>0 thendrawsegment(previdxNY,prevLowNY,barindex,prevLowNY)coloured("purple")endifif high crosses over prevHighNY thendrawsegment(previdxNY,prevHighNY,barindex,prevHighNY)coloured("purple")prevHighNY=0elsif opentime=limitday and prevHighNY<>0 thendrawsegment(previdxNY,prevHighNY,barindex,prevHighNY)coloured("purple")prevHighNY=0elsif islastbarupdate and prevHighNY<>0 thendrawsegment(previdxNY,prevHighNY,barindex,prevHighNY)coloured("purple")endifendif//----------------------------------------------////-----Limit Day--------------------------------////----------------------------------------------//if opentime=openTrueDay thenopenTD=openbarTD=barindexelseif opentime=limitday thendrawvline(barindex)style(dottedline)drawsegment(barTD,openTD,barindex,openTD)style(dottedline1)endifendifelsedrawtext("Change timeframe to 1hr or less",0,0,SansSerif,bold,34)anchor(middle,xshift,yshift)endifreturn05/08/2025 at 11:16 AM #24689806/01/2025 at 5:00 PM #247784Hallo Iván und robertogozzi
Ich benutze den Indikator wirklich sehr gerne , was muss Ich tun um eine Handelsbox von 22:00 bis 08:00 zu erhalten das geht aktuell wohl noch nicht oder ?
Viele Grüßen
06/01/2025 at 5:38 PM #24778506/02/2025 at 5:08 AM #24778806/02/2025 at 11:40 AM #247796Da ist er:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352//----------------------------------------------////PRC_ICT Killzones and Pivots//version = 0//10.10.2024//Iván González @ www.prorealcode.com//Sharing ProRealTime knowledge//----------------------------------------------////-----INPUTS-----------------------------------////----------------------------------------------////openAS=020000//closeAS=060000//openLO=080000//closeLO=110000//openNYam=153000//closeNYam=170000//openNYlch=180000//closeNYlch=190000//openNYpm=193000//closeNYpm=220000//ShowNylch=1//ShowMidLine=1openNY=openNYamcloseNY=closeNYpmlimitday=180000openTrueDay=060000BOXstart = 220000BOXend = 080000if gettimeframe<=3600 then//----------------------------------------------////-------- NIGHT Box --------------------////----------------------------------------------//ONCE BOXmax = highONCE BOXmin = lowONCE BOXStartBar = BarIndexONCE BOXEndBar = BarIndexIF (OpenTime >= BOXstart) OR (OpenTime <= BOXend) THENIF (OpenTime = BOXstart) THENBOXmax = highBOXmin = lowBOXStartBar = BarIndexENDIFBOXmax = max(BOXmax,high)BOXmin = min(BOXmin,low)BOXEndBar = BarIndexIF (OpenTime = BOXend) THENDrawRectangle(BOXStartBar,BOXmax ,BOXEndBar,BOXmin) style(DottedLine,4) coloured("CadetBlue") FillColor("CadetBlue",50)ENDIFENDIF//----------------------------------------------////-----ASIA Zone--------------------------------////----------------------------------------------//once maxHighAS=highonce minLowAS=lowif opentime>=openAS and opentime<=closeAS thenbarAS=barAS+1if high>=maxHighAS thenmaxHighAS=highelsemaxHighAS=maxHighASendifif low<=minLowAS thenminLowAS=lowelseminLowAS=minLowASendifendifif opentime=closeAS thendrawrectangle(barindex[barAS],minLowAS,barindex,maxHighAS)coloured("blue")fillcolor("blue",30)IF ShowMidLine THENMidRange = (maxHighAS - minLowAS) / 2MidPrice = minLowAS + MidRangedrawsegment(barindex[barAS],MidPrice,barindex,MidPrice)coloured("Cyan") style(dottedline,4)ENDIFdrawtext("AS.H: #maxHighAS#",barindex[round(barAS/2)],maxHighAS+0.3*tr)drawtext("AS.L: #minLowAS#",barindex[round(barAS/2)],minLowAS-0.3*tr)prevLowAS=minLowASprevHighAS=maxHighASprevidxAS=barindexbarAS=0minLowAS=high*100maxHighAS=0endifif low crosses under prevLowAS thendrawsegment(previdxAS,prevLowAS,barindex,prevLowAS)coloured("blue")prevLowAS=0elsif opentime=limitday and prevLowAS<>0 thendrawsegment(previdxAS,prevLowAS,barindex,prevLowAS)coloured("blue")prevLowAS=0elsif islastbarupdate and prevLowAS<>0 thendrawsegment(previdxAS,prevLowAS,barindex,prevLowAS)coloured("blue")endifif high crosses over prevHighAS thendrawsegment(previdxAS,prevHighAS,barindex,prevHighAS)coloured("blue")prevHighAS=0elsif opentime=limitday and prevHighAS<>0 thendrawsegment(previdxAS,prevHighAS,barindex,prevHighAS)coloured("blue")prevHighAS=0elsif islastbarupdate and prevHighAS<>0 thendrawsegment(previdxAS,prevHighAS,barindex,prevHighAS)coloured("blue")endif//----------------------------------------------////-----London Zone------------------------------////----------------------------------------------//once maxHighLO=highonce minLowLO=lowif opentime>=openLO and opentime<=closeLO thenbarLO=barLO+1if high>=maxHighLO thenmaxHighLO=highelsemaxHighLO=maxHighLOendifif low<=minLowLO thenminLowLO=lowelseminLowLO=minLowLOendifendifif opentime=closeLO thendrawrectangle(barindex[barLO],minLowLO,barindex,maxHighLO)coloured("red")fillcolor("red",30)IF ShowMidLine THENMidRange = (maxHighLO - minLowLO) / 2MidPrice = minLowLO + MidRangedrawsegment(barindex[barLO],MidPrice,barindex,MidPrice)coloured("Cyan") style(dottedline,4)ENDIFdrawtext("LO.H: #maxHighLO#",barindex[round(barLO/2)],maxHighLO+0.3*tr)drawtext("LO.L: #minLowLO#",barindex[round(barLO/2)],minLowLO-0.3*tr)prevLowLO=minLowLOprevHighLO=maxHighLOprevidxLO=barindexbarLO=0minLowLO=high*100maxHighLO=0endifif low crosses under prevLowLO thendrawsegment(previdxLO,prevLowLO,barindex,prevLowLO)coloured("red")prevLowLO=0elsif opentime=limitday and prevLowLO<>0 thendrawsegment(previdxLO,prevLowLO,barindex,prevLowLO)coloured("red")prevLowLO=0elsif islastbarupdate and prevLowLO<>0 thendrawsegment(previdxLO,prevLowLO,barindex,prevLowLO)coloured("red")endifif high crosses over prevHighLO thendrawsegment(previdxLO,prevHighLO,barindex,prevHighLO)coloured("red")prevHighLO=0elsif opentime=limitday and prevHighLO<>0 thendrawsegment(previdxLO,prevHighLO,barindex,prevHighLO)coloured("red")prevHighLO=0elsif islastbarupdate and prevHighLO<>0 thendrawsegment(previdxLO,prevHighLO,barindex,prevHighLO)coloured("red")endifif ShowNylch then//----------------------------------------------////-----New York AM------------------------------////----------------------------------------------//once maxHighNYam=highonce minLowNYam=lowif opentime>=openNYam and opentime<=closeNYam thenbarNYam=barNYam+1if high>=maxHighNYam thenmaxHighNYam=highelsemaxHighNYam=maxHighNYamendifif low<=minLowNYam thenminLowNYam=lowelseminLowNYam=minLowNYamendifendifif opentime=closeNYam thendrawrectangle(barindex[barNYam],minLowNYam,barindex,maxHighNYam)coloured("green")fillcolor("green",30)IF ShowMidLine THENMidRange = (maxHighNYam - minLowNYam) / 2MidPrice = minLowNYam + MidRangedrawsegment(barindex[barNYam],MidPrice,barindex,MidPrice)coloured("Cyan") style(dottedline,4)ENDIFdrawtext("NYam.H: #maxHighNYam#",barindex[round(barNYam/2)],maxHighNYam+0.3*tr)drawtext("NYam.L: #minLowNYam#",barindex[round(barNYam/2)],minLowNYam-0.3*tr)prevLowNYam=minLowNYamprevHighNYam=maxHighNYamprevidxNYam=barindexbarNYam=0minLowNYam=high*100maxHighNYam=0endifif low crosses under prevLowNYam thendrawsegment(previdxNYam,prevLowNYam,barindex,prevLowNYam)coloured("green")prevLowNYam=0elsif opentime=limitday and prevLowNYam<>0 thendrawsegment(previdxNYam,prevLowNYam,barindex,prevLowNYam)coloured("green")prevLowNYam=0elsif islastbarupdate and prevLowNYam<>0 thendrawsegment(previdxNYam,prevLowNYam,barindex,prevLowNYam)coloured("green")endifif high crosses over prevHighNYam thendrawsegment(previdxNYam,prevHighNYam,barindex,prevHighNYam)coloured("green")prevHighNYam=0elsif opentime=limitday and prevHighNYam<>0 thendrawsegment(previdxNYam,prevHighNYam,barindex,prevHighNYam)coloured("green")prevHighNYam=0elsif islastbarupdate and prevHighNYam<>0 thendrawsegment(previdxNYam,prevHighNYam,barindex,prevHighNYam)coloured("green")endif//----------------------------------------------////-----New York lunch Zone----------------------////----------------------------------------------//once maxHighNYlch=highonce minLowNYlch=lowif opentime>=openNYlch and opentime<=closeNYlch thenbarNYlch=barNYlch+1if high>=maxHighNYlch thenmaxHighNYlch=highelsemaxHighNYlch=maxHighNYlchendifif low<=minLowNYlch thenminLowNYlch=lowelseminLowNYlch=minLowNYlchendifendifif opentime=closeNYlch thendrawrectangle(barindex[barNYlch],minLowNYlch,barindex,maxHighNYlch)coloured("yellow")fillcolor("yellow",30)IF ShowMidLine THENMidRange = (maxHighNYlch - minLowNYlch) / 2MidPrice = minLowNYlch + MidRangedrawsegment(barindex[barNYlch],MidPrice,barindex,MidPrice)coloured("Cyan") style(dottedline,4)ENDIFprevLowNYlch=minLowNYlchprevHighNYlch=maxHighNYlchprevidxNYlch=barindexbarNYlch=0minLowNYlch=high*100maxHighNYlch=0endif//----------------------------------------------////-----New York PM -----------------------------////----------------------------------------------//once maxHighNYpm=highonce minLowNYpm=lowif opentime>=openNYpm and opentime<=closeNYpm thenbarNYpm=barNYpm+1if high>=maxHighNYpm thenmaxHighNYpm=highelsemaxHighNYpm=maxHighNYpmendifif low<=minLowNYpm thenminLowNYpm=lowelseminLowNYpm=minLowNYpmendifendifif opentime=closeNYpm thendrawrectangle(barindex[barNYpm],minLowNYpm,barindex,maxHighNYpm)coloured("purple")fillcolor("purple",30)IF ShowMidLine THENMidRange = (maxHighNYpm - minLowNYpm) / 2MidPrice = minLowNYpm + MidRangeENDIFdrawsegment(barindex[barNYpm],MidPrice,barindex,MidPrice)coloured("Cyan") style(dottedline,4)drawtext("NYpm.H: #maxHighNYpm#",barindex[round(barNYpm/2)],maxHighNYpm+0.3*tr)drawtext("NYpm.L: #minLowNYpm#",barindex[round(barNYpm/2)],minLowNYpm-0.3*tr)prevLowNYpm=minLowNYpmprevHighNYpm=maxHighNYpmprevidxNYpm=barindexbarNYpm=0minLowNYpm=high*100maxHighNYpm=0endifif low crosses under prevLowNYpm thendrawsegment(previdxNYpm,prevLowNYpm,barindex,prevLowNYpm)coloured("purple")prevLowNYpm=0elsif opentime=limitday and prevLowNYpm<>0 thendrawsegment(previdxNYpm,prevLowNYpm,barindex,prevLowNYpm)coloured("purple")prevLowNYpm=0elsif islastbarupdate and prevLowNYpm<>0 thendrawsegment(previdxNYpm,prevLowNYpm,barindex,prevLowNYpm)coloured("purple")endifif high crosses over prevHighNYpm thendrawsegment(previdxNYpm,prevHighNYpm,barindex,prevHighNYpm)coloured("purple")prevHighNYpm=0elsif opentime=limitday and prevHighNYpm<>0 thendrawsegment(previdxNYpm,prevHighNYpm,barindex,prevHighNYpm)coloured("purple")prevHighNYpm=0elsif islastbarupdate and prevHighNYpm<>0 thendrawsegment(previdxNYpm,prevHighNYpm,barindex,prevHighNYpm)coloured("purple")endifelseonce maxHighNY=highonce minLowNY=lowif opentime>=openNY and opentime<=closeNY thenbarNY=barNY+1if high>=maxHighNY thenmaxHighNY=highelsemaxHighNY=maxHighNYendifif low<=minLowNY thenminLowNY=lowelseminLowNY=minLowNYendifendifif opentime=closeNY thendrawrectangle(barindex[barNY],minLowNY,barindex,maxHighNY)coloured("purple")fillcolor("purple",30)drawtext("NY.H: #maxHighNY#",barindex[round(barNY/2)],maxHighNY+0.3*tr)drawtext("NY.L: #minLowNY#",barindex[round(barNY/2)],minLowNY-0.3*tr)prevLowNY=minLowNYprevHighNY=maxHighNYprevidxNY=barindexbarNY=0minLowNY=high*100maxHighNY=0endifif low crosses under prevLowNY thendrawsegment(previdxNY,prevLowNY,barindex,prevLowNY)coloured("purple")prevLowNY=0elsif opentime=limitday and prevLowNY<>0 thendrawsegment(previdxNY,prevLowNY,barindex,prevLowNY)coloured("purple")prevLowNY=0elsif islastbarupdate and prevLowNY<>0 thendrawsegment(previdxNY,prevLowNY,barindex,prevLowNY)coloured("purple")endifif high crosses over prevHighNY thendrawsegment(previdxNY,prevHighNY,barindex,prevHighNY)coloured("purple")prevHighNY=0elsif opentime=limitday and prevHighNY<>0 thendrawsegment(previdxNY,prevHighNY,barindex,prevHighNY)coloured("purple")prevHighNY=0elsif islastbarupdate and prevHighNY<>0 thendrawsegment(previdxNY,prevHighNY,barindex,prevHighNY)coloured("purple")endifendif//----------------------------------------------////-----Limit Day--------------------------------////----------------------------------------------//if opentime=openTrueDay thenopenTD=openbarTD=barindexelseif opentime=limitday thendrawvline(barindex)style(dottedline)drawsegment(barTD,openTD,barindex,openTD)style(dottedline1)endifendifelsedrawtext("Change timeframe to 1hr or less",0,0,SansSerif,bold,34)anchor(middle,xshift,yshift)endifreturn06/02/2025 at 1:28 PM #247807Hallo robertogozzi vielen Dank sowas ähnliches nutze Ich jetzt auch schon.
Muss mal schauen will das eigentlich so wie die anderen Boxen auch haben (Name/High/Low) und das High und Low enden wenn sie Berührt werden wie die anderen Boxen auch .
Viele Grüße
Peter
06/03/2025 at 10:04 AM #247841Da ist er:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382//----------------------------------------------////PRC_ICT Killzones and Pivots//version = 0//10.10.2024//Iván González @ www.prorealcode.com//Sharing ProRealTime knowledge//----------------------------------------------////-----INPUTS-----------------------------------////----------------------------------------------////openAS=020000//closeAS=060000//openLO=080000//closeLO=110000//openNYam=153000//closeNYam=170000//openNYlch=180000//closeNYlch=190000//openNYpm=193000//closeNYpm=220000//ShowNylch=1//ShowMidLine=1openNY=openNYamcloseNY=closeNYpmlimitday=180000openTrueDay=060000BOXstart = 220000BOXend = 080000if gettimeframe<=3600 then//----------------------------------------------////-------- NIGHT Box --------------------////----------------------------------------------//IF ShowNight THENONCE BOXmax = highONCE BOXmin = lowONCE prevBOXlow = lowONCE prevBOXhigh = highONCE BOXStartBar = BarIndexONCE BOXEndBar = BarIndexIF (OpenTime >= BOXstart) OR (OpenTime <= BOXend) THENIF (OpenTime = BOXstart) THENBOXmax = highBOXmin = lowBOXStartBar = BarIndexENDIFBOXmax = max(BOXmax,high)BOXmin = min(BOXmin,low)BOXEndBar = BarIndexIF (OpenTime = BOXend) THENprevBOXmin = BOXminprevBOXmax = BOXmaxDrawRectangle(BOXStartBar,prevBOXmax ,BOXEndBar,prevBOXmin) style(DottedLine,1) coloured("CadetBlue") FillColor("CadetBlue",50)IF ShowMidLine THENMidRange = (prevBOXmax - prevBOXmin) / 2MidPrice = prevBOXmin + MidRangedrawsegment(BOXStartBar,MidPrice,BOXEndBar,MidPrice)coloured("Gold") style(dottedline,4)ENDIFprevBOXEndBar = BOXEndBarENDIFENDIFif low crosses under prevBOXmin thendrawsegment(prevBOXEndBar,prevBOXmin,barindex,prevBOXmin)coloured("CadetBlue")prevBOXmin=0elsif opentime=limitday and prevBOXmin<>0 thendrawsegment(prevBOXEndBar,prevBOXmin,barindex,prevBOXmin)coloured("CadetBlue")prevBOXmin=0elsif islastbarupdate and prevBOXmin<>0 thendrawsegment(prevBOXEndBar,prevBOXmin,barindex,prevBOXmin)coloured("CadetBlue")endifif high crosses over prevBOXmax thendrawsegment(prevBOXEndBar,prevBOXmax,barindex,prevBOXmax)coloured("CadetBlue")prevHighLO=0elsif opentime=limitday and prevBOXmax<>0 thendrawsegment(prevBOXEndBar,prevBOXmax,barindex,prevBOXmax)coloured("CadetBlue")prevHighLO=0elsif islastbarupdate and prevBOXmax<>0 thendrawsegment(prevBOXEndBar,prevBOXmax,barindex,prevBOXmax)coloured("CadetBlue")endifENDIF//----------------------------------------------////-----ASIA Zone--------------------------------////----------------------------------------------//once maxHighAS=highonce minLowAS=lowif opentime>=openAS and opentime<=closeAS thenbarAS=barAS+1if high>=maxHighAS thenmaxHighAS=highelsemaxHighAS=maxHighASendifif low<=minLowAS thenminLowAS=lowelseminLowAS=minLowASendifendifif opentime=closeAS thendrawrectangle(barindex[barAS],minLowAS,barindex,maxHighAS)coloured("blue")fillcolor("blue",30)IF ShowMidLine THENMidRange = (maxHighAS - minLowAS) / 2MidPrice = minLowAS + MidRangedrawsegment(barindex[barAS],MidPrice,barindex,MidPrice)coloured("Cyan") style(dottedline,4)ENDIFdrawtext("AS.H: #maxHighAS#",barindex[round(barAS/2)],maxHighAS+0.3*tr)drawtext("AS.L: #minLowAS#",barindex[round(barAS/2)],minLowAS-0.3*tr)prevLowAS=minLowASprevHighAS=maxHighASprevidxAS=barindexbarAS=0minLowAS=high*100maxHighAS=0endifif low crosses under prevLowAS thendrawsegment(previdxAS,prevLowAS,barindex,prevLowAS)coloured("blue")prevLowAS=0elsif opentime=limitday and prevLowAS<>0 thendrawsegment(previdxAS,prevLowAS,barindex,prevLowAS)coloured("blue")prevLowAS=0elsif islastbarupdate and prevLowAS<>0 thendrawsegment(previdxAS,prevLowAS,barindex,prevLowAS)coloured("blue")endifif high crosses over prevHighAS thendrawsegment(previdxAS,prevHighAS,barindex,prevHighAS)coloured("blue")prevHighAS=0elsif opentime=limitday and prevHighAS<>0 thendrawsegment(previdxAS,prevHighAS,barindex,prevHighAS)coloured("blue")prevHighAS=0elsif islastbarupdate and prevHighAS<>0 thendrawsegment(previdxAS,prevHighAS,barindex,prevHighAS)coloured("blue")endif//----------------------------------------------////-----London Zone------------------------------////----------------------------------------------//once maxHighLO=highonce minLowLO=lowif opentime>=openLO and opentime<=closeLO thenbarLO=barLO+1if high>=maxHighLO thenmaxHighLO=highelsemaxHighLO=maxHighLOendifif low<=minLowLO thenminLowLO=lowelseminLowLO=minLowLOendifendifif opentime=closeLO thendrawrectangle(barindex[barLO],minLowLO,barindex,maxHighLO)coloured("red")fillcolor("red",30)IF ShowMidLine THENMidRange = (maxHighLO - minLowLO) / 2MidPrice = minLowLO + MidRangedrawsegment(barindex[barLO],MidPrice,barindex,MidPrice)coloured("Cyan") style(dottedline,4)ENDIFdrawtext("LO.H: #maxHighLO#",barindex[round(barLO/2)],maxHighLO+0.3*tr)drawtext("LO.L: #minLowLO#",barindex[round(barLO/2)],minLowLO-0.3*tr)prevLowLO=minLowLOprevHighLO=maxHighLOprevidxLO=barindexbarLO=0minLowLO=high*100maxHighLO=0endifif low crosses under prevLowLO thendrawsegment(previdxLO,prevLowLO,barindex,prevLowLO)coloured("red")prevLowLO=0elsif opentime=limitday and prevLowLO<>0 thendrawsegment(previdxLO,prevLowLO,barindex,prevLowLO)coloured("red")prevLowLO=0elsif islastbarupdate and prevLowLO<>0 thendrawsegment(previdxLO,prevLowLO,barindex,prevLowLO)coloured("red")endifif high crosses over prevHighLO thendrawsegment(previdxLO,prevHighLO,barindex,prevHighLO)coloured("red")prevHighLO=0elsif opentime=limitday and prevHighLO<>0 thendrawsegment(previdxLO,prevHighLO,barindex,prevHighLO)coloured("red")prevHighLO=0elsif islastbarupdate and prevHighLO<>0 thendrawsegment(previdxLO,prevHighLO,barindex,prevHighLO)coloured("red")endifif ShowNylch then//----------------------------------------------////-----New York AM------------------------------////----------------------------------------------//once maxHighNYam=highonce minLowNYam=lowif opentime>=openNYam and opentime<=closeNYam thenbarNYam=barNYam+1if high>=maxHighNYam thenmaxHighNYam=highelsemaxHighNYam=maxHighNYamendifif low<=minLowNYam thenminLowNYam=lowelseminLowNYam=minLowNYamendifendifif opentime=closeNYam thendrawrectangle(barindex[barNYam],minLowNYam,barindex,maxHighNYam)coloured("green")fillcolor("green",30)IF ShowMidLine THENMidRange = (maxHighNYam - minLowNYam) / 2MidPrice = minLowNYam + MidRangedrawsegment(barindex[barNYam],MidPrice,barindex,MidPrice)coloured("Cyan") style(dottedline,4)ENDIFdrawtext("NYam.H: #maxHighNYam#",barindex[round(barNYam/2)],maxHighNYam+0.3*tr)drawtext("NYam.L: #minLowNYam#",barindex[round(barNYam/2)],minLowNYam-0.3*tr)prevLowNYam=minLowNYamprevHighNYam=maxHighNYamprevidxNYam=barindexbarNYam=0minLowNYam=high*100maxHighNYam=0endifif low crosses under prevLowNYam thendrawsegment(previdxNYam,prevLowNYam,barindex,prevLowNYam)coloured("green")prevLowNYam=0elsif opentime=limitday and prevLowNYam<>0 thendrawsegment(previdxNYam,prevLowNYam,barindex,prevLowNYam)coloured("green")prevLowNYam=0elsif islastbarupdate and prevLowNYam<>0 thendrawsegment(previdxNYam,prevLowNYam,barindex,prevLowNYam)coloured("green")endifif high crosses over prevHighNYam thendrawsegment(previdxNYam,prevHighNYam,barindex,prevHighNYam)coloured("green")prevHighNYam=0elsif opentime=limitday and prevHighNYam<>0 thendrawsegment(previdxNYam,prevHighNYam,barindex,prevHighNYam)coloured("green")prevHighNYam=0elsif islastbarupdate and prevHighNYam<>0 thendrawsegment(previdxNYam,prevHighNYam,barindex,prevHighNYam)coloured("green")endif//----------------------------------------------////-----New York lunch Zone----------------------////----------------------------------------------//once maxHighNYlch=highonce minLowNYlch=lowif opentime>=openNYlch and opentime<=closeNYlch thenbarNYlch=barNYlch+1if high>=maxHighNYlch thenmaxHighNYlch=highelsemaxHighNYlch=maxHighNYlchendifif low<=minLowNYlch thenminLowNYlch=lowelseminLowNYlch=minLowNYlchendifendifif opentime=closeNYlch thendrawrectangle(barindex[barNYlch],minLowNYlch,barindex,maxHighNYlch)coloured("yellow")fillcolor("yellow",30)IF ShowMidLine THENMidRange = (maxHighNYlch - minLowNYlch) / 2MidPrice = minLowNYlch + MidRangedrawsegment(barindex[barNYlch],MidPrice,barindex,MidPrice)coloured("Cyan") style(dottedline,4)ENDIFprevLowNYlch=minLowNYlchprevHighNYlch=maxHighNYlchprevidxNYlch=barindexbarNYlch=0minLowNYlch=high*100maxHighNYlch=0endif//----------------------------------------------////-----New York PM -----------------------------////----------------------------------------------//once maxHighNYpm=highonce minLowNYpm=lowif opentime>=openNYpm and opentime<=closeNYpm thenbarNYpm=barNYpm+1if high>=maxHighNYpm thenmaxHighNYpm=highelsemaxHighNYpm=maxHighNYpmendifif low<=minLowNYpm thenminLowNYpm=lowelseminLowNYpm=minLowNYpmendifendifif opentime=closeNYpm thendrawrectangle(barindex[barNYpm],minLowNYpm,barindex,maxHighNYpm)coloured("purple")fillcolor("purple",30)IF ShowMidLine THENMidRange = (maxHighNYpm - minLowNYpm) / 2MidPrice = minLowNYpm + MidRangeENDIFdrawsegment(barindex[barNYpm],MidPrice,barindex,MidPrice)coloured("Cyan") style(dottedline,4)drawtext("NYpm.H: #maxHighNYpm#",barindex[round(barNYpm/2)],maxHighNYpm+0.3*tr)drawtext("NYpm.L: #minLowNYpm#",barindex[round(barNYpm/2)],minLowNYpm-0.3*tr)prevLowNYpm=minLowNYpmprevHighNYpm=maxHighNYpmprevidxNYpm=barindexbarNYpm=0minLowNYpm=high*100maxHighNYpm=0endifif low crosses under prevLowNYpm thendrawsegment(previdxNYpm,prevLowNYpm,barindex,prevLowNYpm)coloured("purple")prevLowNYpm=0elsif opentime=limitday and prevLowNYpm<>0 thendrawsegment(previdxNYpm,prevLowNYpm,barindex,prevLowNYpm)coloured("purple")prevLowNYpm=0elsif islastbarupdate and prevLowNYpm<>0 thendrawsegment(previdxNYpm,prevLowNYpm,barindex,prevLowNYpm)coloured("purple")endifif high crosses over prevHighNYpm thendrawsegment(previdxNYpm,prevHighNYpm,barindex,prevHighNYpm)coloured("purple")prevHighNYpm=0elsif opentime=limitday and prevHighNYpm<>0 thendrawsegment(previdxNYpm,prevHighNYpm,barindex,prevHighNYpm)coloured("purple")prevHighNYpm=0elsif islastbarupdate and prevHighNYpm<>0 thendrawsegment(previdxNYpm,prevHighNYpm,barindex,prevHighNYpm)coloured("purple")endifelseonce maxHighNY=highonce minLowNY=lowif opentime>=openNY and opentime<=closeNY thenbarNY=barNY+1if high>=maxHighNY thenmaxHighNY=highelsemaxHighNY=maxHighNYendifif low<=minLowNY thenminLowNY=lowelseminLowNY=minLowNYendifendifif opentime=closeNY thendrawrectangle(barindex[barNY],minLowNY,barindex,maxHighNY)coloured("purple")fillcolor("purple",30)drawtext("NY.H: #maxHighNY#",barindex[round(barNY/2)],maxHighNY+0.3*tr)drawtext("NY.L: #minLowNY#",barindex[round(barNY/2)],minLowNY-0.3*tr)prevLowNY=minLowNYprevHighNY=maxHighNYprevidxNY=barindexbarNY=0minLowNY=high*100maxHighNY=0endifif low crosses under prevLowNY thendrawsegment(previdxNY,prevLowNY,barindex,prevLowNY)coloured("purple")prevLowNY=0elsif opentime=limitday and prevLowNY<>0 thendrawsegment(previdxNY,prevLowNY,barindex,prevLowNY)coloured("purple")prevLowNY=0elsif islastbarupdate and prevLowNY<>0 thendrawsegment(previdxNY,prevLowNY,barindex,prevLowNY)coloured("purple")endifif high crosses over prevHighNY thendrawsegment(previdxNY,prevHighNY,barindex,prevHighNY)coloured("purple")prevHighNY=0elsif opentime=limitday and prevHighNY<>0 thendrawsegment(previdxNY,prevHighNY,barindex,prevHighNY)coloured("purple")prevHighNY=0elsif islastbarupdate and prevHighNY<>0 thendrawsegment(previdxNY,prevHighNY,barindex,prevHighNY)coloured("purple")endifendif//----------------------------------------------////-----Limit Day--------------------------------////----------------------------------------------//if opentime=openTrueDay thenopenTD=openbarTD=barindexelseif opentime=limitday thendrawvline(barindex)style(dottedline)drawsegment(barTD,openTD,barindex,openTD)style(dottedline1)endifendifelsedrawtext("Change timeframe to 1hr or less",0,0,SansSerif,bold,34)anchor(middle,xshift,yshift)endifreturn1 user thanked author for this post.
06/03/2025 at 10:48 AM #24784306/04/2025 at 12:23 PM #247872Ich habe es mal probiert aber Ich bekomme die Beschriftung mit den Werten für die Nachtbox nicht hin.
Was Ich festgestellt habe die High und Low Linien werden auch nicht immer beendet siehe Beispiel grüner Haken richtig rotes Kreuz hat nicht geklappt.
Vielleicht können Sie ja nochmal nachschauen wenn Sie Zeit haben .
06/04/2025 at 3:36 PM #247890Wann sollen die Zeilen enden?
Was soll als Text geschrieben werden?06/04/2025 at 5:01 PM #247902Hallo robertogozzi
Als Text reicht mir die Werte des Tiefs und Hochs der Nachtbox unter bzw. über der Box wie sonst auch .
Das mit den Linie Hoch oder Tief ist denke Ich ein Fehler vom Indikator bzw. ProRealtime generell den es funktioniert ja auch oft das die Linien für Hoch oder Tief enden wenn sie über bzw. unterschritten werden .
Das ist ja wie bei den anderen Boxen des Indikators da geht es manchmal auch nicht und sie werden weiter gezeichnet.
habe nochmal ein Beispiel Bild angehängt (zur besseren Übersicht zeigt der Indikator nur die Nachtbox), hoffe es ist verständlich.
Vielen Dank
06/05/2025 at 8:02 AM #247921Ich habe die Variable „ShowExtensions“ hinzugefügt (siehe beigefügtes Foto). Sie können diese Erweiterungen aktivieren oder deaktivieren, um die Anzeige zu aktivieren oder zu deaktivieren.
Diese Erweiterungen werden nach Handelsschluss der jeweiligen Zeitzone ausgegeben, wenn das Hoch oder Tief unterschritten wird (d. h. der Preis unter- oder überschreitet).
Dies ist der aktualisierte Code:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397//----------------------------------------------////PRC_ICT Killzones and Pivots//version = 0//10.10.2024//Iván González @ www.prorealcode.com//Sharing ProRealTime knowledge//----------------------------------------------////-----INPUTS-----------------------------------////----------------------------------------------////openAS=020000//closeAS=060000//openLO=080000//closeLO=110000//openNYam=153000//closeNYam=170000//openNYlch=180000//closeNYlch=190000//openNYpm=193000//closeNYpm=220000//ShowNylch=1//ShowMidLine=1//ShowNight=1//ShowExtensions=1openNY=openNYamcloseNY=closeNYpmlimitday=180000openTrueDay=060000BOXstart = 220000BOXend = 080000if gettimeframe<=3600 then//----------------------------------------------////-------- NIGHT Box --------------------////----------------------------------------------//IF ShowNight THENONCE BOXmax = highONCE BOXmin = lowONCE prevBOXlow = lowONCE prevBOXhigh = highONCE BOXStartBar = BarIndexONCE BOXEndBar = BarIndexIF (OpenTime >= BOXstart) OR (OpenTime <= BOXend) THENIF (OpenTime = BOXstart) THENBOXmax = highBOXmin = lowBOXStartBar = BarIndexENDIFBOXmax = max(BOXmax,high)BOXmin = min(BOXmin,low)BOXEndBar = BarIndexIF (OpenTime = BOXend) THENprevBOXmin = BOXminprevBOXmax = BOXmaxDrawRectangle(BOXStartBar,prevBOXmax ,BOXEndBar,prevBOXmin) style(DottedLine,1) coloured("CadetBlue") FillColor("CadetBlue",50)IF ShowMidLine THENMidRange = (prevBOXmax - prevBOXmin) / 2MidPrice = prevBOXmin + MidRangedrawsegment(BOXStartBar,MidPrice,BOXEndBar,MidPrice)coloured("Gold") style(dottedline,4)ENDIFdrawtext("(Night) H:#prevBOXmax# L:#prevBOXmin#",BOXStartBar+4,prevBOXmax+0.3*tr)prevBOXEndBar = BOXEndBarENDIFENDIFIF ShowExtensions THENif low crosses under prevBOXmin thendrawsegment(prevBOXEndBar,prevBOXmin,barindex,prevBOXmin)coloured("CadetBlue")prevBOXmin=0elsif opentime=limitday and prevBOXmin<>0 thendrawsegment(prevBOXEndBar,prevBOXmin,barindex,prevBOXmin)coloured("CadetBlue")prevBOXmin=0elsif islastbarupdate and prevBOXmin<>0 thendrawsegment(prevBOXEndBar,prevBOXmin,barindex,prevBOXmin)coloured("CadetBlue")endifif high crosses over prevBOXmax thendrawsegment(prevBOXEndBar,prevBOXmax,barindex,prevBOXmax)coloured("CadetBlue")prevHighLO=0elsif opentime=limitday and prevBOXmax<>0 thendrawsegment(prevBOXEndBar,prevBOXmax,barindex,prevBOXmax)coloured("CadetBlue")prevHighLO=0elsif islastbarupdate and prevBOXmax<>0 thendrawsegment(prevBOXEndBar,prevBOXmax,barindex,prevBOXmax)coloured("CadetBlue")endifENDIFENDIF//----------------------------------------------////-----ASIA Zone--------------------------------////----------------------------------------------//once maxHighAS=highonce minLowAS=lowif opentime>=openAS and opentime<=closeAS thenbarAS=barAS+1if high>=maxHighAS thenmaxHighAS=highelsemaxHighAS=maxHighASendifif low<=minLowAS thenminLowAS=lowelseminLowAS=minLowASendifendifif opentime=closeAS thendrawrectangle(barindex[barAS],minLowAS,barindex,maxHighAS)coloured("blue")fillcolor("blue",30)IF ShowMidLine THENMidRange = (maxHighAS - minLowAS) / 2MidPrice = minLowAS + MidRangedrawsegment(barindex[barAS],MidPrice,barindex,MidPrice)coloured("Cyan") style(dottedline,4)ENDIFdrawtext("AS.H: #maxHighAS#",barindex[round(barAS/2)],maxHighAS+0.3*tr)drawtext("AS.L: #minLowAS#",barindex[round(barAS/2)],minLowAS-0.3*tr)prevLowAS=minLowASprevHighAS=maxHighASprevidxAS=barindexbarAS=0minLowAS=high*100maxHighAS=0endifIF ShowExtensions THENif low crosses under prevLowAS thendrawsegment(previdxAS,prevLowAS,barindex,prevLowAS)coloured("blue")prevLowAS=0elsif opentime=limitday and prevLowAS<>0 thendrawsegment(previdxAS,prevLowAS,barindex,prevLowAS)coloured("blue")prevLowAS=0elsif islastbarupdate and prevLowAS<>0 thendrawsegment(previdxAS,prevLowAS,barindex,prevLowAS)coloured("blue")endifif high crosses over prevHighAS thendrawsegment(previdxAS,prevHighAS,barindex,prevHighAS)coloured("blue")prevHighAS=0elsif opentime=limitday and prevHighAS<>0 thendrawsegment(previdxAS,prevHighAS,barindex,prevHighAS)coloured("blue")prevHighAS=0elsif islastbarupdate and prevHighAS<>0 thendrawsegment(previdxAS,prevHighAS,barindex,prevHighAS)coloured("blue")endifendif//----------------------------------------------////-----London Zone------------------------------////----------------------------------------------//once maxHighLO=highonce minLowLO=lowif opentime>=openLO and opentime<=closeLO thenbarLO=barLO+1if high>=maxHighLO thenmaxHighLO=highelsemaxHighLO=maxHighLOendifif low<=minLowLO thenminLowLO=lowelseminLowLO=minLowLOendifendifif opentime=closeLO thendrawrectangle(barindex[barLO],minLowLO,barindex,maxHighLO)coloured("red")fillcolor("red",30)IF ShowMidLine THENMidRange = (maxHighLO - minLowLO) / 2MidPrice = minLowLO + MidRangedrawsegment(barindex[barLO],MidPrice,barindex,MidPrice)coloured("Cyan") style(dottedline,4)ENDIFdrawtext("LO.H: #maxHighLO#",barindex[round(barLO/2)],maxHighLO+0.3*tr)drawtext("LO.L: #minLowLO#",barindex[round(barLO/2)],minLowLO-0.3*tr)prevLowLO=minLowLOprevHighLO=maxHighLOprevidxLO=barindexbarLO=0minLowLO=high*100maxHighLO=0endifIF ShowExtensions THENif low crosses under prevLowLO thendrawsegment(previdxLO,prevLowLO,barindex,prevLowLO)coloured("red")prevLowLO=0elsif opentime=limitday and prevLowLO<>0 thendrawsegment(previdxLO,prevLowLO,barindex,prevLowLO)coloured("red")prevLowLO=0elsif islastbarupdate and prevLowLO<>0 thendrawsegment(previdxLO,prevLowLO,barindex,prevLowLO)coloured("red")endifif high crosses over prevHighLO thendrawsegment(previdxLO,prevHighLO,barindex,prevHighLO)coloured("red")prevHighLO=0elsif opentime=limitday and prevHighLO<>0 thendrawsegment(previdxLO,prevHighLO,barindex,prevHighLO)coloured("red")prevHighLO=0elsif islastbarupdate and prevHighLO<>0 thendrawsegment(previdxLO,prevHighLO,barindex,prevHighLO)coloured("red")endifendifif ShowNylch then//----------------------------------------------////-----New York AM------------------------------////----------------------------------------------//once maxHighNYam=highonce minLowNYam=lowif opentime>=openNYam and opentime<=closeNYam thenbarNYam=barNYam+1if high>=maxHighNYam thenmaxHighNYam=highelsemaxHighNYam=maxHighNYamendifif low<=minLowNYam thenminLowNYam=lowelseminLowNYam=minLowNYamendifendifif opentime=closeNYam thendrawrectangle(barindex[barNYam],minLowNYam,barindex,maxHighNYam)coloured("green")fillcolor("green",30)IF ShowMidLine THENMidRange = (maxHighNYam - minLowNYam) / 2MidPrice = minLowNYam + MidRangedrawsegment(barindex[barNYam],MidPrice,barindex,MidPrice)coloured("Cyan") style(dottedline,4)ENDIFdrawtext("NYam.H: #maxHighNYam#",barindex[round(barNYam/2)],maxHighNYam+0.3*tr)drawtext("NYam.L: #minLowNYam#",barindex[round(barNYam/2)],minLowNYam-0.3*tr)prevLowNYam=minLowNYamprevHighNYam=maxHighNYamprevidxNYam=barindexbarNYam=0minLowNYam=high*100maxHighNYam=0endifIF ShowExtensions THENif low crosses under prevLowNYam thendrawsegment(previdxNYam,prevLowNYam,barindex,prevLowNYam)coloured("green")prevLowNYam=0elsif opentime=limitday and prevLowNYam<>0 thendrawsegment(previdxNYam,prevLowNYam,barindex,prevLowNYam)coloured("green")prevLowNYam=0elsif islastbarupdate and prevLowNYam<>0 thendrawsegment(previdxNYam,prevLowNYam,barindex,prevLowNYam)coloured("green")endifif high crosses over prevHighNYam thendrawsegment(previdxNYam,prevHighNYam,barindex,prevHighNYam)coloured("green")prevHighNYam=0elsif opentime=limitday and prevHighNYam<>0 thendrawsegment(previdxNYam,prevHighNYam,barindex,prevHighNYam)coloured("green")prevHighNYam=0elsif islastbarupdate and prevHighNYam<>0 thendrawsegment(previdxNYam,prevHighNYam,barindex,prevHighNYam)coloured("green")endifendif//----------------------------------------------////-----New York lunch Zone----------------------////----------------------------------------------//once maxHighNYlch=highonce minLowNYlch=lowif opentime>=openNYlch and opentime<=closeNYlch thenbarNYlch=barNYlch+1if high>=maxHighNYlch thenmaxHighNYlch=highelsemaxHighNYlch=maxHighNYlchendifif low<=minLowNYlch thenminLowNYlch=lowelseminLowNYlch=minLowNYlchendifendifif opentime=closeNYlch thendrawrectangle(barindex[barNYlch],minLowNYlch,barindex,maxHighNYlch)coloured("yellow")fillcolor("yellow",30)IF ShowMidLine THENMidRange = (maxHighNYlch - minLowNYlch) / 2MidPrice = minLowNYlch + MidRangedrawsegment(barindex[barNYlch],MidPrice,barindex,MidPrice)coloured("Cyan") style(dottedline,4)ENDIFprevLowNYlch=minLowNYlchprevHighNYlch=maxHighNYlchprevidxNYlch=barindexbarNYlch=0minLowNYlch=high*100maxHighNYlch=0endif//----------------------------------------------////-----New York PM -----------------------------////----------------------------------------------//once maxHighNYpm=highonce minLowNYpm=lowif opentime>=openNYpm and opentime<=closeNYpm thenbarNYpm=barNYpm+1if high>=maxHighNYpm thenmaxHighNYpm=highelsemaxHighNYpm=maxHighNYpmendifif low<=minLowNYpm thenminLowNYpm=lowelseminLowNYpm=minLowNYpmendifendifif opentime=closeNYpm thendrawrectangle(barindex[barNYpm],minLowNYpm,barindex,maxHighNYpm)coloured("purple")fillcolor("purple",30)IF ShowMidLine THENMidRange = (maxHighNYpm - minLowNYpm) / 2MidPrice = minLowNYpm + MidRangeENDIFdrawsegment(barindex[barNYpm],MidPrice,barindex,MidPrice)coloured("Cyan") style(dottedline,4)drawtext("NYpm.H: #maxHighNYpm#",barindex[round(barNYpm/2)],maxHighNYpm+0.3*tr)drawtext("NYpm.L: #minLowNYpm#",barindex[round(barNYpm/2)],minLowNYpm-0.3*tr)prevLowNYpm=minLowNYpmprevHighNYpm=maxHighNYpmprevidxNYpm=barindexbarNYpm=0minLowNYpm=high*100maxHighNYpm=0endifIF ShowExtensions THENif low crosses under prevLowNYpm thendrawsegment(previdxNYpm,prevLowNYpm,barindex,prevLowNYpm)coloured("purple")prevLowNYpm=0elsif opentime=limitday and prevLowNYpm<>0 thendrawsegment(previdxNYpm,prevLowNYpm,barindex,prevLowNYpm)coloured("purple")prevLowNYpm=0elsif islastbarupdate and prevLowNYpm<>0 thendrawsegment(previdxNYpm,prevLowNYpm,barindex,prevLowNYpm)coloured("purple")endifif high crosses over prevHighNYpm thendrawsegment(previdxNYpm,prevHighNYpm,barindex,prevHighNYpm)coloured("purple")prevHighNYpm=0elsif opentime=limitday and prevHighNYpm<>0 thendrawsegment(previdxNYpm,prevHighNYpm,barindex,prevHighNYpm)coloured("purple")prevHighNYpm=0elsif islastbarupdate and prevHighNYpm<>0 thendrawsegment(previdxNYpm,prevHighNYpm,barindex,prevHighNYpm)coloured("purple")endifendifelseonce maxHighNY=highonce minLowNY=lowif opentime>=openNY and opentime<=closeNY thenbarNY=barNY+1if high>=maxHighNY thenmaxHighNY=highelsemaxHighNY=maxHighNYendifif low<=minLowNY thenminLowNY=lowelseminLowNY=minLowNYendifendifif opentime=closeNY thendrawrectangle(barindex[barNY],minLowNY,barindex,maxHighNY)coloured("purple")fillcolor("purple",30)drawtext("NY.H: #maxHighNY#",barindex[round(barNY/2)],maxHighNY+0.3*tr)drawtext("NY.L: #minLowNY#",barindex[round(barNY/2)],minLowNY-0.3*tr)prevLowNY=minLowNYprevHighNY=maxHighNYprevidxNY=barindexbarNY=0minLowNY=high*100maxHighNY=0endifIF ShowExtensions THENif low crosses under prevLowNY thendrawsegment(previdxNY,prevLowNY,barindex,prevLowNY)coloured("purple")prevLowNY=0elsif opentime=limitday and prevLowNY<>0 thendrawsegment(previdxNY,prevLowNY,barindex,prevLowNY)coloured("purple")prevLowNY=0elsif islastbarupdate and prevLowNY<>0 thendrawsegment(previdxNY,prevLowNY,barindex,prevLowNY)coloured("purple")endifif high crosses over prevHighNY thendrawsegment(previdxNY,prevHighNY,barindex,prevHighNY)coloured("purple")prevHighNY=0elsif opentime=limitday and prevHighNY<>0 thendrawsegment(previdxNY,prevHighNY,barindex,prevHighNY)coloured("purple")prevHighNY=0elsif islastbarupdate and prevHighNY<>0 thendrawsegment(previdxNY,prevHighNY,barindex,prevHighNY)coloured("purple")endifendifendif//----------------------------------------------////-----Limit Day--------------------------------////----------------------------------------------//if opentime=openTrueDay thenopenTD=openbarTD=barindexelseif opentime=limitday thendrawvline(barindex)style(dottedline)drawsegment(barTD,openTD,barindex,openTD)style(dottedline1)endifendifelsedrawtext("Change timeframe to 1hr or less",0,0,SansSerif,bold,34)anchor(middle,xshift,yshift)endifreturn06/05/2025 at 11:03 AM #247942Hallo robertogozzi Ich muss mich nochmals sehr für Ihre Hilfe bedanken !
- das mit dem High/Low Wert hat geklappt hab Ich noch etwas angepasst erledigt 😉
- Habe als Indikator nur die Nachtbox genommen wegen der Übersichtlichkeit
- Im Bild sieht man gut die Linie unten enden wenn der Kurs die Linie unterschreitet
- bei den Linien oben funktioniert das aber nicht
- Mit ShowExtensionies blende Ich ja die Linien nur komplett aus das will Ich ja nicht
Vielleicht finden Sie ja noch den Fehler
-
AuthorPosts
Find exclusive trading pro-tools on