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 2 replies, 2 voices, and was last updated 3 weeks ago by
Razz.
Viewing 3 posts - 1 through 3 (of 3 total)
-
-
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 #246898 -
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
Find exclusive trading pro-tools on
Similar topics: