a screener for an Indicator by kris75
Forums › ProRealTime English forum › ProScreener support › a screener for an Indicator by kris75
- This topic has 14 replies, 3 voices, and was last updated 5 years ago by GraHal.
-
-
11/13/2019 at 2:46 PM #11269511/13/2019 at 8:09 PM #11272111/13/2019 at 8:17 PM #112724
Hello GraHal,
The itf file is attached, I found this indicator at the indicator library. Here’s the link:
11/13/2019 at 8:19 PM #11272511/13/2019 at 10:25 PM #112729I can’t even get it to work as an Indicator! 🙂
I haven’t tried very hard, but I can’t get even the two Indicators to work on the link you posted.
I tried on the DJI so there is volume data.
Probably something simple?
Why not try and get the Indicator converted to an Auto-Strategy?? Least then you can try on various markets and TF’s to see if the strategy can make any money by doing backtests etc??
I always think with a Screener that you end up with a list of results and if you took a trade on one of them and sat it out then you are only testing one trades compared to loads and loads of trades in a backtest??
11/13/2019 at 10:32 PM #11273011/13/2019 at 10:47 PM #112731Did you install the indicator on the price chart panel?
No! hahaha I installed as a separate chart … I knew it must be something simple! I’m watching a film with one eye also so I wasn’t concentrating! 🙂
how can I convert the indicator to an auto strategy?
I wish I knew! 🙂 But the effort could be more fruitful than ending up with a Screener??
If I come back to this and achieve anything then I’ll let you know … don’t hold your breath! 🙂
In the meantime, anybody please dive in and help?
11/13/2019 at 10:50 PM #11273211/14/2019 at 12:56 AM #11274011/14/2019 at 5:54 AM #112745@robertogozzi, can you please explain how did you convert it?
11/14/2019 at 10:15 AM #112756I removed all graphic instructions (not supported by ProScreener), then I added a dummy IF…END before the end to avoid removing unused variables, then added a conditions where you said you wanted it and used it to scan the market.
This is the code (but you’ll find the attached .ITF file, as well):
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601//The main goal of this indicator is to identify strengh and weekness in the distribution of volume per price//and to identify future support and resistance in the next ZIG ZAG sequence////VolumebypricelevelsV2Extended by Kris75//VolumeByPrice HighLowBreakdown (mods by Kris75)//PRC_multi-fractals-zigzag-highlow | indicator//PRC_Bull&Bear Volume on Price | indicator//05.07.2018//Nicolas @ www.prorealcode.com//Sharing ProRealTime knowledgeLookBack = 10NbOfDiv = 5ScaleFactor = 1LineExtension = 0FiboExtension = 0NumbarVerif = 0//r=100//g=100//b=100//r1=200//g1=200//b1=200////---major zigzag pointsif lastpoint <= 0 thenif close[LookBack] >= highest[2*LookBack+1](close) thenNewPeak = 1HighLookBack = high[LookBack]Higher = close[LookBack]HigherBarIndex = barindex[LookBack]elseNewPeak = 0endifendifif NewPeak thenNewHigherBarIndex = HigherBarIndexLastLowerBarIndex = NewLowerBarIndexNewHigher = higherLastLower = NewLowerLagAfterSignal = abs(barindex-NewHigherBarIndex)lastpoint=1//drawsegment (lastLowerBarindex,lastlower,HigherBarIndex,NewHigher) coloured (0,0,200)//drawsegment (NewHigherBarIndex,lastlower,NewHigherBarIndex,NewHigher) coloured (r1,g1,b1)//drawtext("▼", NewHigherBarIndex,HighLookBack) coloured(255,0,0)//// calculation of MinInf MinSup MaxStartBarindex = LastLowerBarIndexEndBarindex = NewHigherBarIndexStartBarindex = max(1,StartBarindex)EndBarindex = max(1,EndBarindex)LastLowerBarIndex = max(1,LastLowerBarIndex)NewHigherBarIndex = max(1,NewHigherBarIndex)StartBarSignalIndex = max(1,StartBarSignalIndex)StartBarSignalIndex = LagAfterSignal + (EndBarindex-StartBarindex) // calculation of the real Barindex when we get the Newpeak / Newdown information : we will need it to calculate the global volume during a sequence.hh=NewHigherll=LastLowerdiv = (hh-ll)/NbOfDiv // thickness of the horizontal bari=0//////// Fibofullrange = abs(hh-ll)fibo100 = hhfibo0 = llfibo236 = ll+(fullrange*0.236)fibo382 = ll+(fullrange*0.382)fibo500 = ll+fullrange/2fibo618 = ll+(fullrange*0.618)fibo764 = ll+(fullrange*0.764)// extensions++fibo1236 = hh +(fullrange*0.236)fibo1382 = hh +(fullrange*0.382)fibo1500 = hh +fullrange/2fibo1618 = hh +(fullrange*0.618)fibo1764 = hh +(fullrange*0.764)fibo200 = hh + fullrange// extensions--fibo0236 = ll - (fullrange*0.236)fibo0382 = ll - (fullrange*0.382)fibo0500 = ll - fullrange/2fibo0618 = ll - (fullrange*0.618)fibo0764 = ll - (fullrange*0.764)fibo00 = ll - fullrange///support - resistancelrangeminInf = 0hrangeminInf = 0lrangeminSup = 0hrangeminSup = 0lrangemax = 0hrangemax = 0MaxVol = 0NumBarVol = 0NumBarMaxVol = 0NumBarMinVolSup = 0NumBarMinVolInf = 0volsum = summation [StartBarSignalIndex](volume)-summation [LagAfterSignal](volume)while i<NbOfDiv dolrange=ll+div*ihrange=lrange+divvolbull=0volbear=0NumBarVol = i+1for q = StartBarSignalIndex downto LagAfterSignal doif close[q]>=lrange and close[q]<=hrange thenif close[q]>open[q] thenvolbull=volbull+volume[q]elsevolbear=volbear+volume[q]endifendifnext////bullbar = round((volbull*StartBar)/volsum)*scalefactor////bearbar = round((volbear*StartBar)/volsum)*scalefactorvolbar = ((volbear+volbull)/volsum)*abs(StartBarSignalIndex-LagAfterSignal)*scalefactorif i=0 thenlrangemax = lrangehrangemax = hrangeMaxVol = volbarNumBarMaxVol = NumBarVoLlrangeminSup = lrangehrangeminSup = hrangeMinVolSup = VolBarNumBarMinVolSup = NumBarVollrangeminInf = lrangehrangeminInf = hrangeMinVolInf = VolBarNumBarMinVolInf = NumBarVolendifif volbar > MaxVol thenlrangemax = lrangehrangemax = hrangeMaxVol = volbarNumBarMaxVol = NumBarVolif MinVolSup < MinVolInf thenlrangeminInf = lrangeminSuphrangeminInf = hrangeminSupMinVolInf = MinVolSupNumBarMinVolInf = NumBarMinVolSupendiflrangeminSup = lrangehrangeminSup = hrangeMinVolSup = VolBarNumBarMinVolSup = NumBarVolelsif volbar < MaxVol thenif volbar < MinVolSup thenlrangeminSup = lrangehrangeminSup = hrangeMinVolSup = VolBarNumBarMinVolSup = NumBarVolendifelselrangeminInf = lrangeminInfhrangeminInf = hrangeminInfMinVolInf = MinVolInfNumBarMinVolInf = NumBarMinVolInfendif//drawrectangle(StartbarIndex,lrange,StartbarIndex+volbar,hrange) coloured(46,139,87,255)i=i+1wendMaxVolumLevel = (lrangemax + hrangemax)/2MinVolumSupLevel = (lrangeminSup + hrangeminSup)/2MinVolumInfLevel = (lrangeminInf + hrangeminInf)/2// option drawing the support and resistance lineif LineExtension then//DRAWHLINE((lrangemax + hrangemax)/2)coloured(0,255,0)endif// option checking the support and resistance line calculationif NumbarVerif then//drawtext("#NumBarMaxVol#",StartbarIndex-1,MaxVolumLevel,Dialog,standard,10) coloured(255,0,0)//drawtext("#NumBarMinVolSup#",StartbarIndex-1,MinVolumSupLevel,Dialog,standard,10) coloured(255,0,0)//drawtext("#NumBarMinVolInf#",StartbarIndex-1,MinVolumInfLevel,Dialog,standard,10) coloured(255,0,0)endif////drawtext("▼▼",StartbarIndex+2,MinVolumInfLevel,Dialog,standard,10) coloured(0,0,255)// MinInf//drawtext("▲▲",StartbarIndex+2,MinVolumSupLevel,Dialog,standard,10) coloured(0,0,255)// MinSup//drawtext("■■",StartbarIndex+2,MaxVolumLevel,Dialog,standard,10) coloured(255,0,0) // Max// Fibo//drawsegment(StartbarIndex,fibo100,EndbarIndex,fibo100) coloured(r1,g1,b1)//drawtext("100 -",EndbarIndex-2,fibo100,Dialog,Standard,10) coloured(r,g,b)////drawsegment(EndbarIndex+1,fibo236,EndbarIndex,fibo236) coloured(r1,g1,b1)//drawtext("23.6",EndbarIndex-2,fibo236,Dialog,Standard,10) coloured(r,g,b)////drawsegment(EndbarIndex+1,fibo382,EndbarIndex,fibo382) coloured(r1,g1,b1)//drawtext("38.2",EndbarIndex-2,fibo382,Dialog,Standard,10) coloured(r,g,b)////drawsegment(EndbarIndex+1,fibo500,EndbarIndex,fibo500) coloured(r1,g1,b1)//drawtext("50",EndbarIndex-2,fibo500,Dialog,Standard,10) coloured(r,g,b)////drawsegment(EndbarIndex+1,fibo618,EndbarIndex,fibo618) coloured(r1,g1,b1)//drawtext("61.8",EndbarIndex-2,fibo618,Dialog,Standard,10) coloured(r,g,b)////drawsegment(EndbarIndex+1,fibo764,EndbarIndex,fibo764) coloured(r1,g1,b1)//drawtext("76.4",EndbarIndex-2,fibo764,Dialog,Standard,10) coloured(r,g,b)////drawsegment(StartbarIndex,fibo0,EndbarIndex,fibo0) coloured(r1,g1,b1)//drawtext("0",EndbarIndex-2,fibo0,Dialog,Standard,10) coloured(r,g,b)// option extending Fibonacci lines to create potential takeprofitsif FiboExtension then//drawsegment (EndbarIndex,fibo200,EndbarIndex,fibo00) coloured (r1,g1,b1)// Extensions++//drawsegment(EndbarIndex+1,fibo1236,EndbarIndex,fibo1236) coloured(0,255,0)//drawtext("+23.6",EndbarIndex-2,fibo1236,Dialog,Standard,10) coloured(0,255,0)////drawsegment(EndbarIndex+1,fibo1382,EndbarIndex,fibo1382) coloured(0,255,0)//drawtext("+38.2",EndbarIndex-2,fibo1382,Dialog,Standard,10) coloured(0,255,0)////drawsegment(EndbarIndex+1,fibo1500,EndbarIndex,fibo1500) coloured(0,255,0)//drawtext("+50",EndbarIndex-2,fibo1500,Dialog,Standard,10) coloured(0,255,0)////drawsegment(EndbarIndex+1,fibo1618,EndbarIndex,fibo1618) coloured(0,255,0)//drawtext("+61.8",EndbarIndex-2,fibo1618,Dialog,Standard,10) coloured(0,255,0)////drawsegment(EndbarIndex+1,fibo1764,EndbarIndex,fibo1764) coloured(0,255,0)//drawtext("+76.4",EndbarIndex-2,fibo1764,Dialog,Standard,10) coloured(0,255,0)////drawsegment(EndbarIndex+1,fibo200,EndbarIndex,fibo200) coloured(0,255,0)//drawtext("200",EndbarIndex-2,fibo200,Dialog,Standard,10) coloured(0,255,0)////// Extensions --//drawsegment(EndbarIndex+1,fibo0236,EndbarIndex,fibo0236) coloured(255,0,0)//drawtext("-23.6",EndbarIndex-2,fibo0236,Dialog,Standard,10) coloured(255,0,0)////drawsegment(EndbarIndex+1,fibo0382,EndbarIndex,fibo0382) coloured(255,0,0)//drawtext("-38.2",EndbarIndex-2,fibo0382,Dialog,Standard,10) coloured(255,0,0)////drawsegment(EndbarIndex+1,fibo0500,EndbarIndex,fibo0500) coloured(255,0,0)//drawtext("-50",EndbarIndex-2,fibo0500,Dialog,Standard,10) coloured(255,0,0)////drawsegment(EndbarIndex+1,fibo0618,EndbarIndex,fibo0618) coloured(255,0,0)//drawtext("-61.8",EndbarIndex-2,fibo0618,Dialog,Standard,10) coloured(255,0,0)////drawsegment(EndbarIndex+1,fibo0764,EndbarIndex,fibo0764) coloured(255,0,0)//drawtext("-76.4",EndbarIndex-2,fibo0764,Dialog,Standard,10) coloured(255,0,0)////drawsegment(EndbarIndex+1,fibo00,EndbarIndex,fibo00) coloured(255,0,0)//drawtext("-200",EndbarIndex-2,fibo00,Dialog,Standard,10) coloured(255,0,0)endifendif////// ZigZag for ProOrderif lastpoint>=0 thenif close[LookBack] <= lowest[2*LookBack+1](close) thenNewDown = 1Lower = close[LookBack]LowLookBack = Low[LookBack]LowerBarIndex = barindex[LookBack]elseNewDown = 0endifendifMyCond = 0if NewDown thenNewLowerBarIndex=LowerBarIndexLastHigherBarIndex = NewHigherBarIndexNewlower = lowerLastHigher = NewHigherLagAfterSignal = abs(barindex-NewLowerBarIndex)lastpoint = -1////drawsegment (LastHigherBarIndex,lasthigher,NewLowerBarIndex,NewLower) coloured (0,0,255)//drawsegment (LastLowerBarIndex,Newlower,LastLowerBarIndex,Lasthigher) coloured (r1,g1,b1)//drawtext("▲", LowerBarIndex, LowLookBack) coloured (255,0,0)MyCond = 1//// calculation MinInf MinSup MaxEndBarindex = NewLowerBarIndexStartBarindex = LastHigherBarIndexStartBarindex = max(1,StartBarindex)Endbarindex = max(1,Endbarindex)StartBarSignalIndex = max(1,StartBarSignalIndex)StartBarSignalIndex = LagAfterSignal + (EndBarindex-StartBarindex) // calculation of the real Barindex when we get the Newpeak / Newdown information : we will need it to calculate the global volume during a sequence.hh=Lasthigherll=Newlowerdiv = (hh-ll)/NbOfDiv // thickness of the horizontal bari=0///Fibofullrange = abs(hh-ll)fibo100 = llfibo0 = hhfibo236 = hh-(fullrange*0.236)fibo382 = hh-(fullrange*0.382)fibo500 = hh-fullrange/2fibo618 = hh-(fullrange*0.618)fibo764 = hh-(fullrange*0.764)// extensions--fibo0236 = ll - (fullrange*0.236)fibo0382 = ll - (fullrange*0.382)fibo0500 = ll - fullrange/2fibo0618 = ll - (fullrange*0.618)fibo0764 = ll - (fullrange*0.764)fibo00 = ll - fullrange// extensions++fibo1236 = hh +(fullrange*0.236)fibo1382 = hh +(fullrange*0.382)fibo1500 = hh +fullrange/2fibo1618 = hh +(fullrange*0.618)fibo1764 = hh +(fullrange*0.764)fibo200 = hh + fullrange//////////////volsum = summation [StartBarSignalIndex](volume)-summation [LagAfterSignal](volume)while i<NbOfDiv dolrange=ll+div*ihrange=lrange+divvolbull=0volbear=0NumBarVol = i+1for q = StartBarSignalIndex downto LagAfterSignal doif close[q]>=lrange and close[q]<=hrange thenif close[q]>open[q] thenvolbull=volbull+volume[q]elsevolbear=volbear+volume[q]endifendifnext//bullbar = round((volbull*StartBar)/volsum)*scalefactor//bearbar = round((volbear*StartBar)/volsum)*scalefactorvolbar = (volbear+volbull)/volsum *abs(StartBarSignalIndex-LagAfterSignal)*scalefactor // /scalefactorif i=0 thenlrangemax = lrangehrangemax = hrangeMaxVol = volbarNumBarMaxVol = NumBarVoLlrangeminSup = lrangehrangeminSup = hrangeMinVolSup = VolBarNumBarMinVolSup = NumBarVollrangeminInf = lrangehrangeminInf = hrangeMinVolInf = VolBarNumBarMinVolInf = NumBarVolendifif volbar > MaxVol thenlrangemax = lrangehrangemax = hrangeMaxVol = volbarif MinVolSup < MinVolInf thenlrangeminInf = lrangeminSuphrangeminInf = hrangeminSupMinVolInf = MinVolSupNumBarMinVolInf = NumBarMinVolSupendiflrangeminSup = lrangehrangeminSup = hrangeMinVolSup = VolBarNumBarMinVolSup = NumBarVolelsif volbar < MaxVol thenif volbar < MinVolSup thenlrangeminSup = lrangehrangeminSup = hrangeMinVolSup = VolBarNumBarMinVolSup = NumBarVolendifelselrangeminInf = lrangeminInfhrangeminInf = hrangeminInfMinVolInf = MinVolInfNumBarMinVolInf = NumBarMinVolInfendif//drawrectangle(StartbarIndex,lrange,StartbarIndex+volbar,hrange) coloured(46,139,87,255)i=i+1wendMaxVolumLevel = (lrangemax + hrangemax)/2MinVolumSupLevel = (lrangeminSup + hrangeminSup)/2MinVolumInfLevel = (lrangeminInf + hrangeminInf)/2if LineExtension then//DRAWHLINE((lrangemax + hrangemax)/2)coloured(255,0,0)endif//if NumbarVerif then//drawtext("#NumBarMaxVol#",StartbarIndex-1,MaxVolumLevel,Dialog,standard,10) coloured(255,0,0)//drawtext("#NumBarMinVolSup#",StartbarIndex-1,MinVolumSupLevel,Dialog,standard,10) coloured(255,0,0)//drawtext("#NumBarMinVolInf#",StartbarIndex-1,MinVolumInfLevel,Dialog,standard,10) coloured(255,0,0)endif////drawtext("▼▼",StartbarIndex+2,MinVolumInfLevel,Dialog,standard,10) coloured(0,0,255)// MinInf//drawtext("▲▲",StartbarIndex+2,MinVolumSupLevel,Dialog,standard,10) coloured(0,0,255)// MinSup//drawtext("■■",StartbarIndex+2,MaxVolumLevel,Dialog,standard,10) coloured(255,0,0) // Max//Fibo//drawsegment(StartbarIndex,fibo100,EndbarIndex,fibo100) coloured(r1,g1,b1)//drawtext("100",EndbarIndex-2,fibo100,Dialog,Standard,10) coloured(r,g,b)////drawsegment(EndbarIndex+1,fibo236,EndbarIndex,fibo236) coloured(r1,g1,b1)//drawtext("23.6",EndbarIndex-2,fibo236,Dialog,Standard,10) coloured(r,g,b)////drawsegment(EndbarIndex+1,fibo382,EndbarIndex,fibo382) coloured(r1,g1,b1)//drawtext("38.2",EndbarIndex-2,fibo382,Dialog,Standard,10) coloured(r,g,b)////drawsegment(EndbarIndex+1,fibo500,EndbarIndex,fibo500) coloured(r1,g1,b1)//drawtext("50",EndbarIndex-2,fibo500,Dialog,Standard,10) coloured(r,g,b)////drawsegment(EndbarIndex+1,fibo618,EndbarIndex,fibo618) coloured(r1,g1,b1)//drawtext("61.8",EndbarIndex-2,fibo618,Dialog,Standard,10) coloured(r,g,b)////drawsegment(EndbarIndex+1,fibo764,EndbarIndex,fibo764) coloured(r1,g1,b1)//drawtext("76.4",EndbarIndex-2,fibo764,Dialog,Standard,10) coloured(r,g,b)////drawsegment(StartbarIndex,fibo0,EndbarIndex,fibo0) coloured(r1,g1,b1)//drawtext("0",EndbarIndex-2,fibo0,Dialog,Standard,10) coloured(r,g,b)If FiboExtension then// Extensions++//drawsegment (EndbarIndex,fibo200,EndbarIndex,fibo00) coloured (r1,g1,b1)////drawsegment(EndbarIndex+1,fibo1236,EndbarIndex,fibo1236) coloured(0,255,0)//drawtext("+23.6",EndbarIndex-2,fibo1236,Dialog,Standard,10) coloured(0,255,0)////drawsegment(EndbarIndex+1,fibo1382,EndbarIndex,fibo1382) coloured(0,255,0)//drawtext("+38.2",EndbarIndex-2,fibo1382,Dialog,Standard,10) coloured(0,255,0)////drawsegment(EndbarIndex+1,fibo1500,EndbarIndex,fibo1500) coloured(0,255,0)//drawtext("+50",EndbarIndex-2,fibo1500,Dialog,Standard,10) coloured(0,255,0)////drawsegment(EndbarIndex+1,fibo1618,EndbarIndex,fibo1618) coloured(0,255,0)//drawtext("+61.8",EndbarIndex-2,fibo1618,Dialog,Standard,10) coloured(0,255,0)////drawsegment(EndbarIndex+1,fibo1764,EndbarIndex,fibo1764) coloured(0,255,0)//drawtext("+76.4",EndbarIndex-2,fibo1764,Dialog,Standard,10) coloured(0,255,0)////drawsegment(EndbarIndex+1,fibo200,EndbarIndex,fibo200) coloured(0,255,0)//drawtext("200",EndbarIndex-2,fibo200,Dialog,Standard,10) coloured(0,255,0)////// Extensions --//drawsegment(EndbarIndex+1,fibo0236,EndbarIndex,fibo0236) coloured(255,0,0)//drawtext("-23.6",EndbarIndex-2,fibo0236,Dialog,Standard,10) coloured(255,0,0)////drawsegment(EndbarIndex+1,fibo0382,EndbarIndex,fibo0382) coloured(255,0,0)//drawtext("-38.2",EndbarIndex-2,fibo0382,Dialog,Standard,10) coloured(255,0,0)////drawsegment(EndbarIndex+1,fibo0500,EndbarIndex,fibo0500) coloured(255,0,0)//drawtext("-50",EndbarIndex-2,fibo0500,Dialog,Standard,10) coloured(255,0,0)////drawsegment(EndbarIndex+1,fibo0618,EndbarIndex,fibo0618) coloured(255,0,0)//drawtext("-61.8",EndbarIndex-2,fibo0618,Dialog,Standard,10) coloured(255,0,0)////drawsegment(EndbarIndex+1,fibo0764,EndbarIndex,fibo0764) coloured(255,0,0)//drawtext("-76.4",EndbarIndex-2,fibo0764,Dialog,Standard,10) coloured(255,0,0)////drawsegment(EndbarIndex+1,fibo00,EndbarIndex,fibo00) coloured(255,0,0)//drawtext("-200",EndbarIndex-2,fibo00,Dialog,Standard,10) coloured(255,0,0)endifendifIF HighLookBack AND Fibo100 AND Fibo0 AND Fibo236 AND Fibo382 AND fibo500 AND fibo618 AND fibo764 AND Fibo1236 AND Fibo1382 AND Fibo1500 AND Fibo1618 AND Fibo1764 AND Fibo200 AND Fibo0236 AND Fibo0382 AND Fibo0500 AND Fibo0618 AND Fibo0764 AND Fibo00 AND numbarmaxvol AND maxvolumlevel AND minvolumsuplevel AND minvoluminflevel AND lowlookback THENENDIFSCREENER[MyCond]//Rest of the code of Nicolas if you want to create intermadiate ZigZag////---mino zigzag points//if high[round(LookBack/2)] >= highest[LookBack+1](high) then//LNewPeak = 1//else//LNewPeak = 0//endif////if low[round(LookBack/2)] <= lowest[LookBack+1](low) then//NewDownL = -1//else//NewDownL = 0//endif////if LNewPeak = 1 then//LNewHigher = high[round(LookBack/2)]//NewPeakigherBarIndex = barindex[round(LookBack/2)]//endif////if NewDownL = -1 then//LBOTy = low[round(LookBack/2)]//LBOTx = barindex[round(LookBack/2)]//endif////if LNewPeak>0 then//DRAWTEXT("º",NewPeakigherBarIndex,LNewHigher+ATR/2,Dialog,Bold,20) coloured(200,0,0)//endif//if NewDownL<0 then//DRAWTEXT("º",LBOTx,LBOTy-ATR/2,Dialog,Bold,20) coloured(0,200,0)//endif11/14/2019 at 11:45 AM #112770Thank you very much for your effort and time.
The screener gives an error notification:
“- the loop doesn’t have a termination condition
– the termination condition can never be met
– the termination causes the loop to start over
To run the scan, modify the code of your ProScreener. “any ideas?
11/14/2019 at 12:00 PM #112779Too many loops, some are thiught to be endless ones.
It’s the PRT engine that does not support this, I had to change the first two settings to make it work, try to lower them again.
PRT does not love too complex code, especially when there are loops within loops or too many nested IF…ENDIF’s or loops within IF…ENDIF.
11/14/2019 at 2:52 PM #11280811/14/2019 at 7:19 PM #112830I got Roberto version going as a Auto-System.
https://www.prorealcode.com/topic/autosystem-zig-zag-prix-vol-fib-pub/
1 user thanked author for this post.
-
AuthorPosts
Find exclusive trading pro-tools on